Improved the benchmark test.