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.52 ms 32.5M 36.1 MB 10.5K
Foundation 2.90 ms 65.7M 331.6 MB 14.8K
Freddy 3.26 ms 66.4M 33.4 MB 10.5K
SwiftyJSON 10.27 ms 247.9M 119.7 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,519.81,361.51,519.61,550.31,562.61,589.21,661.2656
Foundation2,913.92,702.52,902.02,998.33,012.63,074.03,205.5343
Freddy3,257.33,060.33,262.53,309.63,338.23,360.83,589.3307
SwiftyJSON10,370.39,946.610,272.810,870.810,919.912,111.212,111.297
Time (total CPU) (μs)
Meanp0p50p90p95p99p100Samples
JBird1,521.91,363.11,520.61,554.41,564.71,594.41,663.0656
Foundation2,916.72,704.22,904.13,002.43,020.83,076.13,207.1343
Freddy3,260.13,063.03,264.53,315.73,346.43,362.83,592.0307
SwiftyJSON10,374.99,954.210,281.010,879.010,928.112,113.812,113.897
Throughput (# / s) (per second)
Meanp0p50p90p95p99p100Samples
JBird658602658667672706735656
Foundation343312345350353362370343
Freddy307279307311314322327307
SwiftyJSON97839710010010110197
Instructions (count)
Meanp0p50p90p95p99p100Samples
JBird32,497,38932,469,15432,489,47132,505,85532,653,31132,702,46333,808,908656
Foundation65,700,36565,592,83865,667,07165,830,91165,896,44767,239,93567,434,190343
Freddy66,451,31666,405,55566,420,73566,584,57566,617,34367,174,39967,828,225307
SwiftyJSON248,136,187247,739,132247,857,151248,250,367248,905,727261,127,584261,127,58497
Memory (resident peak) (bytes)
Meanp0p50p90p95p99p100Samples
JBird36,097,39933,816,57636,143,10336,159,48836,159,48836,159,48836,159,488656
Foundation328,084,27431,932,416331,612,159565,706,751594,542,591618,135,551625,934,336343
Freddy33,369,21832,866,30433,390,59133,390,59233,390,59233,390,59233,390,592307
SwiftyJSON119,203,90333,636,352119,734,271187,695,103195,559,423203,309,056203,309,05697
Malloc (total) (count)
Meanp0p50p90p95p99p100Samples
JBird10,54010,54210,54210,54210,54210,54210,542656
Foundation14,80414,80714,80714,80714,80714,80714,808343
Freddy10,54010,53610,53610,53610,53610,53610,536307
SwiftyJSON21,14421,14721,14921,14921,14921,14921,14997
Malloc (bytes total) (bytes)
Meanp0p50p90p95p99p100Samples
JBird5,232,6405,232,0205,232,0205,232,0205,232,0205,232,0205,232,020656
Foundation1,470,9911,471,3841,471,4871,471,4871,471,4871,471,4871,475,480343
Freddy2,518,0162,518,2972,518,2972,518,2972,518,2972,518,2972,518,297307
SwiftyJSON4,564,9924,563,4804,563,6404,563,6404,563,6404,563,6404,563,64097
Free (total) (count)
Meanp0p50p90p95p99p100Samples
JBird10,54010,54210,54210,54210,54210,54210,542656
Foundation9999999343
Freddy10,54010,53610,53610,53610,53610,53610,536307
SwiftyJSON6,3506,3496,3496,3496,3496,3496,34997
Malloc / free Δ (count)
Meanp0p50p90p95p99p100Samples
JBird0000000656
Foundation14,79614,79814,79914,79914,79914,79914,799343
Freddy0000000307
SwiftyJSON14,79614,79814,79914,79914,79914,80014,80097
Malloc / free Δ (bytes) (bytes)
Meanp0p50p90p95p99p100Samples
JBird0000000656
Foundation1,398,2841,398,0641,398,7831,398,7831,398,7831,398,7831,402,160343
Freddy0000000307
SwiftyJSON1,398,2721,398,0641,398,2241,398,2241,398,2241,398,2241,398,22497

← 1 MB · All inputs · 5 MB →