[benchmark] Don't create array instance in modules with solitary benchmarks

It just produces unnecessary code sign churn.
This commit is contained in:
Karoy Lorentey
2021-09-16 18:54:14 -07:00
parent 110d123731
commit 758c52bc2a
65 changed files with 117 additions and 177 deletions

View File

@@ -16,12 +16,11 @@
import TestsUtils
public let benchmarks = [
public let benchmarks =
BenchmarkInfo(
name: "ProtocolDispatch2",
runFunction: run_ProtocolDispatch2,
tags: [.validation, .abstraction, .cpubench]),
]
tags: [.validation, .abstraction, .cpubench])
protocol Pingable { func ping() -> Int; func pong() -> Int}