mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[benchmark] ProtocolDispatch2 resized & re-enabled
This commit is contained in:
@@ -20,7 +20,7 @@ import Foundation
|
||||
public let ProtocolDispatch2 = BenchmarkInfo(
|
||||
name: "ProtocolDispatch2",
|
||||
runFunction: run_ProtocolDispatch2,
|
||||
tags: [.validation, .abstraction, .unstable])
|
||||
tags: [.validation, .abstraction])
|
||||
|
||||
protocol Pingable { func ping() -> Int; func pong() -> Int}
|
||||
|
||||
@@ -58,7 +58,7 @@ public func run_ProtocolDispatch2(_ N: Int) {
|
||||
var c = 0
|
||||
let g1 = Game()
|
||||
let g2 = Game()
|
||||
for _ in 1...N {
|
||||
for _ in 1...10*N {
|
||||
c = 0
|
||||
for i in 1...5000 {
|
||||
c += wrapper(i, g1, g2)
|
||||
@@ -66,4 +66,3 @@ public func run_ProtocolDispatch2(_ N: Int) {
|
||||
}
|
||||
CheckResults(c == 75000)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user