[benchmark] ProtocolDispatch2 resized & re-enabled

This commit is contained in:
Pavol Vaskovic
2019-01-21 21:51:47 +01:00
parent 2f2096f5fd
commit c8d59b8536

View File

@@ -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)
}