Skip to content

Commit d786430

Browse files
committed
Benchmarks: Remove DispatchSemaphore hack from Monoids benchmark
1 parent 48eddac commit d786430

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed
Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import TestsUtils
2-
import Dispatch
32

43
public let benchmarks = [
54
BenchmarkInfo(
@@ -8,13 +7,8 @@ public let benchmarks = [
87
tags: [.algorithm, .miniapplication, .long])
98
]
109

11-
func run_Monoids(_ n: Int) {
12-
let semaphore = DispatchSemaphore(value: 0)
10+
func run_Monoids(_ n: Int) async {
1311
for _ in 0 ... n {
14-
Task {
15-
await run(output: false)
16-
semaphore.signal()
17-
}
18-
semaphore.wait()
12+
await run(output: false)
1913
}
2014
}

0 commit comments

Comments
 (0)