mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Move all benchmarks to use registerBenchmark and BenchmarkInfo
This commit is contained in:
@@ -13,6 +13,11 @@
|
||||
// This test checks the performance of modifying an array element.
|
||||
import TestsUtils
|
||||
|
||||
public let ArraySubscript = BenchmarkInfo(
|
||||
name: "ArraySubscript",
|
||||
runFunction: run_ArraySubscript,
|
||||
tags: [.validation, .api, .Array])
|
||||
|
||||
@inline(never)
|
||||
public func run_ArraySubscript(_ N: Int) {
|
||||
SRand()
|
||||
|
||||
Reference in New Issue
Block a user