Skip to content

Commit 07f373d

Browse files
authored
[benchmark] Set.subtracting.Seq increased workload
The workload multipliers need to be increased in order to accommodate the pending improvements from `lorentey:set-on-fire`, so that these benchmark don't drop to under 20 μs runtimes when those optimizations kick in. These multiplier will differ from those used on Set.subtracting.Set by a factor of 5.
1 parent a75f2d7 commit 07f373d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

benchmark/single-source/SetTests.swift

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -617,52 +617,52 @@ public let SetTests = [
617617

618618
BenchmarkInfo(
619619
name: "Set.subtracting.Seq.Empty.Int",
620-
runFunction: { n in run_SetSubtractingSeqInt(setE, arrayAB, 0, 1000 * n) },
620+
runFunction: { n in run_SetSubtractingSeqInt(setE, arrayAB, 0, 5000 * n) },
621621
tags: [.validation, .api, .Set],
622622
setUpFunction: { blackHole([setE, arrayAB]) }),
623623
BenchmarkInfo(
624624
name: "Set.subtracting.Seq.Int.Empty",
625-
runFunction: { n in run_SetSubtractingSeqInt(setAB, arrayE, countAB, 1000 * n) },
625+
runFunction: { n in run_SetSubtractingSeqInt(setAB, arrayE, countAB, 5000 * n) },
626626
tags: [.validation, .api, .Set],
627627
setUpFunction: { blackHole([setAB, arrayE]) }),
628628
BenchmarkInfo(
629629
name: "Set.subtracting.Seq.Empty.Box",
630-
runFunction: { n in run_SetSubtractingSeqBox(setOE, arrayOAB, 0, 1000 * n) },
630+
runFunction: { n in run_SetSubtractingSeqBox(setOE, arrayOAB, 0, 5000 * n) },
631631
tags: [.validation, .api, .Set],
632632
setUpFunction: { blackHole([setOE, arrayOAB]) }),
633633
BenchmarkInfo(
634634
name: "Set.subtracting.Seq.Box.Empty",
635-
runFunction: { n in run_SetSubtractingSeqBox(setOAB, arrayOE, countAB, 1000 * n) },
635+
runFunction: { n in run_SetSubtractingSeqBox(setOAB, arrayOE, countAB, 5000 * n) },
636636
tags: [.validation, .api, .Set],
637637
setUpFunction: { blackHole([setOAB, arrayOE]) }),
638638
BenchmarkInfo(
639639
name: "Set.subtracting.Seq.Int0",
640-
runFunction: { n in run_SetSubtractingSeqInt(setAB, arrayCD, countAB, 10 * n) },
640+
runFunction: { n in run_SetSubtractingSeqInt(setAB, arrayCD, countAB, 50 * n) },
641641
tags: [.validation, .api, .Set],
642642
setUpFunction: { blackHole([setAB, arrayCD]) }),
643643
BenchmarkInfo(
644644
name: "Set.subtracting.Seq.Box0",
645-
runFunction: { n in run_SetSubtractingSeqBox(setOAB, arrayOCD, countAB, 10 * n) },
645+
runFunction: { n in run_SetSubtractingSeqBox(setOAB, arrayOCD, countAB, 50 * n) },
646646
tags: [.validation, .api, .Set],
647647
setUpFunction: { blackHole([setOAB, arrayOCD]) }),
648648
BenchmarkInfo(
649649
name: "Set.subtracting.Seq.Int25",
650-
runFunction: { n in run_SetSubtractingSeqInt(setAB, arrayBC, countA, 10 * n) },
650+
runFunction: { n in run_SetSubtractingSeqInt(setAB, arrayBC, countA, 50 * n) },
651651
tags: [.validation, .api, .Set],
652652
setUpFunction: { blackHole([setAB, arrayBC]) }),
653653
BenchmarkInfo(
654654
name: "Set.subtracting.Seq.Box25",
655-
runFunction: { n in run_SetSubtractingSeqBox(setOAB, arrayOBC, countA, 10 * n) },
655+
runFunction: { n in run_SetSubtractingSeqBox(setOAB, arrayOBC, countA, 50 * n) },
656656
tags: [.validation, .api, .Set],
657657
setUpFunction: { blackHole([setOAB, arrayOBC]) }),
658658
BenchmarkInfo(
659659
name: "Set.subtracting.Seq.Int50",
660-
runFunction: { n in run_SetSubtractingSeqInt(setXY, arrayYZ, half, 10 * n) },
660+
runFunction: { n in run_SetSubtractingSeqInt(setXY, arrayYZ, half, 50 * n) },
661661
tags: [.validation, .api, .Set],
662662
setUpFunction: { blackHole([setXY, arrayYZ]) }),
663663
BenchmarkInfo(
664664
name: "Set.subtracting.Seq.Int100",
665-
runFunction: { n in run_SetSubtractingSeqInt(setP, arrayP, 0, 10 * n) },
665+
runFunction: { n in run_SetSubtractingSeqInt(setP, arrayP, 0, 50 * n) },
666666
tags: [.validation, .api, .Set],
667667
setUpFunction: { blackHole([setP, arrayP]) }),
668668

0 commit comments

Comments
 (0)