Benchmark class -> function