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 381.4 μs 8.1M 32.1 MB 2.6K
Foundation 720.4 μs 16.5M 335.3 MB 3.8K
Freddy 810.0 μs 16.6M 31.4 MB 2.6K
SwiftyJSON 2.73 ms 62.5M 112.4 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
JBird381.1345.1381.4391.4397.1410.4499.82,597
Foundation721.1646.9720.4738.3749.6778.2825.21,378
Freddy811.6725.6810.0826.9835.1850.4871.01,225
SwiftyJSON2,720.62,444.02,725.92,775.02,799.63,018.83,080.5367
Time (total CPU) (μs)
Meanp0p50p90p95p99p100Samples
JBird382.9346.7383.0393.0399.4413.2487.22,597
Foundation723.0648.4722.4740.9751.1778.2828.01,378
Freddy813.6727.2812.0828.9836.6854.5872.51,225
SwiftyJSON2,723.22,445.72,727.92,779.12,807.83,020.83,082.2367
Throughput (# / s) (per second)
Meanp0p50p90p95p99p100Samples
JBird2,6262,0012,6232,6992,7192,8592,8982,597
Foundation1,3871,2121,3891,4181,4301,4801,5461,378
Freddy1,2321,1481,2351,2451,2531,3021,3781,225
SwiftyJSON368325367377379393409367
Instructions (count)
Meanp0p50p90p95p99p100Samples
JBird8,126,2798,118,4828,122,3678,138,7518,175,6158,191,9998,562,5902,597
Foundation16,498,97916,441,36216,490,49516,531,45516,556,03116,859,13517,256,0501,378
Freddy16,619,41816,605,28616,613,37516,662,52716,662,52716,809,98316,842,5651,225
SwiftyJSON62,548,44262,389,06862,455,80762,521,34362,685,18365,863,67965,869,515367
Memory (resident peak) (bytes)
Meanp0p50p90p95p99p100Samples
JBird32,361,71530,867,45632,096,25532,833,53632,833,53632,833,53632,833,5362,597
Foundation331,742,08530,572,544335,282,175575,143,935605,028,351627,572,735635,453,4401,378
Freddy31,389,33030,883,84031,408,12731,408,12831,408,12831,408,12831,408,1281,225
SwiftyJSON111,987,49731,096,832112,394,239176,685,055185,335,807191,102,975193,265,664367
Malloc (total) (count)
Meanp0p50p90p95p99p100Samples
JBird2,6432,6422,6422,6422,6422,6422,6422,597
Foundation3,7533,7533,7533,7533,7533,7533,7541,378
Freddy2,6512,6502,6502,6502,6502,6502,6501,225
SwiftyJSON5,3425,3415,3435,3435,3435,3435,343367
Malloc (bytes total) (bytes)
Meanp0p50p90p95p99p100Samples
JBird1,374,7201,374,2601,374,2601,374,2601,374,2601,374,2601,374,2602,597
Foundation379,023378,904379,135379,135379,135379,135383,0001,378
Freddy626,944626,745626,745626,745626,745626,745626,7451,225
SwiftyJSON1,152,5231,152,0241,153,0231,153,0231,153,0231,153,0231,156,120367
Free (total) (count)
Meanp0p50p90p95p99p100Samples
JBird2,6432,6422,6422,6422,6422,6422,6422,597
Foundation77777771,378
Freddy2,6512,6502,6502,6502,6502,6502,6501,225
SwiftyJSON1,5951,5951,5951,5951,5951,5951,595367
Malloc / free Δ (count)
Meanp0p50p90p95p99p100Samples
JBird00000002,597
Foundation3,7473,7463,7473,7473,7473,7473,7471,378
Freddy00000001,225
SwiftyJSON3,7473,7463,7473,7473,7473,7473,748367
Malloc / free Δ (bytes) (bytes)
Meanp0p50p90p95p99p100Samples
JBird00000002,597
Foundation354,703354,736354,815354,815354,815354,815358,8321,378
Freddy00000001,225
SwiftyJSON354,700354,736354,815354,815354,815354,815358,832367

← 256 KB · All inputs · 512 KB →