Skip to content

Commit 8cb6130

Browse files
committed
[benchmark] RandomShuffle Legacy Factor
1 parent 6a657bc commit 8cb6130

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

benchmark/single-source/RandomShuffle.swift

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,9 @@ import TestsUtils
1919

2020
public let RandomShuffle = [
2121
BenchmarkInfo(name: "RandomShuffleDef2", runFunction: run_RandomShuffleDef,
22-
tags: [.api],
23-
setUpFunction: { blackHole(numbersDef) }),
22+
tags: [.api], setUpFunction: { blackHole(numbersDef) }, legacyFactor: 4),
2423
BenchmarkInfo(name: "RandomShuffleLCG2", runFunction: run_RandomShuffleLCG,
25-
tags: [.api],
26-
setUpFunction: { blackHole(numbersLCG) }),
24+
tags: [.api], setUpFunction: { blackHole(numbersLCG) }, legacyFactor: 16),
2725
]
2826

2927
/// A linear congruential PRNG.
@@ -41,8 +39,8 @@ struct LCRNG: RandomNumberGenerator {
4139
}
4240
}
4341

44-
var numbersDef: [Int] = Array(0...10_000)
45-
var numbersLCG: [Int] = Array(0...100_000)
42+
var numbersDef: [Int] = Array(0...2_500)
43+
var numbersLCG: [Int] = Array(0...6_250)
4644

4745
@inline(never)
4846
public func run_RandomShuffleDef(_ N: Int) {

0 commit comments

Comments
 (0)