We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48eddac commit d786430Copy full SHA for d786430
benchmark/multi-source/Monoids/Benchmark.swift
@@ -1,5 +1,4 @@
1
import TestsUtils
2
-import Dispatch
3
4
public let benchmarks = [
5
BenchmarkInfo(
@@ -8,13 +7,8 @@ public let benchmarks = [
8
7
tags: [.algorithm, .miniapplication, .long])
9
]
10
11
-func run_Monoids(_ n: Int) {
12
- let semaphore = DispatchSemaphore(value: 0)
+func run_Monoids(_ n: Int) async {
13
for _ in 0 ... n {
14
- Task {
15
- await run(output: false)
16
- semaphore.signal()
17
- }
18
- semaphore.wait()
+ await run(output: false)
19
}
20
0 commit comments