File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 25
25
26
26
class TestAsyncConcurrency (AsyncIntegrationTest ):
27
27
async def _task (self , client ):
28
- await client .db .test .find_one ({"$where" : delay (0.05 )})
28
+ await client .db .test .find_one ({"$where" : delay (0.10 )})
29
29
30
30
async def test_concurrency (self ):
31
31
tasks = []
@@ -50,5 +50,5 @@ async def test_concurrency(self):
50
50
concurrent_time = time .time () - start
51
51
52
52
percent_faster = (sequential_time - concurrent_time ) / concurrent_time * 100
53
- # We expect the concurrent tasks to be at least twice as fast
54
- self .assertGreaterEqual (percent_faster , 100 )
53
+ # We expect the concurrent tasks to be at least 75% faster on all platforms as a conservative benchmark
54
+ self .assertGreaterEqual (percent_faster , 75 )
You can’t perform that action at this time.
0 commit comments