Benchmarks › 1 MB, pretty-printed

1 MB, pretty-printed

Overview

Median values for each library. For every metric, lower values are better.

Library Time Instructions Peak memory Allocations
JBird 1.54 ms 32.6M 35.8 MB 10.5K
Foundation 2.89 ms 65.9M 325.3 MB 14.8K
Freddy 3.30 ms 65.9M 33.0 MB 10.5K
SwiftyJSON 10.50 ms 246.5M 117.4 MB 21.1K

All Metrics

The mean of each metric, and its percentiles from p0 (the lowest sample) to p100 (the highest sample). For every metric except throughput, lower values are better.

Time (wall clock) (μs)
Meanp0p50p90p95p99p100Samples
JBird1,539.51,390.01,537.01,562.61,579.01,601.51,672.7646
Foundation2,915.82,623.52,885.62,936.82,951.23,029.013,729.8342
Freddy3,330.92,967.63,303.43,508.23,616.83,688.43,699.5299
SwiftyJSON10,487.610,036.110,502.110,682.410,739.710,950.110,950.196
Time (total CPU) (μs)
Meanp0p50p90p95p99p100Samples
JBird1,544.01,393.91,542.11,566.71,584.11,607.71,676.4646
Foundation2,889.92,627.82,889.72,940.92,955.33,033.13,102.2342
Freddy3,337.02,986.83,307.53,512.33,622.93,692.53,709.3299
SwiftyJSON10,496.310,046.310,518.510,690.610,747.910,955.510,955.596
Throughput (# / s) (per second)
Meanp0p50p90p95p99p100Samples
JBird650598651657662670719646
Foundation34673347351354370381342
Freddy301270303310313326337299
SwiftyJSON959195979810010096
Instructions (count)
Meanp0p50p90p95p99p100Samples
JBird32,649,24132,623,83932,636,92732,669,69532,800,76732,833,53533,924,105646
Foundation65,888,06465,791,78465,863,67966,027,51966,060,28766,748,41567,454,559342
Freddy65,855,51565,820,55065,863,67965,994,75165,994,75166,322,43166,396,850299
SwiftyJSON246,542,336246,309,419246,546,431246,677,503246,939,647248,918,688248,918,68896
Memory (resident peak) (bytes)
Meanp0p50p90p95p99p100Samples
JBird35,754,74533,505,28035,782,65535,799,04035,799,04035,799,04035,799,040646
Foundation326,800,94132,702,464325,320,703567,279,615597,688,319619,380,736619,380,736342
Freddy33,085,89932,538,62433,046,52733,193,98433,193,98433,193,98433,193,984299
SwiftyJSON117,750,18733,390,592117,440,511185,335,807193,200,127199,163,904199,163,90496
Malloc (total) (count)
Meanp0p50p90p95p99p100Samples
JBird10,54010,54210,54210,54210,54210,54210,542646
Foundation14,80414,80714,80714,80714,80714,80714,808342
Freddy10,54010,53610,53610,53610,53610,53610,536299
SwiftyJSON21,14421,14721,14921,14921,14921,14921,14996
Malloc (bytes total) (bytes)
Meanp0p50p90p95p99p100Samples
JBird5,232,6405,232,0205,232,0205,232,0205,232,0205,232,0205,232,020646
Foundation1,470,9911,471,3841,471,4871,471,4871,471,4871,471,4871,475,480342
Freddy2,518,0162,518,2972,518,2972,518,2972,518,2972,518,2972,518,297299
SwiftyJSON4,564,9924,563,4804,563,6404,563,6404,563,6404,563,6404,563,64096
Free (total) (count)
Meanp0p50p90p95p99p100Samples
JBird10,54010,54210,54210,54210,54210,54210,542646
Foundation9999999342
Freddy10,54010,53610,53610,53610,53610,53610,536299
SwiftyJSON6,3506,3496,3496,3496,3496,3496,34996
Malloc / free Δ (count)
Meanp0p50p90p95p99p100Samples
JBird0000000646
Foundation14,79614,79814,79914,79914,79914,79914,799342
Freddy0000000299
SwiftyJSON14,79614,79814,79914,79914,79914,80014,80096
Malloc / free Δ (bytes) (bytes)
Meanp0p50p90p95p99p100Samples
JBird0000000646
Foundation1,398,2841,398,0641,398,7831,398,7831,398,7831,398,7831,402,160342
Freddy0000000299
SwiftyJSON1,398,2721,398,0641,398,2241,398,2241,398,2241,398,2241,398,22496

← 1 MB · All inputs · 5 MB →