File tree 1 file changed +0
-20
lines changed
Tests/NukePerformanceTests
1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -12,26 +12,6 @@ class ImagePipelinePerfomanceTests: XCTestCase {
12
12
func testLoaderOverallPerformance( ) {
13
13
let pipeline = makePipeline ( )
14
14
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
-
35
15
let requests = ( 0 ... 5000 ) . map { ImageRequest ( url: URL ( string: " http://test.com/ \( $0) " ) ) }
36
16
37
17
measure {
You can’t perform that action at this time.
0 commit comments