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 372.0 μs 7.9M 31.8 MB 2.6K
Foundation 706.0 μs 16.3M 331.6 MB 3.8K
Freddy 797.2 μs 16.2M 31.1 MB 2.6K
SwiftyJSON 2.59 ms 61.1M 113.8 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
JBird373.5329.4372.0384.5391.4412.2797.32,623
Foundation714.0636.1706.0724.5737.8761.910,703.31,385
Freddy805.9718.2797.2814.6825.3846.810,969.51,229
SwiftyJSON2,606.92,320.42,588.72,631.72,650.12,689.013,542.5382
Time (total CPU) (μs)
Meanp0p50p90p95p99p100Samples
JBird377.4332.8376.1388.9396.3418.0540.12,623
Foundation710.9639.6709.6729.1741.4766.5832.71,385
Freddy801.9721.7801.3819.7828.9851.5907.31,229
SwiftyJSON2,584.02,332.62,592.82,637.82,654.22,699.32,950.3382
Throughput (# / s) (per second)
Meanp0p50p90p95p99p100Samples
JBird2,6811,2542,6892,7552,7752,8453,0362,623
Foundation1,415931,4171,4451,4611,5311,5721,385
Freddy1,253911,2551,2761,2881,3681,3921,229
SwiftyJSON38774386398400413431382
Instructions (count)
Meanp0p50p90p95p99p100Samples
JBird7,894,3197,886,8767,892,9917,905,2797,938,0477,946,2398,325,4582,623
Foundation16,291,67916,226,28216,285,69516,326,65516,343,03916,572,41516,621,6801,385
Freddy16,209,81516,193,48716,203,77516,244,73516,244,73516,334,84716,981,2081,229
SwiftyJSON61,073,80560,996,91161,079,55161,112,31961,243,39161,374,46362,271,522382
Memory (resident peak) (bytes)
Meanp0p50p90p95p99p100Samples
JBird31,877,50830,572,54431,768,57532,489,47232,489,47232,489,47232,489,4722,623
Foundation332,842,59230,277,632331,612,159581,435,391611,844,095634,994,688634,994,6881,385
Freddy31,082,89430,556,16031,096,83131,096,83231,096,83231,096,83231,096,8321,229
SwiftyJSON114,948,87930,834,688113,836,031183,107,583191,496,191198,197,248198,197,248382
Malloc (total) (count)
Meanp0p50p90p95p99p100Samples
JBird2,6432,6422,6422,6422,6422,6422,6422,623
Foundation3,7533,7533,7533,7533,7533,7533,7541,385
Freddy2,6512,6502,6502,6502,6502,6502,6501,229
SwiftyJSON5,3425,3415,3435,3435,3435,3435,343382
Malloc (bytes total) (bytes)
Meanp0p50p90p95p99p100Samples
JBird1,374,7201,374,2601,374,2601,374,2601,374,2601,374,2601,374,2602,623
Foundation379,023378,904379,135379,135379,135379,135383,0001,385
Freddy626,944626,745626,745626,745626,745626,745626,7451,229
SwiftyJSON1,152,5231,152,0241,153,0231,153,0231,153,0231,153,0231,156,120382
Free (total) (count)
Meanp0p50p90p95p99p100Samples
JBird2,6432,6422,6422,6422,6422,6422,6422,623
Foundation77777771,385
Freddy2,6512,6502,6502,6502,6502,6502,6501,229
SwiftyJSON1,5951,5951,5951,5951,5951,5951,595382
Malloc / free Δ (count)
Meanp0p50p90p95p99p100Samples
JBird00000002,623
Foundation3,7473,7463,7473,7473,7473,7473,7471,385
Freddy00000001,229
SwiftyJSON3,7473,7463,7473,7473,7473,7473,748382
Malloc / free Δ (bytes) (bytes)
Meanp0p50p90p95p99p100Samples
JBird00000002,623
Foundation354,703354,736354,815354,815354,815354,815358,8321,385
Freddy00000001,229
SwiftyJSON354,699354,736354,815354,815354,815354,815358,832382

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