refactor: extract the test procedure to benchmark.rb.