Benchmarks › 256 KB

256 KB

Overview

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

Library Time Instructions Peak memory Allocations
JBird 367.1 μs 7.8M 32.0 MB 2.6K
Foundation 709.1 μs 16.2M 334.2 MB 3.8K
Freddy 802.3 μs 16.3M 31.4 MB 2.6K
SwiftyJSON 2.64 ms 62.7M 114.2 MB 5.3K

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
JBird368.1331.3367.1377.3383.5398.1447.42,688
Foundation708.3626.6709.1728.1733.7752.6807.81,403
Freddy803.3718.7802.3817.2824.8844.3909.21,238
SwiftyJSON2,636.32,433.12,635.82,689.02,711.62,857.02,888.1379
Time (total CPU) (μs)
Meanp0p50p90p95p99p100Samples
JBird369.8332.7368.9379.4385.8399.6451.02,688
Foundation710.2628.1711.2730.6736.3754.7809.41,403
Freddy805.2720.1804.4819.7827.4845.8903.01,238
SwiftyJSON2,638.92,434.82,639.92,693.12,715.62,859.02,890.0379
Throughput (# / s) (per second)
Meanp0p50p90p95p99p100Samples
JBird2,7192,2352,7252,7692,7892,9773,0182,688
Foundation1,4131,2381,4111,4471,4601,5301,5961,403
Freddy1,2451,1001,2461,2591,2721,3351,3911,238
SwiftyJSON379346379387390399411379
Instructions (count)
Meanp0p50p90p95p99p100Samples
JBird7,848,9897,841,0657,847,9357,860,2237,897,0877,909,3758,285,0272,688
Foundation16,243,98016,185,43216,236,54316,277,50316,302,07916,670,71917,001,0351,403
Freddy16,350,57716,335,12116,343,03916,392,19116,392,19116,547,83917,117,4811,238
SwiftyJSON62,711,85762,545,88862,652,41562,685,18362,849,02366,027,51966,044,841379
Memory (resident peak) (bytes)
Meanp0p50p90p95p99p100Samples
JBird32,030,21430,818,30432,047,10332,063,48832,063,48832,063,48832,063,4882,688
Foundation337,218,42530,605,312334,233,599582,483,967619,184,127641,728,511648,790,0161,403
Freddy31,353,17930,818,30431,358,97631,358,97631,358,97631,358,97631,358,9761,238
SwiftyJSON114,664,57031,129,600114,229,247181,141,503189,399,039195,952,639198,066,176379
Malloc (total) (count)
Meanp0p50p90p95p99p100Samples
JBird2,6432,6422,6422,6422,6422,6422,6422,688
Foundation3,7533,7533,7533,7533,7533,7533,7541,403
Freddy2,6512,6502,6502,6502,6502,6502,6501,238
SwiftyJSON5,3425,3415,3435,3435,3435,3435,343379
Malloc (bytes total) (bytes)
Meanp0p50p90p95p99p100Samples
JBird1,374,7201,374,2601,374,2601,374,2601,374,2601,374,2601,374,2602,688
Foundation379,023378,904379,135379,135379,135379,135383,0001,403
Freddy626,944626,745626,745626,745626,745626,745626,7451,238
SwiftyJSON1,152,5231,152,0241,153,0231,153,0231,153,0231,153,0231,156,120379
Free (total) (count)
Meanp0p50p90p95p99p100Samples
JBird2,6432,6422,6422,6422,6422,6422,6422,688
Foundation77777771,403
Freddy2,6512,6502,6502,6502,6502,6502,6501,238
SwiftyJSON1,5951,5951,5951,5951,5951,5951,595379
Malloc / free Δ (count)
Meanp0p50p90p95p99p100Samples
JBird00000002,688
Foundation3,7473,7463,7473,7473,7473,7473,7471,403
Freddy00000001,238
SwiftyJSON3,7473,7463,7473,7473,7473,7473,748379
Malloc / free Δ (bytes) (bytes)
Meanp0p50p90p95p99p100Samples
JBird00000002,688
Foundation354,703354,736354,815354,815354,815354,815358,8321,403
Freddy00000001,238
SwiftyJSON354,699354,736354,815354,815354,815354,815358,832379

← 64 KB, pretty-printed · All inputs · 256 KB, pretty-printed →