Skip to content

Instantly share code, notes, and snippets.

@devinus
Created December 11, 2019 21:07
Show Gist options
  • Save devinus/a2e962a7139d20d54daff03bc9707357 to your computer and use it in GitHub Desktop.
Save devinus/a2e962a7139d20d54daff03bc9707357 to your computer and use it in GitHub Desktop.
Operating System: macOS
CPU Information: Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
Number of Available Cores: 12
Available memory: 32 GB
Elixir 1.9.4
Erlang 22.1.8
Benchmark suite executing with the following configuration:
warmup: 1 s
time: 5 s
memory time: 1 s
parallel: 4
inputs: Benchee, Blockchain, GeoJSON, Giphy, GitHub, GovTrack, Issue 90, JSON Generator, JSON Generator (Pretty), Pokedex, Reddit, UTF-8 escaped, UTF-8 unescaped
Estimated total run time: 9.10 min
Benchmarking JSON with input Benchee...
Benchmarking JSON with input Blockchain...
Benchmarking JSON with input GeoJSON...
Benchmarking JSON with input Giphy...
Benchmarking JSON with input GitHub...
Benchmarking JSON with input GovTrack...
Benchmarking JSON with input Issue 90...
Benchmarking JSON with input JSON Generator...
Benchmarking JSON with input JSON Generator (Pretty)...
Benchmarking JSON with input Pokedex...
Benchmarking JSON with input Reddit...
Benchmarking JSON with input UTF-8 escaped...
Benchmarking JSON with input UTF-8 unescaped...
Benchmarking JSX with input Benchee...
Benchmarking JSX with input Blockchain...
Benchmarking JSX with input GeoJSON...
Benchmarking JSX with input Giphy...
Benchmarking JSX with input GitHub...
Benchmarking JSX with input GovTrack...
Benchmarking JSX with input Issue 90...
Benchmarking JSX with input JSON Generator...
Benchmarking JSX with input JSON Generator (Pretty)...
Benchmarking JSX with input Pokedex...
Benchmarking JSX with input Reddit...
Benchmarking JSX with input UTF-8 escaped...
Benchmarking JSX with input UTF-8 unescaped...
Benchmarking Jason with input Benchee...
Benchmarking Jason with input Blockchain...
Benchmarking Jason with input GeoJSON...
Benchmarking Jason with input Giphy...
Benchmarking Jason with input GitHub...
Benchmarking Jason with input GovTrack...
Benchmarking Jason with input Issue 90...
Benchmarking Jason with input JSON Generator...
Benchmarking Jason with input JSON Generator (Pretty)...
Benchmarking Jason with input Pokedex...
Benchmarking Jason with input Reddit...
Benchmarking Jason with input UTF-8 escaped...
Benchmarking Jason with input UTF-8 unescaped...
Benchmarking Poison with input Benchee...
Benchmarking Poison with input Blockchain...
Benchmarking Poison with input GeoJSON...
Benchmarking Poison with input Giphy...
Benchmarking Poison with input GitHub...
Benchmarking Poison with input GovTrack...
Benchmarking Poison with input Issue 90...
Benchmarking Poison with input JSON Generator...
Benchmarking Poison with input JSON Generator (Pretty)...
Benchmarking Poison with input Pokedex...
Benchmarking Poison with input Reddit...
Benchmarking Poison with input UTF-8 escaped...
Benchmarking Poison with input UTF-8 unescaped...
Benchmarking jiffy with input Benchee...
Benchmarking jiffy with input Blockchain...
Benchmarking jiffy with input GeoJSON...
Benchmarking jiffy with input Giphy...
Benchmarking jiffy with input GitHub...
Benchmarking jiffy with input GovTrack...
Benchmarking jiffy with input Issue 90...
Benchmarking jiffy with input JSON Generator...
Benchmarking jiffy with input JSON Generator (Pretty)...
Benchmarking jiffy with input Pokedex...
Benchmarking jiffy with input Reddit...
Benchmarking jiffy with input UTF-8 escaped...
Benchmarking jiffy with input UTF-8 unescaped...
Benchmarking jsone with input Benchee...
Benchmarking jsone with input Blockchain...
Benchmarking jsone with input GeoJSON...
Benchmarking jsone with input Giphy...
Benchmarking jsone with input GitHub...
Benchmarking jsone with input GovTrack...
Benchmarking jsone with input Issue 90...
Benchmarking jsone with input JSON Generator...
Benchmarking jsone with input JSON Generator (Pretty)...
Benchmarking jsone with input Pokedex...
Benchmarking jsone with input Reddit...
Benchmarking jsone with input UTF-8 escaped...
Benchmarking jsone with input UTF-8 unescaped...
##### With input Benchee #####
Name ips average deviation median 99th %
jiffy 84.58 11.82 ms ±11.61% 11.38 ms 16.77 ms
Poison 37.96 26.34 ms ±5.79% 26.14 ms 31.16 ms
Jason 32.22 31.04 ms ±5.58% 30.94 ms 37.51 ms
jsone 27.11 36.88 ms ±6.94% 36.44 ms 48.38 ms
JSX 11.77 84.97 ms ±4.78% 84.05 ms 102.34 ms
JSON 4.20 238.13 ms ±8.07% 231.44 ms 311.65 ms
Comparison:
jiffy 84.58
Poison 37.96 - 2.23x slower +14.52 ms
Jason 32.22 - 2.63x slower +19.21 ms
jsone 27.11 - 3.12x slower +25.06 ms
JSX 11.77 - 7.19x slower +73.15 ms
JSON 4.20 - 20.14x slower +226.31 ms
Extended statistics:
Name minimum maximum sample size mode
jiffy 10.20 ms 19.85 ms 1.68 K10.97 ms, 11.11 ms, 10.72
Poison 22.37 ms 33.25 ms 75926.45 ms, 25.61 ms, 25.99
Jason 28.14 ms 37.87 ms 644 32.30 ms
jsone 31.45 ms 49.50 ms 54336.48 ms, 35.93 ms, 37.62
JSX 79.47 ms 103.90 ms 236 84.81 ms, 84.04 ms
JSON 215.91 ms 311.65 ms 84 None
Memory usage statistics:
Name Memory usage
jiffy 2.63 MB
Poison 7.35 MB - 2.80x memory usage +4.72 MB
Jason 5.83 MB - 2.22x memory usage +3.20 MB
jsone 8.68 MB - 3.30x memory usage +6.06 MB
JSX 37.13 MB - 14.13x memory usage +34.50 MB
JSON 114.72 MB - 43.66x memory usage +112.10 MB
**All measurements for memory usage were the same**
##### With input Blockchain #####
Name ips average deviation median 99th %
jiffy 4.21 K 237.68 μs ±34.31% 208.99 μs 519.99 μs
Poison 2.79 K 358.90 μs ±13.64% 349.99 μs 570.99 μs
Jason 2.42 K 413.92 μs ±8.51% 407.99 μs 539.99 μs
jsone 1.92 K 521.28 μs ±10.56% 511.99 μs 744.99 μs
JSX 1.33 K 752.68 μs ±11.75% 738.99 μs 1153.89 μs
JSON 0.66 K 1511.25 μs ±8.55% 1497.99 μs 2066.01 μs
Comparison:
jiffy 4.21 K
Poison 2.79 K - 1.51x slower +121.22 μs
Jason 2.42 K - 1.74x slower +176.25 μs
jsone 1.92 K - 2.19x slower +283.60 μs
JSX 1.33 K - 3.17x slower +515.00 μs
JSON 0.66 K - 6.36x slower +1273.57 μs
Extended statistics:
Name minimum maximum sample size mode
jiffy 160.99 μs 862.99 μs 82.80 K 167.99 μs
Poison 288.99 μs 906.99 μs 55.31 K 342.99 μs
Jason 357.99 μs 916.99 μs 48.06 K 391.99 μs
jsone 413.99 μs 1318.99 μs 38.17 K 504.99 μs
JSX 627.99 μs 1945.99 μs 26.45 K 689.99 μs
JSON 1219.99 μs 2975.99 μs 13.20 K 1489.99 μs
Memory usage statistics:
Name Memory usage
jiffy 1.57 KB
Poison 97.09 KB - 61.83x memory usage +95.52 KB
Jason 51.65 KB - 32.89x memory usage +50.08 KB
jsone 151.38 KB - 96.40x memory usage +149.80 KB
JSX 316.16 KB - 201.33x memory usage +314.59 KB
JSON 904.73 KB - 576.14x memory usage +903.16 KB
**All measurements for memory usage were the same**
##### With input GeoJSON #####
Name ips average deviation median 99th %
jiffy 11.03 90.69 ms ±10.88% 90.42 ms 120.80 ms
Poison 4.65 215.20 ms ±4.61% 213.18 ms 243.39 ms
Jason 4.25 235.44 ms ±4.90% 237.38 ms 261.59 ms
jsone 4.07 245.87 ms ±4.02% 243.96 ms 287.17 ms
JSX 1.83 545.12 ms ±2.05% 544.30 ms 571.79 ms
JSON 0.53 1878.15 ms ±2.17% 1867.65 ms 1941.89 ms
Comparison:
jiffy 11.03
Poison 4.65 - 2.37x slower +124.52 ms
Jason 4.25 - 2.60x slower +144.75 ms
jsone 4.07 - 2.71x slower +155.18 ms
JSX 1.83 - 6.01x slower +454.43 ms
JSON 0.53 - 20.71x slower +1787.46 ms
Extended statistics:
Name minimum maximum sample size mode
jiffy 68.17 ms 124.11 ms 221 None
Poison 199.27 ms 243.39 ms 96 None
Jason 217.60 ms 261.59 ms 88 243.85 ms
jsone 234.14 ms 287.17 ms 84 None
JSX 524.69 ms 571.79 ms 40 None
JSON 1819.22 ms 1941.89 ms 12 None
Memory usage statistics:
Name Memory usage
jiffy 20.57 MB
Poison 49.67 MB - 2.41x memory usage +29.10 MB
Jason 31.06 MB - 1.51x memory usage +10.48 MB
jsone 49.37 MB - 2.40x memory usage +28.79 MB
JSX 151.55 MB - 7.37x memory usage +130.98 MB
JSON 559.19 MB - 27.18x memory usage +538.62 MB
**All measurements for memory usage were the same**
##### With input Giphy #####
Name ips average deviation median 99th %
jiffy 464.74 2.15 ms ±19.30% 2.04 ms 3.42 ms
Jason 236.27 4.23 ms ±6.59% 4.20 ms 5.30 ms
Poison 228.30 4.38 ms ±7.33% 4.33 ms 5.51 ms
jsone 131.55 7.60 ms ±4.57% 7.51 ms 9.34 ms
JSX 111.28 8.99 ms ±5.78% 8.86 ms 10.95 ms
JSON 65.95 15.16 ms ±5.43% 15.01 ms 18.54 ms
Comparison:
jiffy 464.74
Jason 236.27 - 1.97x slower +2.08 ms
Poison 228.30 - 2.04x slower +2.23 ms
jsone 131.55 - 3.53x slower +5.45 ms
JSX 111.28 - 4.18x slower +6.83 ms
JSON 65.95 - 7.05x slower +13.01 ms
Extended statistics:
Name minimum maximum sample size mode
jiffy 1.34 ms 4.76 ms 9.22 K 1.91 ms
Jason 3.62 ms 6.04 ms 4.71 K 4.15 ms
Poison 3.76 ms 8.16 ms 4.55 K 4.24 ms
jsone 7.03 ms 10.54 ms 2.63 K 7.50 ms
JSX 8.09 ms 12.98 ms 2.22 K 8.74 ms
JSON 13.68 ms 20.45 ms 1.32 K14.96 ms, 14.79 ms, 14.84
Memory usage statistics:
Name Memory usage
jiffy 0.40 MB
Jason 0.67 MB - 1.67x memory usage +0.27 MB
Poison 1.53 MB - 3.80x memory usage +1.12 MB
jsone 2.40 MB - 5.98x memory usage +2.00 MB
JSX 3.77 MB - 9.40x memory usage +3.37 MB
JSON 7.75 MB - 19.31x memory usage +7.35 MB
**All measurements for memory usage were the same**
##### With input GitHub #####
Name ips average deviation median 99th %
jiffy 1655.33 0.60 ms ±21.11% 0.58 ms 1.00 ms
Poison 990.38 1.01 ms ±7.88% 1.00 ms 1.39 ms
Jason 814.80 1.23 ms ±5.27% 1.21 ms 1.52 ms
jsone 595.52 1.68 ms ±8.38% 1.66 ms 2.28 ms
JSX 346.94 2.88 ms ±5.70% 2.85 ms 3.61 ms
JSON 214.97 4.65 ms ±6.75% 4.58 ms 6.15 ms
Comparison:
jiffy 1655.33
Poison 990.38 - 1.67x slower +0.41 ms
Jason 814.80 - 2.03x slower +0.62 ms
jsone 595.52 - 2.78x slower +1.08 ms
JSX 346.94 - 4.77x slower +2.28 ms
JSON 214.97 - 7.70x slower +4.05 ms
Extended statistics:
Name minimum maximum sample size mode
jiffy 0.44 ms 2.56 ms 32.81 K 0.46 ms
Poison 0.91 ms 1.96 ms 19.72 K 0.99 ms
Jason 1.17 ms 2.02 ms 16.24 K 1.21 ms
jsone 1.46 ms 3.15 ms 11.87 K 1.55 ms, 1.68 ms
JSX 2.61 ms 4.37 ms 6.92 K 2.85 ms, 2.87 ms
JSON 4.19 ms 7.77 ms 4.29 K4.50 ms, 4.56 ms, 4.56 ms
Memory usage statistics:
Name average deviation median 99th %
jiffy 47.88 KB ±0.00% 47.88 KB 47.88 KB
Poison 277.33 KB ±0.00% 277.33 KB 277.33 KB
Jason 122.83 KB ±0.00% 122.83 KB 122.83 KB
jsone 425.46 KB ±0.00% 425.46 KB 425.46 KB
JSX 1217.55 KB ±0.00% 1217.55 KB 1217.55 KB
JSON 2647.64 KB ±0.00% 2647.64 KB 2647.64 KB
Comparison:
jiffy 47.88 KB
Poison 277.33 KB - 5.79x memory usage +229.45 KB
Jason 122.83 KB - 2.57x memory usage +74.95 KB
jsone 425.46 KB - 8.89x memory usage +377.58 KB
JSX 1217.55 KB - 25.43x memory usage +1169.67 KB
JSON 2647.64 KB - 55.29x memory usage +2599.76 KB
Extended statistics:
Name minimum maximum sample size mode
jiffy 47.88 KB 47.88 KB 3.84 K 47.88 KB
Poison 277.33 KB 277.33 KB 2.71 K 277.33 KB
Jason 122.83 KB 122.83 KB 2.97 K 122.83 KB
jsone 425.46 KB 425.46 KB 2.29 K 425.46 KB
JSX 1217.55 KB 1217.55 KB 1.32 K 1217.55 KB
JSON 2647.55 KB 2648.61 KB 780 2647.64 KB
##### With input GovTrack #####
Name ips average deviation median 99th %
jiffy 10.92 91.55 ms ±6.33% 90.76 ms 105.41 ms
Poison 8.02 124.65 ms ±7.23% 125.62 ms 149.15 ms
Jason 7.87 127.14 ms ±4.35% 126.76 ms 145.54 ms
jsone 5.15 194.17 ms ±3.36% 194.11 ms 214.60 ms
JSX 2.98 336.13 ms ±4.15% 334.55 ms 369.48 ms
JSON 1.43 699.65 ms ±2.32% 699.23 ms 732.98 ms
Comparison:
jiffy 10.92
Poison 8.02 - 1.36x slower +33.10 ms
Jason 7.87 - 1.39x slower +35.60 ms
jsone 5.15 - 2.12x slower +102.62 ms
JSX 2.98 - 3.67x slower +244.58 ms
JSON 1.43 - 7.64x slower +608.10 ms
Extended statistics:
Name minimum maximum sample size mode
jiffy 81.07 ms 106.09 ms 220 None
Poison 110.83 ms 149.67 ms 160 None
Jason 118.72 ms 145.75 ms 160 None
jsone 178.12 ms 214.79 ms 104 196.47 ms
JSX 311.98 ms 369.48 ms 60 None
JSON 672.56 ms 732.98 ms 32 None
Memory usage statistics:
Name Memory usage
jiffy 25.41 MB
Poison 24.60 MB - 0.97x memory usage -0.81048 MB
Jason 11.65 MB - 0.46x memory usage -13.75589 MB
jsone 38.02 MB - 1.50x memory usage +12.62 MB
JSX 83.60 MB - 3.29x memory usage +58.20 MB
JSON 212.48 MB - 8.36x memory usage +187.08 MB
**All measurements for memory usage were the same**
##### With input Issue 90 #####
Name ips average deviation median 99th %
jiffy 63.64 15.71 ms ±4.95% 15.45 ms 18.78 ms
Poison 8.80 113.65 ms ±3.12% 112.22 ms 128.02 ms
Jason 7.74 129.16 ms ±1.86% 128.91 ms 137.17 ms
JSX 7.64 130.82 ms ±2.59% 129.73 ms 143.39 ms
jsone 6.48 154.38 ms ±3.72% 153.57 ms 168.27 ms
JSON 0.93 1078.48 ms ±1.89% 1075.78 ms 1106.81 ms
Comparison:
jiffy 63.64
Poison 8.80 - 7.23x slower +97.94 ms
Jason 7.74 - 8.22x slower +113.45 ms
JSX 7.64 - 8.32x slower +115.10 ms
jsone 6.48 - 9.82x slower +138.67 ms
JSON 0.93 - 68.63x slower +1062.77 ms
Extended statistics:
Name minimum maximum sample size mode
jiffy 14.72 ms 19.74 ms 1.21 K 15.17 ms
Poison 111.21 ms 128.23 ms 176 111.88 ms, 111.52 ms
Jason 124.72 ms 137.41 ms 152 None
JSX 128.09 ms 143.78 ms 152 129.20 ms
jsone 145.31 ms 168.38 ms 132 153.57 ms, 154.27 ms
JSON 1044.02 ms 1106.81 ms 20 None
Memory usage statistics:
Name Memory usage
jiffy 0.0117 MB
Poison 3.22 MB - 275.08x memory usage +3.21 MB
Jason 1.06 MB - 90.39x memory usage +1.05 MB
JSX 4.26 MB - 364.15x memory usage +4.25 MB
jsone 5.16 MB - 440.68x memory usage +5.15 MB
JSON 236.12 MB - 20161.66x memory usage +236.10 MB
**All measurements for memory usage were the same**
##### With input JSON Generator #####
Name ips average deviation median 99th %
jiffy 445.98 2.24 ms ±17.82% 2.17 ms 3.27 ms
Poison 355.60 2.81 ms ±7.48% 2.78 ms 3.60 ms
Jason 316.12 3.16 ms ±5.09% 3.15 ms 3.81 ms
jsone 208.69 4.79 ms ±4.41% 4.75 ms 5.90 ms
JSX 139.07 7.19 ms ±5.39% 7.10 ms 8.89 ms
JSON 56.06 17.84 ms ±8.15% 17.33 ms 23.89 ms
Comparison:
jiffy 445.98
Poison 355.60 - 1.25x slower +0.57 ms
Jason 316.12 - 1.41x slower +0.92 ms
jsone 208.69 - 2.14x slower +2.55 ms
JSX 139.07 - 3.21x slower +4.95 ms
JSON 56.06 - 7.96x slower +15.60 ms
Extended statistics:
Name minimum maximum sample size mode
jiffy 1.47 ms 4.66 ms 8.80 K 2.05 ms
Poison 2.35 ms 4.34 ms 7.09 K 2.75 ms
Jason 2.86 ms 4.94 ms 6.30 K 3.14 ms
jsone 4.32 ms 6.88 ms 4.17 K4.73 ms, 4.74 ms, 4.73 ms
JSX 6.61 ms 10.07 ms 2.77 K 7.20 ms
JSON 16.28 ms 25.69 ms 1.12 K17.24 ms, 16.77 ms, 17.14
Memory usage statistics:
Name average deviation median 99th %
jiffy 0.31 MB ±0.00% 0.31 MB 0.31 MB
Poison 0.94 MB ±0.00% 0.94 MB 0.94 MB
Jason 0.47 MB ±0.00% 0.47 MB 0.47 MB
jsone 1.44 MB ±0.00% 1.44 MB 1.44 MB
JSX 3.14 MB ±0.00% 3.14 MB 3.14 MB
JSON 8.61 MB ±0.00% 8.61 MB 8.61 MB
Comparison:
jiffy 0.31 MB
Poison 0.94 MB - 3.07x memory usage +0.63 MB
Jason 0.47 MB - 1.54x memory usage +0.165 MB
jsone 1.44 MB - 4.72x memory usage +1.14 MB
JSX 3.14 MB - 10.27x memory usage +2.83 MB
JSON 8.61 MB - 28.18x memory usage +8.30 MB
Extended statistics:
Name minimum maximum sample size mode
jiffy 0.31 MB 0.31 MB 1.43 K 0.31 MB
Poison 0.94 MB 0.94 MB 1.20 K 0.94 MB
Jason 0.47 MB 0.47 MB 1.10 K 0.47 MB
jsone 1.44 MB 1.44 MB 818 1.44 MB
JSX 3.14 MB 3.14 MB 553 3.14 MB
JSON 8.61 MB 8.61 MB 263 8.61 MB
##### With input JSON Generator (Pretty) #####
Name ips average deviation median 99th %
jiffy 376.46 2.66 ms ±20.30% 2.51 ms 4.01 ms
Poison 283.89 3.52 ms ±10.36% 3.46 ms 5.00 ms
Jason 256.30 3.90 ms ±5.47% 3.85 ms 4.70 ms
jsone 185.22 5.40 ms ±5.92% 5.31 ms 6.85 ms
JSX 123.75 8.08 ms ±5.60% 8.01 ms 9.94 ms
JSON 53.70 18.62 ms ±6.69% 18.34 ms 24.65 ms
Comparison:
jiffy 376.46
Poison 283.89 - 1.33x slower +0.87 ms
Jason 256.30 - 1.47x slower +1.25 ms
jsone 185.22 - 2.03x slower +2.74 ms
JSX 123.75 - 3.04x slower +5.42 ms
JSON 53.70 - 7.01x slower +15.97 ms
Extended statistics:
Name minimum maximum sample size mode
jiffy 1.76 ms 4.76 ms 7.11 K 2.22 ms
Poison 2.96 ms 8.60 ms 5.66 K 3.35 ms
Jason 3.61 ms 6.03 ms 5.11 K 3.71 ms
jsone 4.98 ms 9.68 ms 3.70 K 5.30 ms
JSX 7.44 ms 10.54 ms 2.46 K 8.23 ms
JSON 17.02 ms 27.71 ms 1.07 K17.82 ms, 18.72 ms, 18.02
Memory usage statistics:
Name average deviation median 99th %
jiffy 0.55 MB ±0.00% 0.55 MB 0.55 MB
Poison 0.93 MB ±0.00% 0.93 MB 0.93 MB
Jason 0.47 MB ±0.00% 0.47 MB 0.47 MB
jsone 1.44 MB ±0.00% 1.44 MB 1.44 MB
JSX 3.14 MB ±0.00% 3.14 MB 3.14 MB
JSON 8.62 MB ±0.00% 8.62 MB 8.62 MB
Comparison:
jiffy 0.55 MB
Poison 0.93 MB - 1.69x memory usage +0.38 MB
Jason 0.47 MB - 0.85x memory usage -0.08157 MB
jsone 1.44 MB - 2.61x memory usage +0.89 MB
JSX 3.14 MB - 5.68x memory usage +2.58 MB
JSON 8.62 MB - 15.62x memory usage +8.06 MB
Extended statistics:
Name minimum maximum sample size mode
jiffy 0.55 MB 0.55 MB 1.43 K 0.55 MB
Poison 0.93 MB 0.93 MB 944 0.93 MB
Jason 0.47 MB 0.47 MB 965 0.47 MB
jsone 1.44 MB 1.44 MB 767 1.44 MB
JSX 3.14 MB 3.14 MB 509 3.14 MB
JSON 8.61 MB 8.62 MB 248 8.62 MB
##### With input Pokedex #####
Name ips average deviation median 99th %
Jason 528.25 1.89 ms ±6.30% 1.90 ms 2.33 ms
Poison 499.95 2.00 ms ±10.24% 1.97 ms 2.74 ms
jiffy 499.08 2.00 ms ±26.87% 1.76 ms 3.30 ms
jsone 291.43 3.43 ms ±5.81% 3.40 ms 4.37 ms
JSX 177.92 5.62 ms ±5.90% 5.57 ms 6.92 ms
JSON 76.55 13.06 ms ±9.49% 12.75 ms 17.24 ms
Comparison:
Jason 528.25
Poison 499.95 - 1.06x slower +0.107 ms
jiffy 499.08 - 1.06x slower +0.111 ms
jsone 291.43 - 1.81x slower +1.54 ms
JSX 177.92 - 2.97x slower +3.73 ms
JSON 76.55 - 6.90x slower +11.17 ms
Extended statistics:
Name minimum maximum sample size mode
Jason 1.59 ms 3.12 ms 10.54 K 1.91 ms
Poison 1.63 ms 3.80 ms 9.97 K 1.86 ms
jiffy 1.24 ms 6.20 ms 9.94 K 1.49 ms
jsone 3.01 ms 6.10 ms 5.82 K 3.38 ms, 3.40 ms
JSX 5.18 ms 8.17 ms 3.56 K 5.57 ms, 5.47 ms
JSON 11.16 ms 19.29 ms 1.53 K 12.99 ms
Memory usage statistics:
Name Memory usage
Jason 0.38 MB
Poison 0.79 MB - 2.08x memory usage +0.41 MB
jiffy 0.108 MB - 0.28x memory usage -0.27319 MB
jsone 1.23 MB - 3.23x memory usage +0.85 MB
JSX 2.59 MB - 6.80x memory usage +2.21 MB
JSON 5.79 MB - 15.20x memory usage +5.41 MB
**All measurements for memory usage were the same**
##### With input Reddit #####
Name ips average deviation median 99th %
jiffy 429.59 2.33 ms ±7.76% 2.30 ms 3.01 ms
Poison 278.44 3.59 ms ±7.78% 3.56 ms 4.80 ms
Jason 263.07 3.80 ms ±5.10% 3.75 ms 4.59 ms
jsone 162.70 6.15 ms ±6.07% 6.09 ms 7.76 ms
JSX 103.08 9.70 ms ±5.45% 9.55 ms 11.95 ms
JSON 50.32 19.87 ms ±10.23% 19.21 ms 28.54 ms
Comparison:
jiffy 429.59
Poison 278.44 - 1.54x slower +1.26 ms
Jason 263.07 - 1.63x slower +1.47 ms
jsone 162.70 - 2.64x slower +3.82 ms
JSX 103.08 - 4.17x slower +7.37 ms
JSON 50.32 - 8.54x slower +17.54 ms
Extended statistics:
Name minimum maximum sample size mode
jiffy 1.90 ms 3.86 ms 8.54 K 2.25 ms
Poison 3.13 ms 8.93 ms 5.54 K 3.52 ms, 3.55 ms
Jason 3.56 ms 5.70 ms 5.25 K 3.69 ms
jsone 5.23 ms 8.95 ms 3.25 K5.98 ms, 6.10 ms, 6.01 ms
JSX 9.00 ms 13.85 ms 2.06 K 9.44 ms
JSON 17.77 ms 30.04 ms 1.00 K19.13 ms, 19.18 ms, 18.76
Memory usage statistics:
Name average deviation median 99th %
jiffy 0.52 MB ±0.00% 0.52 MB 0.52 MB
Poison 1.00 MB ±0.00% 1.00 MB 1.00 MB
Jason 0.54 MB ±0.00% 0.54 MB 0.54 MB
jsone 1.57 MB ±0.00% 1.57 MB 1.57 MB
JSX 3.43 MB ±0.00% 3.43 MB 3.43 MB
JSON 8.57 MB ±0.01% 8.57 MB 8.57 MB
Comparison:
jiffy 0.52 MB
Poison 1.00 MB - 1.94x memory usage +0.49 MB
Jason 0.54 MB - 1.05x memory usage +0.0270 MB
jsone 1.57 MB - 3.03x memory usage +1.05 MB
JSX 3.43 MB - 6.63x memory usage +2.91 MB
JSON 8.57 MB - 16.56x memory usage +8.05 MB
Extended statistics:
Name minimum maximum sample size mode
jiffy 0.52 MB 0.52 MB 1.32 K 0.52 MB
Poison 1.00 MB 1.00 MB 936 1.00 MB
Jason 0.54 MB 0.54 MB 1.02 K 0.54 MB
jsone 1.57 MB 1.57 MB 730 1.57 MB
JSX 3.43 MB 3.43 MB 481 3.43 MB
JSON 8.57 MB 8.58 MB 260 8.57 MB
##### With input UTF-8 escaped #####
Name ips average deviation median 99th %
jiffy 12.72 K 0.0786 ms ±31.94% 0.0760 ms 0.126 ms
Poison 1.31 K 0.76 ms ±17.21% 0.75 ms 1.32 ms
Jason 1.15 K 0.87 ms ±13.26% 0.86 ms 1.26 ms
jsone 0.74 K 1.34 ms ±12.54% 1.33 ms 1.80 ms
JSX 0.72 K 1.39 ms ±6.84% 1.36 ms 1.81 ms
JSON 0.56 K 1.80 ms ±12.86% 1.86 ms 2.44 ms
Comparison:
jiffy 12.72 K
Poison 1.31 K - 9.72x slower +0.69 ms
Jason 1.15 K - 11.10x slower +0.79 ms
jsone 0.74 K - 17.08x slower +1.26 ms
JSX 0.72 K - 17.69x slower +1.31 ms
JSON 0.56 K - 22.86x slower +1.72 ms
Extended statistics:
Name minimum maximum sample size mode
jiffy 0.0720 ms 2.64 ms 238.45 K 0.0740 ms
Poison 0.55 ms 2.17 ms 26.05 K 0.67 ms
Jason 0.75 ms 1.84 ms 22.81 K 0.76 ms
jsone 1.08 ms 2.67 ms 14.86 K 1.14 ms
JSX 1.25 ms 2.44 ms 14.34 K 1.36 ms
JSON 1.34 ms 3.44 ms 11.10 K 1.86 ms
Memory usage statistics:
Name Memory usage
jiffy 0.0703 KB
Poison 357.33 KB - 5082.00x memory usage +357.26 KB
Jason 283.82 KB - 4036.56x memory usage +283.75 KB
jsone 741.67 KB - 10548.22x memory usage +741.60 KB
JSX 736.74 KB - 10478.11x memory usage +736.67 KB
JSON 1089.06 KB - 15488.89x memory usage +1088.99 KB
**All measurements for memory usage were the same**
##### With input UTF-8 unescaped #####
Name ips average deviation median 99th %
jiffy 16.44 K 60.82 μs ±32.33% 57.99 μs 103.99 μs
Jason 5.39 K 185.63 μs ±15.02% 176.99 μs 306.99 μs
JSX 3.89 K 257.23 μs ±12.26% 247.99 μs 373.99 μs
jsone 3.46 K 289.18 μs ±17.05% 275.99 μs 521.99 μs
Poison 2.68 K 373.19 μs ±16.43% 361.99 μs 642.99 μs
JSON 2.64 K 379.36 μs ±24.17% 345.99 μs 626.99 μs
Comparison:
jiffy 16.44 K
Jason 5.39 K - 3.05x slower +124.81 μs
JSX 3.89 K - 4.23x slower +196.41 μs
jsone 3.46 K - 4.75x slower +228.36 μs
Poison 2.68 K - 6.14x slower +312.38 μs
JSON 2.64 K - 6.24x slower +318.54 μs
Extended statistics:
Name minimum maximum sample size mode
jiffy 54.99 μs 2784.99 μs 307.87 K 57.99 μs
Jason 168.99 μs 644.99 μs 106.64 K 174.99 μs
JSX 224.99 μs 845.99 μs 77.10 K 233.99 μs
jsone 246.99 μs 1103.99 μs 68.59 K 250.99 μs
Poison 288.99 μs 937.99 μs 53.18 K 369.99 μs
JSON 288.99 μs 1032.99 μs 52.40 K 290.99 μs
Memory usage statistics:
Name Memory usage
jiffy 0.0703 KB
Jason 6.89 KB - 98.00x memory usage +6.82 KB
JSX 42.38 KB - 602.67x memory usage +42.30 KB
jsone 33.70 KB - 479.22x memory usage +33.63 KB
Poison 112.05 KB - 1593.67x memory usage +111.98 KB
JSON 138.88 KB - 1975.11x memory usage +138.80 KB
**All measurements for memory usage were the same**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment