Skip to content

Instantly share code, notes, and snippets.

@Lysxia Lysxia/708 7.8.4
Created Mar 29, 2017

Embed
What would you like to do?
time stack build --flag aeson:-fast
real 2m56.368s real 3m7.390s
user 2m55.557s user 2m54.277s
sys 0m1.123s sys 0m1.503s
time stack ghc -- benchmarks/AesonCompareAutoInstances.hs -O0
real 0m7.939s real 0m11.914s
user 0m7.137s user 0m7.927s
sys 0m0.360s sys 0m0.603s
time stack ghc -- benchmarks/AesonCompareAutoInstances.hs -O2
real 0m17.927s real 0m19.424s
user 0m17.473s user 0m18.510s
sys 0m0.423s sys 0m0.333s
./benchmarks/AesonCompareAutoInstances -L10
benchmarking D/toJSON/th benchmarking D/toJSON/th
time 6.002 μs (5.860 μs .. 6.227 μs) time 5.887 μs (5.882 μs .. 5.892 μs)
0.996 R² (0.991 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 5.941 μs (5.863 μs .. 6.174 μs) mean 5.897 μs (5.895 μs .. 5.899 μs)
std dev 380.7 ns (43.52 ns .. 752.7 ns) std dev 9.206 ns (7.590 ns .. 11.35 ns)
benchmarking D/toJSON/generic benchmarking D/toJSON/generic
time 9.088 μs (9.036 μs .. 9.160 μs) time 6.200 μs (6.198 μs .. 6.203 μs)
0.999 R² (0.997 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 9.107 μs (9.052 μs .. 9.320 μs) mean 6.206 μs (6.204 μs .. 6.208 μs)
std dev 315.8 ns (90.39 ns .. 644.0 ns) std dev 8.107 ns (6.824 ns .. 9.995 ns)
benchmarking D/encode/th benchmarking D/encode/th
time 7.475 μs (7.457 μs .. 7.499 μs) time 7.012 μs (6.970 μs .. 7.092 μs)
1.000 R² (1.000 R² .. 1.000 R²) 0.999 R² (0.998 R² .. 1.000 R²)
mean 7.483 μs (7.466 μs .. 7.522 μs) mean 6.999 μs (6.973 μs .. 7.074 μs)
std dev 84.36 ns (40.41 ns .. 155.1 ns) std dev 148.3 ns (22.35 ns .. 295.7 ns)
benchmarking D/encode/generic benchmarking D/encode/generic
time 17.92 μs (17.77 μs .. 18.18 μs) time 14.24 μs (14.23 μs .. 14.24 μs)
0.999 R² (0.999 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 17.84 μs (17.78 μs .. 17.95 μs) mean 14.24 μs (14.24 μs .. 14.27 μs)
std dev 249.8 ns (127.5 ns .. 464.8 ns) std dev 46.80 ns (17.58 ns .. 87.19 ns)
benchmarking D/fromJSON/th benchmarking D/fromJSON/th
time 3.387 μs (3.374 μs .. 3.402 μs) time 3.236 μs (3.232 μs .. 3.241 μs)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 3.386 μs (3.376 μs .. 3.404 μs) mean 3.238 μs (3.235 μs .. 3.240 μs)
std dev 41.58 ns (25.55 ns .. 58.50 ns) std dev 11.47 ns (9.167 ns .. 14.08 ns)
benchmarking D/fromJSON/generic benchmarking D/fromJSON/generic
time 1.106 μs (1.099 μs .. 1.114 μs) time 1.102 μs (1.102 μs .. 1.103 μs)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 1.103 μs (1.100 μs .. 1.109 μs) mean 1.104 μs (1.103 μs .. 1.105 μs)
std dev 14.16 ns (8.082 ns .. 20.68 ns) std dev 3.334 ns (2.812 ns .. 3.991 ns)
benchmarking BigRecord/toJSON/th benchmarking BigRecord/toJSON/th
time 3.147 μs (3.130 μs .. 3.166 μs) time 3.115 μs (3.113 μs .. 3.116 μs)
1.000 R² (0.999 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 3.149 μs (3.135 μs .. 3.174 μs) mean 3.114 μs (3.113 μs .. 3.115 μs)
std dev 64.60 ns (43.26 ns .. 98.19 ns) std dev 3.636 ns (2.850 ns .. 4.757 ns)
benchmarking BigRecord/toJSON/generic benchmarking BigRecord/toJSON/generic
time 8.452 μs (8.399 μs .. 8.519 μs) time 7.718 μs (7.717 μs .. 7.721 μs)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 8.446 μs (8.413 μs .. 8.497 μs) mean 7.719 μs (7.718 μs .. 7.721 μs)
std dev 136.5 ns (97.49 ns .. 189.3 ns) std dev 5.753 ns (4.796 ns .. 7.049 ns)
benchmarking BigRecord/encode/th benchmarking BigRecord/encode/th
time 4.281 μs (4.251 μs .. 4.342 μs) time 4.256 μs (4.255 μs .. 4.258 μs)
0.999 R² (0.997 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 4.278 μs (4.260 μs .. 4.357 μs) mean 4.255 μs (4.254 μs .. 4.256 μs)
std dev 101.3 ns (23.87 ns .. 226.6 ns) std dev 4.325 ns (3.249 ns .. 6.169 ns)
benchmarking BigRecord/encode/generic benchmarking BigRecord/encode/generic
time 6.714 μs (6.681 μs .. 6.748 μs) time 3.496 μs (3.494 μs .. 3.498 μs)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 6.703 μs (6.676 μs .. 6.746 μs) mean 3.495 μs (3.493 μs .. 3.500 μs)
std dev 110.4 ns (75.39 ns .. 152.5 ns) std dev 8.544 ns (4.233 ns .. 18.73 ns)
benchmarking BigRecord/fromJSON/th benchmarking BigRecord/fromJSON/th
time 7.536 μs (7.513 μs .. 7.570 μs) time 7.555 μs (7.553 μs .. 7.558 μs)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 7.535 μs (7.519 μs .. 7.563 μs) mean 7.557 μs (7.555 μs .. 7.560 μs)
std dev 73.68 ns (52.33 ns .. 110.9 ns) std dev 8.693 ns (5.600 ns .. 14.14 ns)
benchmarking BigRecord/fromJSON/generic benchmarking BigRecord/fromJSON/generic
time 11.88 μs (11.85 μs .. 11.91 μs) time 12.14 μs (12.13 μs .. 12.14 μs)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 11.89 μs (11.87 μs .. 11.95 μs) mean 12.13 μs (12.13 μs .. 12.14 μs)
std dev 118.9 ns (62.83 ns .. 213.0 ns) std dev 14.73 ns (11.63 ns .. 21.12 ns)
benchmarking BigProduct/toJSON/th benchmarking BigProduct/toJSON/th
time 1.096 μs (1.088 μs .. 1.106 μs) time 1.119 μs (1.117 μs .. 1.124 μs)
1.000 R² (0.999 R² .. 1.000 R²) 1.000 R² (0.999 R² .. 1.000 R²)
mean 1.094 μs (1.091 μs .. 1.099 μs) mean 1.120 μs (1.117 μs .. 1.132 μs)
std dev 12.84 ns (9.334 ns .. 18.85 ns) std dev 21.99 ns (865.5 ps .. 47.23 ns)
benchmarking BigProduct/toJSON/generic benchmarking BigProduct/toJSON/generic
time 1.243 μs (1.239 μs .. 1.247 μs) time 1.271 μs (1.271 μs .. 1.272 μs)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 1.243 μs (1.241 μs .. 1.247 μs) mean 1.271 μs (1.271 μs .. 1.272 μs)
std dev 9.388 ns (5.203 ns .. 18.11 ns) std dev 1.163 ns (809.6 ps .. 1.783 ns)
benchmarking BigProduct/encode/th benchmarking BigProduct/encode/th
time 586.2 ns (570.1 ns .. 610.7 ns) time 532.6 ns (532.5 ns .. 532.8 ns)
0.992 R² (0.979 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 579.0 ns (572.4 ns .. 602.7 ns) mean 532.6 ns (532.5 ns .. 532.9 ns)
std dev 38.98 ns (11.23 ns .. 79.27 ns) std dev 808.1 ps (463.5 ps .. 1.503 ns)
benchmarking BigProduct/encode/generic benchmarking BigProduct/encode/generic
time 2.419 μs (2.412 μs .. 2.427 μs) time 2.370 μs (2.369 μs .. 2.372 μs)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 2.423 μs (2.416 μs .. 2.438 μs) mean 2.372 μs (2.371 μs .. 2.374 μs)
std dev 30.65 ns (20.52 ns .. 49.60 ns) std dev 5.928 ns (3.663 ns .. 8.758 ns)
benchmarking BigProduct/fromJSON/th benchmarking BigProduct/fromJSON/th
time 5.502 μs (5.491 μs .. 5.516 μs) time 5.564 μs (5.562 μs .. 5.566 μs)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 5.519 μs (5.502 μs .. 5.551 μs) mean 5.564 μs (5.563 μs .. 5.567 μs)
std dev 76.05 ns (43.12 ns .. 120.8 ns) std dev 7.890 ns (5.451 ns .. 14.01 ns)
benchmarking BigProduct/fromJSON/generic benchmarking BigProduct/fromJSON/generic
time 6.814 μs (6.750 μs .. 6.919 μs) time 7.518 μs (7.514 μs .. 7.521 μs)
0.999 R² (0.999 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 6.796 μs (6.764 μs .. 6.845 μs) mean 7.520 μs (7.518 μs .. 7.526 μs)
std dev 126.1 ns (81.89 ns .. 179.8 ns) std dev 12.40 ns (6.498 ns .. 22.94 ns)
benchmarking BigSum/toJSON/th benchmarking BigSum/toJSON/th
time 10.32 ns (10.30 ns .. 10.35 ns) time 9.963 ns (9.962 ns .. 9.965 ns)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 10.32 ns (10.30 ns .. 10.36 ns) mean 9.966 ns (9.964 ns .. 9.973 ns)
std dev 85.27 ps (47.67 ps .. 133.8 ps) std dev 12.57 ps (5.807 ps .. 26.29 ps)
benchmarking BigSum/toJSON/generic benchmarking BigSum/toJSON/generic
time 64.72 ns (64.04 ns .. 65.58 ns) time 62.57 ns (62.54 ns .. 62.64 ns)
0.999 R² (0.999 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 64.29 ns (64.01 ns .. 64.74 ns) mean 62.56 ns (62.55 ns .. 62.63 ns)
std dev 1.232 ns (769.7 ps .. 1.871 ns) std dev 118.3 ps (29.78 ps .. 247.9 ps)
benchmarking BigSum/encode/th benchmarking BigSum/encode/th
time 222.1 ns (220.0 ns .. 225.5 ns) time 219.5 ns (219.4 ns .. 219.6 ns)
0.999 R² (0.998 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 221.0 ns (220.2 ns .. 224.3 ns) mean 220.0 ns (219.9 ns .. 220.2 ns)
std dev 4.411 ns (1.246 ns .. 9.695 ns) std dev 606.0 ps (549.4 ps .. 753.2 ps)
benchmarking BigSum/encode/generic benchmarking BigSum/encode/generic
time 223.6 ns (223.2 ns .. 224.0 ns) time 231.5 ns (229.9 ns .. 232.9 ns)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (0.999 R² .. 1.000 R²)
mean 223.4 ns (223.1 ns .. 223.8 ns) mean 230.8 ns (229.4 ns .. 232.1 ns)
std dev 986.0 ps (594.2 ps .. 1.677 ns) std dev 5.070 ns (4.403 ns .. 5.884 ns)
benchmarking BigSum/fromJSON/th benchmarking BigSum/fromJSON/th
time 327.4 ns (326.4 ns .. 329.1 ns) time 281.9 ns (281.8 ns .. 281.9 ns)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 327.3 ns (326.7 ns .. 328.7 ns) mean 281.9 ns (281.8 ns .. 281.9 ns)
std dev 2.965 ns (1.716 ns .. 4.414 ns) std dev 138.2 ps (106.6 ps .. 178.7 ps)
benchmarking BigSum/fromJSON/generic benchmarking BigSum/fromJSON/generic
time 1.965 μs (1.954 μs .. 1.974 μs) time 1.934 μs (1.934 μs .. 1.935 μs)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 1.948 μs (1.940 μs .. 1.959 μs) mean 1.934 μs (1.934 μs .. 1.935 μs)
std dev 31.72 ns (24.18 ns .. 47.59 ns) std dev 982.3 ps (740.8 ps .. 1.314 ns)   
time stack build --flag aeson:-fast
real 2m56.708s real 3m5.049s
user 2m53.763s user 2m54.383s
sys 0m3.227s sys 0m1.403s
time stack ghc -- benchmarks/AesonCompareAutoInstances.hs -O0
real 0m8.082s real 0m10.998s
user 0m7.347s user 0m7.807s
sys 0m0.390s sys 0m0.543s
time stack ghc -- benchmarks/AesonCompareAutoInstances.hs -O2
real 0m20.881s real 0m24.214s
user 0m20.353s user 0m23.743s
sys 0m0.507s sys 0m0.430s
./benchmarks/AesonCompareAutoInstances -L10
benchmarking D/toJSON/th benchmarking D/toJSON/th
time 8.246 μs (8.201 μs .. 8.294 μs) time 8.054 μs (8.051 μs .. 8.057 μs)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 8.291 μs (8.263 μs .. 8.342 μs) mean 8.059 μs (8.057 μs .. 8.061 μs)
std dev 125.9 ns (89.97 ns .. 175.0 ns) std dev 6.918 ns (5.873 ns .. 8.564 ns)
benchmarking D/toJSON/generic benchmarking D/toJSON/generic
time 10.85 μs (10.82 μs .. 10.89 μs) time 9.437 μs (9.433 μs .. 9.440 μs)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 10.85 μs (10.82 μs .. 10.91 μs) mean 9.432 μs (9.430 μs .. 9.435 μs)
std dev 131.2 ns (64.18 ns .. 210.5 ns) std dev 10.86 ns (9.104 ns .. 13.57 ns)
benchmarking D/encode/th benchmarking D/encode/th
time 8.644 μs (8.537 μs .. 8.812 μs) time 8.408 μs (8.405 μs .. 8.411 μs)
0.999 R² (0.998 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 8.581 μs (8.554 μs .. 8.685 μs) mean 8.410 μs (8.408 μs .. 8.412 μs)
std dev 141.5 ns (57.52 ns .. 296.9 ns) std dev 7.873 ns (6.351 ns .. 10.33 ns)
benchmarking D/encode/generic benchmarking D/encode/generic
time 20.09 μs (20.03 μs .. 20.19 μs) time 19.37 μs (19.37 μs .. 19.38 μs)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 20.08 μs (20.04 μs .. 20.16 μs) mean 19.37 μs (19.36 μs .. 19.39 μs)
std dev 174.5 ns (82.41 ns .. 354.6 ns) std dev 41.35 ns (27.25 ns .. 70.73 ns)
benchmarking D/fromJSON/th benchmarking D/fromJSON/th
time 3.300 μs (3.288 μs .. 3.315 μs) time 3.118 μs (3.118 μs .. 3.120 μs)
1.000 R² (0.999 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 3.318 μs (3.299 μs .. 3.380 μs) mean 3.119 μs (3.118 μs .. 3.120 μs)
std dev 109.9 ns (34.42 ns .. 223.4 ns) std dev 4.297 ns (3.055 ns .. 5.933 ns)
benchmarking D/fromJSON/generic benchmarking D/fromJSON/generic
time 1.043 μs (1.040 μs .. 1.047 μs) time 1.149 μs (1.149 μs .. 1.150 μs)
0.999 R² (0.998 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 1.052 μs (1.043 μs .. 1.098 μs) mean 1.149 μs (1.149 μs .. 1.149 μs)
std dev 55.95 ns (10.87 ns .. 124.9 ns) std dev 1.161 ns (938.2 ps .. 1.663 ns)
benchmarking BigRecord/toJSON/th benchmarking BigRecord/toJSON/th
time 3.204 μs (3.189 μs .. 3.223 μs) time 3.158 μs (3.157 μs .. 3.161 μs)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 3.200 μs (3.191 μs .. 3.218 μs) mean 3.162 μs (3.161 μs .. 3.163 μs)
std dev 40.76 ns (24.92 ns .. 71.33 ns) std dev 3.994 ns (3.338 ns .. 4.952 ns)
benchmarking BigRecord/toJSON/generic benchmarking BigRecord/toJSON/generic
time 3.694 μs (3.586 μs .. 3.836 μs) time 3.340 μs (3.339 μs .. 3.342 μs)
0.994 R² (0.989 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 3.619 μs (3.580 μs .. 3.703 μs) mean 3.339 μs (3.338 μs .. 3.341 μs)
std dev 197.6 ns (86.57 ns .. 348.7 ns) std dev 5.958 ns (4.345 ns .. 8.492 ns)
benchmarking BigRecord/encode/th benchmarking BigRecord/encode/th
time 4.339 μs (4.197 μs .. 4.544 μs) time 4.108 μs (4.105 μs .. 4.112 μs)
0.992 R² (0.982 R² .. 0.999 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 4.273 μs (4.205 μs .. 4.434 μs) mean 4.140 μs (4.123 μs .. 4.173 μs)
std dev 318.8 ns (123.4 ns .. 531.0 ns) std dev 88.64 ns (61.78 ns .. 118.1 ns)
benchmarking BigRecord/encode/generic benchmarking BigRecord/encode/generic
time 6.904 μs (6.796 μs .. 7.037 μs) time 3.360 μs (3.355 μs .. 3.367 μs)
0.998 R² (0.997 R² .. 0.999 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 6.896 μs (6.818 μs .. 7.009 μs) mean 3.361 μs (3.358 μs .. 3.364 μs)
std dev 303.7 ns (257.1 ns .. 348.1 ns) std dev 13.17 ns (10.96 ns .. 16.07 ns)
benchmarking BigRecord/fromJSON/th benchmarking BigRecord/fromJSON/th
time 7.905 μs (7.864 μs .. 7.989 μs) time 7.836 μs (7.833 μs .. 7.838 μs)
0.999 R² (0.997 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 7.919 μs (7.874 μs .. 8.067 μs) mean 7.835 μs (7.834 μs .. 7.838 μs)
std dev 240.8 ns (72.88 ns .. 487.6 ns) std dev 7.497 ns (5.553 ns .. 11.59 ns)
benchmarking BigRecord/fromJSON/generic benchmarking BigRecord/fromJSON/generic
time 12.68 μs (12.63 μs .. 12.75 μs) time 13.04 μs (13.04 μs .. 13.04 μs)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 12.65 μs (12.62 μs .. 12.72 μs) mean 13.04 μs (13.03 μs .. 13.04 μs)
std dev 130.5 ns (65.57 ns .. 238.5 ns) std dev 9.187 ns (7.199 ns .. 12.67 ns)
benchmarking BigProduct/toJSON/th benchmarking BigProduct/toJSON/th
time 737.1 ns (736.2 ns .. 738.0 ns) time 774.4 ns (774.1 ns .. 774.8 ns)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 739.0 ns (738.0 ns .. 741.5 ns) mean 774.1 ns (773.8 ns .. 774.4 ns)
std dev 4.696 ns (2.476 ns .. 9.074 ns) std dev 1.144 ns (930.5 ps .. 1.401 ns)
benchmarking BigProduct/toJSON/generic benchmarking BigProduct/toJSON/generic
time 750.6 ns (749.3 ns .. 752.3 ns) time 745.1 ns (744.9 ns .. 745.3 ns)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 751.3 ns (749.7 ns .. 754.2 ns) mean 745.1 ns (745.0 ns .. 745.2 ns)
std dev 6.843 ns (4.040 ns .. 10.91 ns) std dev 512.8 ps (410.9 ps .. 668.0 ps)
benchmarking BigProduct/encode/th benchmarking BigProduct/encode/th
time 521.5 ns (519.3 ns .. 524.3 ns) time 516.5 ns (516.3 ns .. 516.8 ns)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 521.6 ns (519.9 ns .. 524.7 ns) mean 516.4 ns (516.2 ns .. 517.0 ns)
std dev 7.518 ns (4.629 ns .. 11.01 ns) std dev 1.144 ns (325.1 ps .. 2.580 ns)
benchmarking BigProduct/encode/generic benchmarking BigProduct/encode/generic
time 2.767 μs (2.754 μs .. 2.789 μs) time 2.666 μs (2.662 μs .. 2.668 μs)
0.998 R² (0.995 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 2.796 μs (2.765 μs .. 2.908 μs) mean 2.661 μs (2.659 μs .. 2.663 μs)
std dev 179.3 ns (42.18 ns .. 371.8 ns) std dev 7.718 ns (6.894 ns .. 8.799 ns)
benchmarking BigProduct/fromJSON/th benchmarking BigProduct/fromJSON/th
time 6.139 μs (6.121 μs .. 6.160 μs) time 6.160 μs (6.157 μs .. 6.163 μs)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 6.134 μs (6.121 μs .. 6.151 μs) mean 6.162 μs (6.159 μs .. 6.164 μs)
std dev 49.61 ns (33.45 ns .. 70.62 ns) std dev 9.939 ns (8.292 ns .. 12.25 ns)
benchmarking BigProduct/fromJSON/generic benchmarking BigProduct/fromJSON/generic
time 8.062 μs (8.039 μs .. 8.093 μs) time 7.766 μs (7.764 μs .. 7.769 μs)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 8.063 μs (8.046 μs .. 8.092 μs) mean 7.770 μs (7.768 μs .. 7.772 μs)
std dev 73.53 ns (51.47 ns .. 115.3 ns) std dev 8.200 ns (6.880 ns .. 12.19 ns)
benchmarking BigSum/toJSON/th benchmarking BigSum/toJSON/th
time 11.90 ns (11.87 ns .. 11.93 ns) time 11.19 ns (11.19 ns .. 11.19 ns)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 11.88 ns (11.86 ns .. 11.92 ns) mean 11.19 ns (11.19 ns .. 11.19 ns)
std dev 105.5 ps (67.06 ps .. 171.3 ps) std dev 5.444 ps (4.061 ps .. 8.183 ps)
benchmarking BigSum/toJSON/generic benchmarking BigSum/toJSON/generic
time 58.11 ns (57.92 ns .. 58.31 ns) time 57.37 ns (57.35 ns .. 57.38 ns)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 57.93 ns (57.85 ns .. 58.06 ns) mean 57.36 ns (57.35 ns .. 57.37 ns)
std dev 358.3 ps (229.9 ps .. 547.6 ps) std dev 37.91 ps (29.65 ps .. 54.19 ps)
benchmarking BigSum/encode/th benchmarking BigSum/encode/th
time 213.1 ns (212.7 ns .. 213.7 ns) time 210.9 ns (210.8 ns .. 211.1 ns)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 213.3 ns (212.9 ns .. 213.9 ns) mean 210.9 ns (210.9 ns .. 211.0 ns)
std dev 1.740 ns (1.189 ns .. 2.536 ns) std dev 263.5 ps (173.7 ps .. 441.0 ps)
benchmarking BigSum/encode/generic benchmarking BigSum/encode/generic
time 216.7 ns (215.6 ns .. 218.5 ns) time 214.6 ns (213.5 ns .. 216.6 ns)
0.999 R² (0.997 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 219.8 ns (216.2 ns .. 232.8 ns) mean 213.7 ns (213.5 ns .. 214.6 ns)
std dev 21.78 ns (2.099 ns .. 45.96 ns) std dev 1.317 ns (184.2 ps .. 3.078 ns)
benchmarking BigSum/fromJSON/th benchmarking BigSum/fromJSON/th
time 300.3 ns (299.6 ns .. 301.1 ns) time 267.9 ns (267.9 ns .. 268.0 ns)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 300.2 ns (299.7 ns .. 301.1 ns) mean 267.9 ns (267.9 ns .. 268.0 ns)
std dev 2.228 ns (1.468 ns .. 2.995 ns) std dev 191.5 ps (138.7 ps .. 302.9 ps)
benchmarking BigSum/fromJSON/generic benchmarking BigSum/fromJSON/generic
time 1.773 μs (1.767 μs .. 1.781 μs) time 1.759 μs (1.758 μs .. 1.759 μs)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 1.775 μs (1.770 μs .. 1.783 μs) mean 1.759 μs (1.758 μs .. 1.759 μs)
std dev 20.81 ns (13.62 ns .. 30.52 ns) std dev 1.451 ns (1.004 ns .. 2.290 ns)   
time stack build --flag aeson:-fast
real 2m34.082s real 2m39.010s
user 2m32.120s user 2m29.450s
sys 0m1.297s sys 0m1.407s
time stack ghc -- benchmarks/AesonCompareAutoInstances.hs -O0
real 0m7.816s real 0m11.434s
user 0m7.330s user 0m7.953s
sys 0m0.450s sys 0m0.603s
time stack ghc -- benchmarks/AesonCompareAutoInstances.hs -O2
real 0m22.308s real 0m25.212s
user 0m21.813s user 0m24.743s
sys 0m0.473s sys 0m0.420s
./benchmarks/AesonCompareAutoInstances -L10
benchmarking D/toJSON/th benchmarking D/toJSON/th
time 7.509 μs (7.489 μs .. 7.529 μs) time 7.828 μs (7.821 μs .. 7.838 μs)
0.999 R² (0.998 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 7.660 μs (7.624 μs .. 7.719 μs) mean 7.874 μs (7.851 μs .. 7.920 μs)
std dev 155.1 ns (93.43 ns .. 278.6 ns) std dev 117.1 ns (70.10 ns .. 179.8 ns)
benchmarking D/toJSON/generic benchmarking D/toJSON/generic
time 10.01 μs (9.952 μs .. 10.07 μs) time 9.863 μs (9.853 μs .. 9.871 μs)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 10.03 μs (9.996 μs .. 10.09 μs) mean 9.847 μs (9.842 μs .. 9.854 μs)
std dev 146.0 ns (101.5 ns .. 217.7 ns) std dev 22.22 ns (18.72 ns .. 26.68 ns)
benchmarking D/encode/th benchmarking D/encode/th
time 8.645 μs (8.600 μs .. 8.714 μs) time 8.745 μs (8.739 μs .. 8.751 μs)
1.000 R² (0.999 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 8.688 μs (8.647 μs .. 8.754 μs) mean 8.744 μs (8.742 μs .. 8.747 μs)
std dev 167.6 ns (122.2 ns .. 225.6 ns) std dev 11.31 ns (8.354 ns .. 16.29 ns)
benchmarking D/encode/generic benchmarking D/encode/generic
time 19.77 μs (19.67 μs .. 19.90 μs) time 19.03 μs (19.01 μs .. 19.05 μs)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 19.77 μs (19.72 μs .. 19.83 μs) mean 19.03 μs (19.02 μs .. 19.06 μs)
std dev 186.1 ns (116.1 ns .. 308.1 ns) std dev 67.01 ns (21.31 ns .. 119.5 ns)
benchmarking D/fromJSON/th benchmarking D/fromJSON/th
time 3.363 μs (3.351 μs .. 3.379 μs) time 3.171 μs (3.167 μs .. 3.174 μs)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 3.377 μs (3.360 μs .. 3.404 μs) mean 3.169 μs (3.167 μs .. 3.172 μs)
std dev 69.62 ns (45.65 ns .. 96.52 ns) std dev 9.851 ns (8.401 ns .. 11.76 ns)
benchmarking D/fromJSON/generic benchmarking D/fromJSON/generic
time 1.089 μs (1.082 μs .. 1.099 μs) time 1.048 μs (1.047 μs .. 1.048 μs)
1.000 R² (0.999 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 1.084 μs (1.081 μs .. 1.091 μs) mean 1.048 μs (1.047 μs .. 1.057 μs)
std dev 15.79 ns (9.913 ns .. 21.49 ns) std dev 10.31 ns (1.036 ns .. 25.51 ns)
benchmarking BigRecord/toJSON/th benchmarking BigRecord/toJSON/th
time 3.219 μs (3.172 μs .. 3.273 μs) time 3.158 μs (3.155 μs .. 3.162 μs)
0.998 R² (0.996 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 3.203 μs (3.174 μs .. 3.273 μs) mean 3.163 μs (3.161 μs .. 3.166 μs)
std dev 143.2 ns (66.74 ns .. 273.6 ns) std dev 10.68 ns (9.310 ns .. 13.57 ns)
benchmarking BigRecord/toJSON/generic benchmarking BigRecord/toJSON/generic
time 3.648 μs (3.594 μs .. 3.688 μs) time 3.390 μs (3.388 μs .. 3.394 μs)
0.999 R² (0.999 R² .. 0.999 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 3.590 μs (3.566 μs .. 3.623 μs) mean 3.394 μs (3.391 μs .. 3.396 μs)
std dev 97.25 ns (83.41 ns .. 108.3 ns) std dev 10.21 ns (9.136 ns .. 12.70 ns)
benchmarking BigRecord/encode/th benchmarking BigRecord/encode/th
time 4.734 μs (4.716 μs .. 4.757 μs) time 4.741 μs (4.739 μs .. 4.743 μs)
1.000 R² (0.999 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 4.820 μs (4.777 μs .. 4.875 μs) mean 4.741 μs (4.739 μs .. 4.744 μs)
std dev 160.6 ns (134.3 ns .. 186.7 ns) std dev 9.339 ns (6.174 ns .. 17.82 ns)
benchmarking BigRecord/encode/generic benchmarking BigRecord/encode/generic
time 7.146 μs (7.126 μs .. 7.179 μs) time 3.764 μs (3.749 μs .. 3.792 μs)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 7.203 μs (7.170 μs .. 7.271 μs) mean 3.752 μs (3.749 μs .. 3.763 μs)
std dev 166.4 ns (108.5 ns .. 240.9 ns) std dev 19.75 ns (5.208 ns .. 41.22 ns)
benchmarking BigRecord/fromJSON/th benchmarking BigRecord/fromJSON/th
time 8.500 μs (8.474 μs .. 8.539 μs) time 10.11 μs (10.10 μs .. 10.11 μs)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 8.517 μs (8.495 μs .. 8.557 μs) mean 10.10 μs (10.10 μs .. 10.10 μs)
std dev 102.6 ns (67.91 ns .. 186.2 ns) std dev 11.36 ns (9.620 ns .. 14.74 ns)
benchmarking BigRecord/fromJSON/generic benchmarking BigRecord/fromJSON/generic
time 13.82 μs (13.79 μs .. 13.88 μs) time 14.47 μs (14.46 μs .. 14.48 μs)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 13.84 μs (13.81 μs .. 13.89 μs) mean 14.48 μs (14.48 μs .. 14.49 μs)
std dev 117.0 ns (78.18 ns .. 191.4 ns) std dev 16.16 ns (14.16 ns .. 18.36 ns)
benchmarking BigProduct/toJSON/th benchmarking BigProduct/toJSON/th
time 750.5 ns (748.4 ns .. 752.7 ns) time 753.1 ns (744.5 ns .. 766.6 ns)
1.000 R² (1.000 R² .. 1.000 R²) 0.998 R² (0.996 R² .. 1.000 R²)
mean 750.1 ns (748.1 ns .. 754.4 ns) mean 749.7 ns (746.3 ns .. 760.5 ns)
std dev 9.141 ns (5.699 ns .. 16.32 ns) std dev 20.46 ns (3.183 ns .. 41.32 ns)
benchmarking BigProduct/toJSON/generic benchmarking BigProduct/toJSON/generic
time 743.8 ns (737.0 ns .. 752.6 ns) time 766.9 ns (765.8 ns .. 768.2 ns)
0.997 R² (0.995 R² .. 0.999 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 794.1 ns (768.9 ns .. 827.0 ns) mean 768.0 ns (766.9 ns .. 769.0 ns)
std dev 101.9 ns (72.48 ns .. 130.5 ns) std dev 4.071 ns (3.634 ns .. 4.592 ns)
benchmarking BigProduct/encode/th benchmarking BigProduct/encode/th
time 518.5 ns (510.6 ns .. 526.8 ns) time 492.0 ns (491.8 ns .. 492.2 ns)
0.999 R² (0.998 R² .. 0.999 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 521.2 ns (516.0 ns .. 526.7 ns) mean 491.9 ns (491.8 ns .. 492.0 ns)
std dev 18.19 ns (16.88 ns .. 19.37 ns) std dev 457.3 ps (374.6 ps .. 575.8 ps)
benchmarking BigProduct/encode/generic benchmarking BigProduct/encode/generic
time 2.929 μs (2.918 μs .. 2.944 μs) time 2.857 μs (2.855 μs .. 2.859 μs)
1.000 R² (0.999 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 2.941 μs (2.926 μs .. 2.970 μs) mean 2.856 μs (2.855 μs .. 2.857 μs)
std dev 69.97 ns (41.63 ns .. 96.05 ns) std dev 2.961 ns (1.897 ns .. 4.587 ns)
benchmarking BigProduct/fromJSON/th benchmarking BigProduct/fromJSON/th
time 6.910 μs (6.870 μs .. 6.967 μs) time 7.302 μs (7.298 μs .. 7.306 μs)
0.999 R² (0.999 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 6.943 μs (6.888 μs .. 7.066 μs) mean 7.302 μs (7.300 μs .. 7.304 μs)
std dev 267.8 ns (123.4 ns .. 607.7 ns) std dev 9.715 ns (8.066 ns .. 12.33 ns)
benchmarking BigProduct/fromJSON/generic benchmarking BigProduct/fromJSON/generic
time 8.619 μs (8.584 μs .. 8.664 μs) time 8.861 μs (8.858 μs .. 8.864 μs)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 8.625 μs (8.600 μs .. 8.658 μs) mean 8.859 μs (8.857 μs .. 8.862 μs)
std dev 96.06 ns (72.00 ns .. 119.6 ns) std dev 8.225 ns (6.681 ns .. 11.12 ns)
benchmarking BigSum/toJSON/th benchmarking BigSum/toJSON/th
time 11.35 ns (11.28 ns .. 11.42 ns) time 11.18 ns (11.18 ns .. 11.18 ns)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 11.30 ns (11.27 ns .. 11.34 ns) mean 11.18 ns (11.17 ns .. 11.18 ns)
std dev 117.6 ps (81.32 ps .. 169.3 ps) std dev 7.941 ps (5.221 ps .. 14.43 ps)
benchmarking BigSum/toJSON/generic benchmarking BigSum/toJSON/generic
time 53.60 ns (52.29 ns .. 55.55 ns) time 53.05 ns (53.04 ns .. 53.07 ns)
0.993 R² (0.986 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 53.39 ns (52.64 ns .. 55.17 ns) mean 53.06 ns (53.05 ns .. 53.08 ns)
std dev 3.979 ns (2.123 ns .. 6.035 ns) std dev 57.88 ps (47.83 ps .. 71.25 ps)
benchmarking BigSum/encode/th benchmarking BigSum/encode/th
time 205.6 ns (203.7 ns .. 207.2 ns) time 197.9 ns (197.9 ns .. 198.0 ns)
1.000 R² (0.999 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 203.2 ns (202.0 ns .. 204.8 ns) mean 197.9 ns (197.8 ns .. 198.0 ns)
std dev 4.590 ns (4.072 ns .. 5.289 ns) std dev 288.0 ps (199.5 ps .. 512.2 ps)
benchmarking BigSum/encode/generic benchmarking BigSum/encode/generic
time 205.7 ns (203.4 ns .. 208.6 ns) time 201.1 ns (200.3 ns .. 202.5 ns)
0.999 R² (0.999 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 206.9 ns (205.3 ns .. 208.5 ns) mean 201.9 ns (201.5 ns .. 202.5 ns)
std dev 5.453 ns (4.525 ns .. 6.598 ns) std dev 1.688 ns (1.015 ns .. 3.505 ns)
benchmarking BigSum/fromJSON/th benchmarking BigSum/fromJSON/th
time 329.0 ns (325.7 ns .. 333.1 ns) time 316.0 ns (316.0 ns .. 316.1 ns)
0.999 R² (0.999 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 327.1 ns (324.6 ns .. 330.4 ns) mean 317.8 ns (316.9 ns .. 319.0 ns)
std dev 9.463 ns (7.295 ns .. 11.39 ns) std dev 3.696 ns (2.678 ns .. 4.660 ns)
benchmarking BigSum/fromJSON/generic benchmarking BigSum/fromJSON/generic
time 1.706 μs (1.700 μs .. 1.715 μs) time 1.706 μs (1.704 μs .. 1.708 μs)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 1.704 μs (1.700 μs .. 1.710 μs) mean 1.706 μs (1.705 μs .. 1.708 μs)
std dev 16.41 ns (12.16 ns .. 21.32 ns) std dev 5.391 ns (4.445 ns .. 7.922 ns)
time stack build --flag aeson:-fast
real 2m12.011s real 2m15.771s
user 2m9.763s user 2m4.903s
sys 0m1.173s sys 0m1.287s
time stack ghc -- benchmarks/AesonCompareAutoInstances.hs -O0
real 0m7.819s real 0m12.383s
user 0m6.993s user 0m7.867s
sys 0m0.447s sys 0m0.597s
time stack ghc -- benchmarks/AesonCompareAutoInstances.hs -O2
real 0m21.143s real 0m20.264s
user 0m20.707s user 0m19.793s
sys 0m0.413s sys 0m0.403s
./benchmarks/AesonCompareAutoInstances -L10
benchmarking D/toJSON/th benchmarking D/toJSON/th
time 8.593 μs (8.440 μs .. 8.761 μs) time 8.109 μs (8.106 μs .. 8.113 μs)
0.998 R² (0.997 R² .. 0.999 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 8.494 μs (8.414 μs .. 8.613 μs) mean 8.113 μs (8.110 μs .. 8.118 μs)
std dev 321.5 ns (215.2 ns .. 422.1 ns) std dev 15.05 ns (12.31 ns .. 20.19 ns)
benchmarking D/toJSON/generic benchmarking D/toJSON/generic
time 11.61 μs (11.53 μs .. 11.73 μs) time 12.77 μs (12.76 μs .. 12.78 μs)
0.998 R² (0.997 R² .. 0.999 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 12.09 μs (11.93 μs .. 12.30 μs) mean 12.79 μs (12.78 μs .. 12.80 μs)
std dev 634.0 ns (508.9 ns .. 949.7 ns) std dev 32.57 ns (28.60 ns .. 38.00 ns)
benchmarking D/encode/th benchmarking D/encode/th
time 8.903 μs (8.834 μs .. 9.004 μs) time 8.602 μs (8.599 μs .. 8.605 μs)
0.999 R² (0.999 R² .. 0.999 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 9.002 μs (8.925 μs .. 9.093 μs) mean 8.600 μs (8.598 μs .. 8.603 μs)
std dev 282.2 ns (259.9 ns .. 308.8 ns) std dev 9.532 ns (7.903 ns .. 11.43 ns)
benchmarking D/encode/generic benchmarking D/encode/generic
time 21.71 μs (21.62 μs .. 21.82 μs) time 22.46 μs (22.45 μs .. 22.47 μs)
1.000 R² (0.999 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 21.82 μs (21.64 μs .. 22.28 μs) mean 22.49 μs (22.48 μs .. 22.50 μs)
std dev 883.9 ns (206.5 ns .. 1.647 μs) std dev 29.87 ns (26.14 ns .. 35.05 ns)
benchmarking D/fromJSON/th benchmarking D/fromJSON/th
time 3.577 μs (3.551 μs .. 3.625 μs) time 3.718 μs (3.717 μs .. 3.720 μs)
0.999 R² (0.997 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 3.602 μs (3.568 μs .. 3.680 μs) mean 3.717 μs (3.716 μs .. 3.718 μs)
std dev 157.2 ns (81.01 ns .. 294.5 ns) std dev 4.236 ns (3.167 ns .. 6.272 ns)
benchmarking D/fromJSON/generic benchmarking D/fromJSON/generic
time 869.1 ns (867.1 ns .. 871.9 ns) time 967.7 ns (967.3 ns .. 968.1 ns)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (0.999 R² .. 1.000 R²)
mean 872.4 ns (869.2 ns .. 877.7 ns) mean 978.2 ns (968.3 ns .. 1.017 μs)
std dev 13.72 ns (7.751 ns .. 19.87 ns) std dev 66.57 ns (1.050 ns .. 141.8 ns)
benchmarking BigRecord/toJSON/th benchmarking BigRecord/toJSON/th
time 3.063 μs (3.043 μs .. 3.091 μs) time 3.096 μs (3.095 μs .. 3.097 μs)
1.000 R² (0.999 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 3.055 μs (3.044 μs .. 3.076 μs) mean 3.095 μs (3.094 μs .. 3.096 μs)
std dev 47.98 ns (25.97 ns .. 73.14 ns) std dev 3.507 ns (2.860 ns .. 4.525 ns)
benchmarking BigRecord/toJSON/generic benchmarking BigRecord/toJSON/generic
time 6.476 μs (6.404 μs .. 6.560 μs) time 6.646 μs (6.617 μs .. 6.699 μs)
0.999 R² (0.998 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 6.461 μs (6.411 μs .. 6.565 μs) mean 6.624 μs (6.619 μs .. 6.639 μs)
std dev 227.4 ns (105.3 ns .. 376.7 ns) std dev 33.84 ns (10.54 ns .. 63.57 ns)
benchmarking BigRecord/encode/th benchmarking BigRecord/encode/th
time 4.650 μs (4.627 μs .. 4.680 μs) time 4.433 μs (4.432 μs .. 4.434 μs)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 4.643 μs (4.630 μs .. 4.665 μs) mean 4.433 μs (4.432 μs .. 4.435 μs)
std dev 58.87 ns (44.26 ns .. 85.67 ns) std dev 4.500 ns (3.558 ns .. 6.450 ns)
benchmarking BigRecord/encode/generic benchmarking BigRecord/encode/generic
time 3.837 μs (3.816 μs .. 3.866 μs) time 2.805 μs (2.804 μs .. 2.806 μs)
0.999 R² (0.998 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 3.855 μs (3.831 μs .. 3.904 μs) mean 2.804 μs (2.803 μs .. 2.805 μs)
std dev 112.2 ns (66.43 ns .. 188.4 ns) std dev 3.203 ns (2.688 ns .. 4.104 ns)
benchmarking BigRecord/fromJSON/th benchmarking BigRecord/fromJSON/th
time 9.480 μs (8.811 μs .. 10.31 μs) time 8.669 μs (8.666 μs .. 8.674 μs)
0.958 R² (0.917 R² .. 0.995 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 8.909 μs (8.635 μs .. 9.552 μs) mean 8.678 μs (8.675 μs .. 8.683 μs)
std dev 1.413 μs (639.0 ns .. 2.599 μs) std dev 14.68 ns (12.58 ns .. 17.47 ns)
benchmarking BigRecord/fromJSON/generic benchmarking BigRecord/fromJSON/generic
time 10.25 μs (10.16 μs .. 10.41 μs) time 10.13 μs (10.12 μs .. 10.15 μs)
0.991 R² (0.971 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 10.61 μs (10.27 μs .. 11.76 μs) mean 10.13 μs (10.12 μs .. 10.16 μs)
std dev 1.738 μs (560.2 ns .. 3.663 μs) std dev 51.67 ns (10.64 ns .. 108.8 ns)
benchmarking BigProduct/toJSON/th benchmarking BigProduct/toJSON/th
time 735.6 ns (733.5 ns .. 737.9 ns) time 737.2 ns (737.0 ns .. 737.4 ns)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 741.1 ns (736.6 ns .. 749.4 ns) mean 737.4 ns (737.2 ns .. 737.6 ns)
std dev 20.36 ns (11.02 ns .. 30.56 ns) std dev 644.9 ps (512.4 ps .. 842.3 ps)
benchmarking BigProduct/toJSON/generic benchmarking BigProduct/toJSON/generic
time 825.9 ns (821.5 ns .. 831.5 ns) time 750.4 ns (746.5 ns .. 753.6 ns)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 826.1 ns (823.8 ns .. 830.3 ns) mean 752.9 ns (750.9 ns .. 754.3 ns)
std dev 10.39 ns (7.692 ns .. 15.92 ns) std dev 6.294 ns (4.364 ns .. 8.156 ns)
benchmarking BigProduct/encode/th benchmarking BigProduct/encode/th
time 547.1 ns (534.1 ns .. 572.0 ns) time 611.4 ns (611.0 ns .. 612.1 ns)
0.992 R² (0.980 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 541.1 ns (535.6 ns .. 561.1 ns) mean 614.5 ns (612.4 ns .. 618.3 ns)
std dev 31.57 ns (5.856 ns .. 65.87 ns) std dev 10.55 ns (6.571 ns .. 14.90 ns)
benchmarking BigProduct/encode/generic benchmarking BigProduct/encode/generic
time 2.856 μs (2.843 μs .. 2.872 μs) time 2.924 μs (2.923 μs .. 2.924 μs)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 2.855 μs (2.845 μs .. 2.871 μs) mean 2.924 μs (2.924 μs .. 2.926 μs)
std dev 42.08 ns (26.74 ns .. 62.08 ns) std dev 4.283 ns (1.922 ns .. 8.090 ns)
benchmarking BigProduct/fromJSON/th benchmarking BigProduct/fromJSON/th
time 6.854 μs (6.839 μs .. 6.873 μs) time 6.898 μs (6.893 μs .. 6.903 μs)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 6.866 μs (6.849 μs .. 6.893 μs) mean 6.900 μs (6.896 μs .. 6.904 μs)
std dev 72.40 ns (41.76 ns .. 110.7 ns) std dev 14.77 ns (11.81 ns .. 19.18 ns)
benchmarking BigProduct/fromJSON/generic benchmarking BigProduct/fromJSON/generic
time 7.611 μs (7.586 μs .. 7.635 μs) time 7.881 μs (7.877 μs .. 7.884 μs)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 7.582 μs (7.564 μs .. 7.613 μs) mean 7.878 μs (7.874 μs .. 7.884 μs)
std dev 77.10 ns (52.15 ns .. 130.4 ns) std dev 18.01 ns (12.62 ns .. 28.91 ns)
benchmarking BigSum/toJSON/th benchmarking BigSum/toJSON/th
time 12.05 ns (11.98 ns .. 12.16 ns) time 11.18 ns (11.18 ns .. 11.18 ns)
0.999 R² (0.999 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 12.12 ns (12.03 ns .. 12.28 ns) mean 11.18 ns (11.18 ns .. 11.19 ns)
std dev 395.7 ps (299.1 ps .. 597.5 ps) std dev 5.480 ps (4.327 ps .. 8.004 ps)
benchmarking BigSum/toJSON/generic benchmarking BigSum/toJSON/generic
time 64.64 ns (64.51 ns .. 64.81 ns) time 48.96 ns (48.87 ns .. 49.15 ns)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 64.65 ns (64.51 ns .. 64.90 ns) mean 48.96 ns (48.93 ns .. 49.04 ns)
std dev 595.0 ps (418.0 ps .. 836.4 ps) std dev 188.5 ps (102.0 ps .. 352.7 ps)
benchmarking BigSum/encode/th benchmarking BigSum/encode/th
time 202.4 ns (202.1 ns .. 202.7 ns) time 198.4 ns (197.2 ns .. 199.7 ns)
1.000 R² (1.000 R² .. 1.000 R²) 0.999 R² (0.999 R² .. 1.000 R²)
mean 203.7 ns (202.9 ns .. 205.2 ns) mean 198.8 ns (197.7 ns .. 200.9 ns)
std dev 3.673 ns (2.257 ns .. 5.805 ns) std dev 5.700 ns (2.892 ns .. 9.819 ns)
benchmarking BigSum/encode/generic benchmarking BigSum/encode/generic
time 208.1 ns (205.8 ns .. 211.9 ns) time 215.8 ns (203.9 ns .. 234.0 ns)
0.998 R² (0.996 R² .. 1.000 R²) 0.980 R² (0.962 R² .. 1.000 R²)
mean 207.5 ns (206.0 ns .. 211.0 ns) mean 206.1 ns (203.8 ns .. 213.2 ns)
std dev 6.899 ns (1.193 ns .. 12.21 ns) std dev 13.94 ns (961.9 ps .. 28.91 ns)
benchmarking BigSum/fromJSON/th benchmarking BigSum/fromJSON/th
time 341.8 ns (341.4 ns .. 342.6 ns) time 331.7 ns (331.4 ns .. 332.0 ns)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (1.000 R² .. 1.000 R²)
mean 342.3 ns (341.6 ns .. 343.7 ns) mean 332.1 ns (331.5 ns .. 333.6 ns)
std dev 3.271 ns (1.569 ns .. 5.656 ns) std dev 3.218 ns (697.9 ps .. 5.715 ns)
benchmarking BigSum/fromJSON/generic benchmarking BigSum/fromJSON/generic
time 1.625 μs (1.621 μs .. 1.630 μs) time 1.635 μs (1.626 μs .. 1.649 μs)
1.000 R² (1.000 R² .. 1.000 R²) 1.000 R² (0.999 R² .. 1.000 R²)
mean 1.624 μs (1.622 μs .. 1.630 μs) mean 1.630 μs (1.628 μs .. 1.643 μs)
std dev 10.27 ns (5.276 ns .. 20.21 ns) std dev 17.28 ns (6.832 ns .. 39.59 ns)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.