Skip to content

Commit 2d6715f

Browse files
committed
[benchmark] Chars2 Legacy Factor
1 parent 51a5f26 commit 2d6715f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

benchmark/single-source/Chars.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ public let Chars = BenchmarkInfo(
1717
name: "Chars2",
1818
runFunction: run_Chars,
1919
tags: [.validation, .api, .String],
20-
setUpFunction: { blackHole(alphabetInput) })
20+
setUpFunction: { blackHole(alphabetInput) },
21+
legacyFactor: 50)
2122

2223
var alphabetInput: [Character] = [
2324
"A", "B", "C", "D", "E", "F", "G",
@@ -33,7 +34,7 @@ public func run_Chars(_ N: Int) {
3334
// Permute some characters.
3435
let alphabet: [Character] = alphabetInput
3536

36-
for _ in 0..<50*N {
37+
for _ in 0..<N {
3738
for firstChar in alphabet {
3839
for lastChar in alphabet {
3940
blackHole(firstChar < lastChar)

0 commit comments

Comments
 (0)