Benchmarks › 256 KB, pretty-printed

256 KB, pretty-printed

Overview

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

Library Time Instructions Peak memory Allocations
JBird 388.9 μs 8.2M 31.7 MB 2.6K
Foundation 726.5 μs 16.5M 326.4 MB 3.8K
Freddy 804.4 μs 16.5M 31.1 MB 2.6K
SwiftyJSON 2.74 ms 63.9M 110.3 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
JBird390.1344.4388.9402.4408.8425.7460.42,514
Foundation728.2656.6726.5748.5760.3777.7803.61,358
Freddy805.1726.9804.4822.3832.5856.1925.31,230
SwiftyJSON2,747.52,500.62,742.32,809.92,834.42,924.53,326.7363
Time (total CPU) (μs)
Meanp0p50p90p95p99p100Samples
JBird394.1347.7392.4407.3412.7429.6465.02,514
Foundation732.3660.0730.6753.7765.4782.3807.41,358
Freddy809.3730.2808.4827.4837.1858.1929.01,230
SwiftyJSON2,752.82,504.82,748.42,814.02,838.52,928.63,340.2363
Throughput (# / s) (per second)
Meanp0p50p90p95p99p100Samples
JBird2,5662,1722,5732,6352,6492,6992,9032,514
Foundation1,3741,2441,3771,4011,4111,4811,5231,358
Freddy1,2431,0811,2431,2621,2761,3501,3761,230
SwiftyJSON364301365371375387400363
Instructions (count)
Meanp0p50p90p95p99p100Samples
JBird8,170,4328,160,1258,167,4238,179,7118,212,4798,237,0558,612,0072,514
Foundation16,548,28916,481,06416,539,64716,580,60716,605,18316,973,82317,055,5051,358
Freddy16,482,17116,468,52616,474,11116,515,07116,515,07116,662,52717,242,6711,230
SwiftyJSON63,952,16863,808,82263,897,59963,963,13564,126,97567,239,93567,290,574363
Memory (resident peak) (bytes)
Meanp0p50p90p95p99p100Samples
JBird31,720,48630,556,16031,735,80731,752,19231,752,19231,752,19231,752,1922,514
Foundation327,012,88330,277,632326,369,279564,133,887594,542,591617,611,263624,803,8401,358
Freddy31,054,95330,539,77631,064,06431,064,06431,064,06431,064,06431,064,0641,230
SwiftyJSON110,800,27530,834,688110,297,087174,850,047182,845,439189,005,823191,053,824363
Malloc (total) (count)
Meanp0p50p90p95p99p100Samples
JBird2,6432,6422,6422,6422,6422,6422,6422,514
Foundation3,7533,7533,7533,7533,7533,7533,7541,358
Freddy2,6512,6502,6502,6502,6502,6502,6501,230
SwiftyJSON5,3425,3415,3435,3435,3435,3435,343363
Malloc (bytes total) (bytes)
Meanp0p50p90p95p99p100Samples
JBird1,374,7201,374,2601,374,2601,374,2601,374,2601,374,2601,374,2602,514
Foundation379,023378,904379,135379,135379,135379,135383,0001,358
Freddy626,944626,745626,745626,745626,745626,745626,7451,230
SwiftyJSON1,152,5231,152,0241,153,0231,153,0231,153,0231,153,0231,156,120363
Free (total) (count)
Meanp0p50p90p95p99p100Samples
JBird2,6432,6422,6422,6422,6422,6422,6422,514
Foundation77777771,358
Freddy2,6512,6502,6502,6502,6502,6502,6501,230
SwiftyJSON1,5951,5951,5951,5951,5951,5951,595363
Malloc / free Δ (count)
Meanp0p50p90p95p99p100Samples
JBird00000002,514
Foundation3,7473,7463,7473,7473,7473,7473,7471,358
Freddy00000001,230
SwiftyJSON3,7473,7463,7473,7473,7473,7473,748363
Malloc / free Δ (bytes) (bytes)
Meanp0p50p90p95p99p100Samples
JBird00000002,514
Foundation354,703354,736354,815354,815354,815354,815358,8321,358
Freddy00000001,230
SwiftyJSON354,700354,736354,815354,815354,815354,815358,832363

← 256 KB · All inputs · 512 KB →