Skip to content

Instantly share code, notes, and snippets.

@denius
Last active October 30, 2017 12:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save denius/646d0d2300f5d0f5bfe2d2cbf59c938f to your computer and use it in GitHub Desktop.
Save denius/646d0d2300f5d0f5bfe2d2cbf59c938f to your computer and use it in GitHub Desktop.
QR benchmark results
K=1
0.403818 seconds (113.14 k allocations: 5.859 MiB)
7.123 ns (0 allocations: 0 bytes)
775.527 ns (21 allocations: 1.13 KiB)
K=2
0.021828 seconds (19.79 k allocations: 1019.997 KiB)
12.328 ns (0 allocations: 0 bytes)
1.474 μs (21 allocations: 1.22 KiB)
K=3
0.036278 seconds (38.94 k allocations: 1.880 MiB)
38.917 ns (0 allocations: 0 bytes)
2.359 μs (21 allocations: 1.50 KiB)
K=4
0.060640 seconds (75.48 k allocations: 3.572 MiB)
68.377 ns (0 allocations: 0 bytes)
3.300 μs (21 allocations: 1.78 KiB)
K=5
0.108058 seconds (139.88 k allocations: 6.378 MiB)
133.274 ns (0 allocations: 0 bytes)
4.241 μs (21 allocations: 2.53 KiB)
K=6
0.174193 seconds (247.81 k allocations: 10.850 MiB)
173.779 ns (0 allocations: 0 bytes)
5.303 μs (21 allocations: 2.91 KiB)
K=7
0.281088 seconds (415.11 k allocations: 17.505 MiB)
298.098 ns (0 allocations: 0 bytes)
6.353 μs (21 allocations: 3.75 KiB)
K=8
0.418529 seconds (663.34 k allocations: 27.118 MiB, 0.67% gc time)
312.841 ns (0 allocations: 0 bytes)
7.338 μs (21 allocations: 4.22 KiB)
K=9
0.660086 seconds (1.02 M allocations: 40.813 MiB, 0.99% gc time)
541.861 ns (0 allocations: 0 bytes)
8.538 μs (21 allocations: 4.88 KiB)
K=10
0.972913 seconds (1.53 M allocations: 59.975 MiB, 1.10% gc time)
665.281 ns (0 allocations: 0 bytes)
10.036 μs (21 allocations: 5.81 KiB)
K=11
1.406070 seconds (2.22 M allocations: 85.527 MiB, 1.10% gc time)
992.313 ns (0 allocations: 0 bytes)
11.470 μs (21 allocations: 6.94 KiB)
K=12
1.900717 seconds (3.15 M allocations: 119.578 MiB, 1.34% gc time)
1.052 μs (0 allocations: 0 bytes)
12.581 μs (21 allocations: 7.88 KiB)
K=13
2.721948 seconds (4.39 M allocations: 164.109 MiB, 1.05% gc time)
1.721 μs (0 allocations: 0 bytes)
14.175 μs (21 allocations: 9.28 KiB)
K=14
3.689698 seconds (6.01 M allocations: 221.610 MiB, 1.06% gc time)
2.159 μs (0 allocations: 0 bytes)
15.961 μs (21 allocations: 11.16 KiB)
K=15
4.990099 seconds (8.09 M allocations: 294.673 MiB, 2.49% gc time)
2.921 μs (0 allocations: 0 bytes)
17.715 μs (21 allocations: 12.47 KiB)
K=16
6.517762 seconds (10.99 M allocations: 390.405 MiB, 2.04% gc time)
3.643 μs (0 allocations: 0 bytes)
19.276 μs (21 allocations: 13.31 KiB)
K=17
8.697281 seconds (14.40 M allocations: 507.007 MiB, 1.78% gc time)
4.834 μs (0 allocations: 0 bytes)
20.320 μs (21 allocations: 15.19 KiB)
K=18
11.041450 seconds (18.62 M allocations: 649.409 MiB, 1.70% gc time)
6.568 μs (0 allocations: 0 bytes)
22.698 μs (21 allocations: 16.69 KiB)
K=19
15.295199 seconds (23.81 M allocations: 823.342 MiB, 1.87% gc time)
13.141 μs (0 allocations: 0 bytes)
24.886 μs (21 allocations: 18.56 KiB)
K=20
19.779205 seconds (30.09 M allocations: 1.009 GiB, 2.13% gc time)
15.352 μs (0 allocations: 0 bytes)
26.217 μs (21 allocations: 20.06 KiB)
K=21
24.351172 seconds (37.63 M allocations: 1.254 GiB, 2.03% gc time)
17.624 μs (0 allocations: 0 bytes)
28.673 μs (21 allocations: 22.31 KiB)
K=22
30.337882 seconds (46.63 M allocations: 1.546 GiB, 1.97% gc time)
20.171 μs (0 allocations: 0 bytes)
31.397 μs (21 allocations: 24.19 KiB)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment