-
-
Save zed/59fcde0cbf495b802defb7da8d3f830c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(py3.6) ~ » python -m perf timeit --rigorous --hist --stats -s 'g=lambda i:i*2;f=lambda i: i+1' 'g(f(1))' | |
......................................... | |
281 ns: 9 ################################ | |
283 ns: 17 ############################################################# | |
284 ns: 14 ################################################## | |
286 ns: 11 ######################################## | |
288 ns: 22 ############################################################################### | |
290 ns: 9 ################################ | |
292 ns: 12 ########################################### | |
294 ns: 8 ############################# | |
295 ns: 3 ########### | |
297 ns: 5 ################## | |
299 ns: 8 ############################# | |
301 ns: 0 | | |
303 ns: 0 | | |
305 ns: 0 | | |
307 ns: 0 | | |
308 ns: 1 #### | |
310 ns: 0 | | |
312 ns: 0 | | |
314 ns: 0 | | |
316 ns: 0 | | |
318 ns: 1 #### | |
Total duration: 25.9 sec | |
Start date: 2017-10-19 14:19:36 | |
End date: 2017-10-19 14:20:08 | |
Raw value minimum: 148 ms | |
Raw value maximum: 167 ms | |
Number of calibration run: 1 | |
Number of run with values: 40 | |
Total number of run: 41 | |
Number of warmup per run: 1 | |
Number of value per run: 3 | |
Loop iterations per value: 2^19 | |
Total number of values: 120 | |
Minimum: 281 ns | |
Median +- MAD: 288 ns +- 4 ns | |
Mean +- std dev: 290 ns +- 6 ns | |
Maximum: 318 ns | |
0th percentile: 281 ns (-3% of the mean) -- minimum | |
5th percentile: 282 ns (-3% of the mean) | |
25th percentile: 285 ns (-2% of the mean) -- Q1 | |
50th percentile: 288 ns (-0% of the mean) -- median | |
75th percentile: 293 ns (+1% of the mean) -- Q3 | |
95th percentile: 300 ns (+4% of the mean) | |
100th percentile: 318 ns (+10% of the mean) -- maximum | |
Number of outlier (out of 273 ns..305 ns): 2 | |
Mean +- std dev: 290 ns +- 6 ns |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(py3.6) ~ » python -m perf timeit --rigorous --hist --stats -s 'g=lambda i:i*2;f=lambda i: i+1' 'a=f(1); g(a)' | |
......................................... | |
290 ns: 10 ################################################# | |
294 ns: 15 ########################################################################## | |
297 ns: 14 ##################################################################### | |
301 ns: 16 ############################################################################### | |
304 ns: 15 ########################################################################## | |
308 ns: 13 ################################################################ | |
311 ns: 11 ###################################################### | |
315 ns: 9 ############################################ | |
318 ns: 7 ################################### | |
322 ns: 3 ############### | |
325 ns: 1 ##### | |
329 ns: 2 ########## | |
332 ns: 2 ########## | |
336 ns: 0 | | |
340 ns: 1 ##### | |
343 ns: 0 | | |
347 ns: 0 | | |
350 ns: 0 | | |
354 ns: 0 | | |
357 ns: 0 | | |
361 ns: 1 ##### | |
Total duration: 27.4 sec | |
Start date: 2017-10-19 14:21:28 | |
End date: 2017-10-19 14:22:01 | |
Raw value minimum: 153 ms | |
Raw value maximum: 190 ms | |
Number of calibration run: 1 | |
Number of run with values: 40 | |
Total number of run: 41 | |
Number of warmup per run: 1 | |
Number of value per run: 3 | |
Loop iterations per value: 2^19 | |
Total number of values: 120 | |
Minimum: 291 ns | |
Median +- MAD: 305 ns +- 7 ns | |
Mean +- std dev: 307 ns +- 12 ns | |
Maximum: 362 ns | |
0th percentile: 291 ns (-5% of the mean) -- minimum | |
5th percentile: 293 ns (-5% of the mean) | |
25th percentile: 298 ns (-3% of the mean) -- Q1 | |
50th percentile: 305 ns (-1% of the mean) -- median | |
75th percentile: 313 ns (+2% of the mean) -- Q3 | |
95th percentile: 327 ns (+7% of the mean) | |
100th percentile: 362 ns (+18% of the mean) -- maximum | |
Number of outlier (out of 276 ns..336 ns): 2 | |
Mean +- std dev: 307 ns +- 12 ns |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment