Created
November 16, 2019 08:18
-
-
Save pomidoroshev/08f25b5b9ce00d967408880ea4b258de to your computer and use it in GitHub Desktop.
Benchmark results for https://gist.github.com/pomidoroshev/219ee87b1a138b869c9ce429a2592688
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
▶ for ver in "3.7.1" "3.7.2" "3.7.3" "3.7.4" "3.7.5" "3.8" | |
do | |
echo "\nPython $ver" | |
docker run --rm -v `pwd`:/app python:$ver python /app/bench_2.py | |
done | |
Python 3.7.1 | |
# components | join_time (μs) | buffer_time (μs) | concat_time (μs) | |
----------------------------------------------------------------------------------------- | |
10 | 3.67 (± 0.07) | 4.1 (± 0.1) | 3.53 (± 0.08) | |
100 | 30.9 (± 0.8) | 31.7 (± 0.5) | 34 (± 1) | |
1000 | 307 (± 7) | 312 (± 7) | 340 (± 10) | |
10000 | 3100 (± 80) | 3220 (± 90) | 3370 (± 70) | |
Python 3.7.2 | |
# components | join_time (μs) | buffer_time (μs) | concat_time (μs) | |
----------------------------------------------------------------------------------------- | |
10 | 3.7 (± 0.1) | 4.33 (± 0.08) | 3.58 (± 0.09) | |
100 | 32 (± 3) | 32.2 (± 0.6) | 33.8 (± 0.8) | |
1000 | 300 (± 5) | 316 (± 8) | 340 (± 10) | |
10000 | 3080 (± 80) | 3270 (± 90) | 3340 (± 60) | |
Python 3.7.3 | |
# components | join_time (μs) | buffer_time (μs) | concat_time (μs) | |
----------------------------------------------------------------------------------------- | |
10 | 3.7 (± 0.2) | 4.26 (± 0.10) | 3.50 (± 0.06) | |
100 | 31 (± 2) | 32.2 (± 0.6) | 36 (± 7) | |
1000 | 301 (± 7) | 330 (± 20) | 335 (± 10) | |
10000 | 3080 (± 60) | 3300 (± 200) | 3320 (± 50) | |
Python 3.7.4 | |
# components | join_time (μs) | buffer_time (μs) | concat_time (μs) | |
----------------------------------------------------------------------------------------- | |
10 | 3.11 (± 0.07) | 3.57 (± 0.07) | 3.14 (± 0.10) | |
100 | 26.0 (± 0.7) | 27.9 (± 0.8) | 28.5 (± 0.7) | |
1000 | 262 (± 5) | 300 (± 70) | 279 (± 9) | |
10000 | 2720 (± 80) | 2840 (± 80) | 2730 (± 60) | |
Python 3.7.5 | |
# components | join_time (μs) | buffer_time (μs) | concat_time (μs) | |
----------------------------------------------------------------------------------------- | |
10 | 3.01 (± 0.06) | 3.52 (± 0.07) | 3.01 (± 0.06) | |
100 | 25.9 (± 0.8) | 29 (± 1) | 27.4 (± 0.6) | |
1000 | 260 (± 10) | 270 (± 10) | 275 (± 7) | |
10000 | 2700 (± 90) | 2800 (± 100) | 2700 (± 200) | |
Python 3.8 | |
# components | join_time (μs) | buffer_time (μs) | concat_time (μs) | |
----------------------------------------------------------------------------------------- | |
10 | 3.39 (± 0.04) | 3.96 (± 0.07) | 3.49 (± 0.07) | |
100 | 31 (± 7) | 30.1 (± 0.5) | 32.5 (± 0.7) | |
1000 | 287 (± 9) | 302 (± 10) | 326 (± 7) | |
10000 | 2960 (± 60) | 3200 (± 200) | 3210 (± 60) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment