Swift Benchmark method