[benchmarks] rewrite main loop of benchmarks

Also rename all benchmark functions