Misc benchmarks covering some of #7532

Some machinery for enabling #[bench] benchmarks in std and some examples showing how to write them.