Benchmarks › 512 KB, pretty-printed

512 KB, pretty-printed

Overview

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

Library Time Instructions Peak memory Allocations
JBird 765.4 μs 16.3M 33.2 MB 5.3K
Foundation 1.43 ms 33.0M 331.4 MB 7.4K
Freddy 1.60 ms 32.9M 31.7 MB 5.3K
SwiftyJSON 5.41 ms 126.1M 112.6 MB 10.6K

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
JBird769.6689.1765.4796.2808.4824.8925.81,286
Foundation1,433.71,302.71,434.61,467.41,489.91,529.91,629.3693
Freddy1,604.71,442.61,595.41,664.01,693.71,722.41,747.3620
SwiftyJSON5,390.24,995.55,406.75,541.95,607.45,685.25,697.4185
Time (total CPU) (μs)
Meanp0p50p90p95p99p100Samples
JBird773.8692.5770.0799.7813.1829.4930.21,286
Foundation1,438.21,306.41,438.71,472.51,494.01,534.01,629.8693
Freddy1,609.31,446.61,601.51,670.11,697.81,731.61,779.2620
SwiftyJSON5,397.25,000.85,414.95,550.15,611.55,701.65,702.4185
Throughput (# / s) (per second)
Meanp0p50p90p95p99p100Samples
JBird1,3001,0801,3061,3271,3321,4101,4511,286
Foundation698614697716721746768693
Freddy624572627636640671693620
SwiftyJSON186176185193194199200185
Instructions (count)
Meanp0p50p90p95p99p100Samples
JBird16,328,20116,314,33416,326,65516,351,23116,400,38316,433,15117,164,9851,286
Foundation32,999,64632,920,04932,980,99133,062,91133,079,29533,849,34333,883,831693
Freddy32,943,66632,919,11732,931,83933,013,75933,013,75933,193,98333,661,851620
SwiftyJSON126,111,633125,918,648126,091,263126,156,799126,287,871128,516,095130,938,180185
Memory (resident peak) (bytes)
Meanp0p50p90p95p99p100Samples
JBird33,132,81831,178,75233,161,21533,177,60033,177,60033,177,60033,177,6001,286
Foundation330,914,36230,703,616331,350,015575,668,223604,504,063625,999,871633,618,432693
Freddy31,666,73131,227,90431,686,65531,686,65531,686,65531,735,80831,735,808620
SwiftyJSON112,780,41531,621,120112,590,847177,602,559185,204,735192,413,695194,117,632185
Malloc (total) (count)
Meanp0p50p90p95p99p100Samples
JBird5,2785,2765,2765,2765,2765,2765,2761,286
Foundation7,4387,4387,4397,4397,4397,4397,439693
Freddy5,2785,2795,2795,2795,2795,2795,279620
SwiftyJSON10,61210,61010,61210,61210,61210,61210,612185
Malloc (bytes total) (bytes)
Meanp0p50p90p95p99p100Samples
JBird2,747,3922,747,5722,747,5722,747,5722,747,5722,747,5722,747,5721,286
Foundation743,180743,064743,423743,423743,423743,423747,160693
Freddy1,251,8401,251,7691,251,7691,251,7691,251,7691,251,7691,251,769620
SwiftyJSON2,288,6402,289,1762,289,3362,289,3362,289,3362,289,3362,289,336185
Free (total) (count)
Meanp0p50p90p95p99p100Samples
JBird5,2785,2765,2765,2765,2765,2765,2761,286
Foundation8888888693
Freddy5,2785,2795,2795,2795,2795,2795,279620
SwiftyJSON3,1813,1803,1803,1803,1803,1803,180185
Malloc / free Δ (count)
Meanp0p50p90p95p99p100Samples
JBird00000001,286
Foundation7,4307,4307,4317,4317,4317,4317,431693
Freddy0000000620
SwiftyJSON7,4307,4307,4317,4317,4317,4317,432185
Malloc / free Δ (bytes) (bytes)
Meanp0p50p90p95p99p100Samples
JBird00000001,286
Foundation702,732702,512702,975702,975702,975702,975706,608693
Freddy0000000620
SwiftyJSON702,720702,512702,672702,672702,672702,672702,672185

← 512 KB · All inputs · 1 MB →