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 @@ -333,16 +333,16 @@ dataset = Dataset(
333
333
334
334
335
335
async def double_number (input_value : int ) -> int :
336
- """ Function that simulates work by sleeping for a second before returning double the input."""
336
+ """ Function that simulates work by sleeping for a tenth of a second before returning double the input."""
337
337
await asyncio.sleep(0.1 ) # Simulate work
338
338
return input_value * 2
339
339
340
340
341
341
# Run evaluation with unlimited concurrency
342
342
t0 = time.time()
343
343
report_default = dataset.evaluate_sync(double_number)
344
- print (f ' Evaluation took less than 0.3s : { time.time() - t0 < 0.3 } ' )
345
- # > Evaluation took less than 0.3s : True
344
+ print (f ' Evaluation took less than 0.5s : { time.time() - t0 < 0.5 } ' )
345
+ # > Evaluation took less than 0.5s : True
346
346
347
347
report_default.print(include_input = True , include_output = True , include_durations = False ) # (1)!
348
348
"""
You can’t perform that action at this time.
0 commit comments