convert perf test to use #[bench]