Benchmark code for my thesis