Skip to content

Commit 22e16f6

Browse files
committed
Remove legacy performance tests
1 parent e1e9588 commit 22e16f6

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

Tests/NukePerformanceTests/ImagePipelinePerformanceTests.swift

-20
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,6 @@ class ImagePipelinePerfomanceTests: XCTestCase {
1212
func testLoaderOverallPerformance() {
1313
let pipeline = makePipeline()
1414

15-
let requests = (0...5000).map { ImageRequest(url: URL(string: "http://test.com/\($0)")) }
16-
let callbackQueue = DispatchQueue(label: "testLoaderOverallPerformance")
17-
measure {
18-
var finished: Int = 0
19-
let semaphore = DispatchSemaphore(value: 0)
20-
for request in requests {
21-
pipeline.loadImage(with: request, progress: nil) { _ in
22-
finished += 1
23-
if finished == requests.count {
24-
semaphore.signal()
25-
}
26-
}
27-
}
28-
semaphore.wait()
29-
}
30-
}
31-
32-
func testAsyncAwaitPerformance() {
33-
let pipeline = makePipeline()
34-
3515
let requests = (0...5000).map { ImageRequest(url: URL(string: "http://test.com/\($0)")) }
3616

3717
measure {

0 commit comments

Comments
 (0)