Benchmarks › 512 KB

512 KB

Overview

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

Library Time Instructions Peak memory Allocations
JBird 723.5 μs 15.7M 33.5 MB 5.3K
Foundation 1.39 ms 32.4M 341.3 MB 7.4K
Freddy 1.61 ms 32.7M 32.0 MB 5.3K
SwiftyJSON 5.28 ms 122.4M 114.7 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
JBird723.7653.2723.5741.9749.1768.5824.61,374
Foundation1,395.51,293.11,394.71,421.31,436.71,464.31,473.8714
Freddy1,613.01,467.71,611.81,638.41,653.81,691.61,727.4618
SwiftyJSON5,300.25,061.85,279.75,382.15,656.65,799.95,866.8189
Time (total CPU) (μs)
Meanp0p50p90p95p99p100Samples
JBird725.6654.6725.5743.4750.6770.0826.51,374
Foundation1,397.61,295.91,396.71,424.41,438.71,466.41,481.9714
Freddy1,615.21,469.31,613.81,640.41,657.91,693.71,729.1618
SwiftyJSON5,303.75,063.85,283.85,386.25,652.55,804.05,868.5189
Throughput (# / s) (per second)
Meanp0p50p90p95p99p100Samples
JBird1,3821,2131,3821,4061,4211,5131,5311,374
Foundation717679717728732758773714
Freddy620579621627633659681618
SwiftyJSON189170189192193197198189
Instructions (count)
Meanp0p50p90p95p99p100Samples
JBird15,691,34115,678,47915,687,67915,704,06315,753,21515,794,17516,555,5641,374
Foundation32,389,67632,307,22332,374,78332,456,70332,489,47133,079,29533,325,203714
Freddy32,686,47832,664,06432,669,69532,767,99932,767,99933,062,91133,553,105618
SwiftyJSON122,566,363122,285,479122,421,247122,552,319122,814,463129,171,455129,189,542189
Memory (resident peak) (bytes)
Meanp0p50p90p95p99p100Samples
JBird33,468,70831,506,43233,488,89533,505,28033,505,28033,505,28033,505,2801,374
Foundation340,240,91830,982,144341,311,487592,969,727623,378,431645,922,815654,311,424714
Freddy31,992,19931,506,43232,014,33532,014,33632,014,33632,014,33632,014,336618
SwiftyJSON114,760,08131,899,648114,687,999182,059,007188,219,391196,853,760196,853,760189
Malloc (total) (count)
Meanp0p50p90p95p99p100Samples
JBird5,2785,2765,2765,2765,2765,2765,2761,374
Foundation7,4387,4387,4397,4397,4397,4397,439714
Freddy5,2785,2795,2795,2795,2795,2795,279618
SwiftyJSON10,61210,61010,61210,61210,61210,61210,612189
Malloc (bytes total) (bytes)
Meanp0p50p90p95p99p100Samples
JBird2,747,3922,747,5722,747,5722,747,5722,747,5722,747,5722,747,5721,374
Foundation743,179743,064743,423743,423743,423743,423747,160714
Freddy1,251,8401,251,7691,251,7691,251,7691,251,7691,251,7691,251,769618
SwiftyJSON2,288,6402,289,1762,289,3362,289,3362,289,3362,289,3362,289,336189
Free (total) (count)
Meanp0p50p90p95p99p100Samples
JBird5,2785,2765,2765,2765,2765,2765,2761,374
Foundation8888888714
Freddy5,2785,2795,2795,2795,2795,2795,279618
SwiftyJSON3,1813,1803,1803,1803,1803,1803,180189
Malloc / free Δ (count)
Meanp0p50p90p95p99p100Samples
JBird00000001,374
Foundation7,4307,4307,4317,4317,4317,4317,431714
Freddy0000000618
SwiftyJSON7,4307,4307,4317,4317,4317,4317,432189
Malloc / free Δ (bytes) (bytes)
Meanp0p50p90p95p99p100Samples
JBird00000001,374
Foundation702,731702,512702,975702,975702,975702,975706,608714
Freddy0000000618
SwiftyJSON702,720702,512702,672702,672702,672702,672702,672189

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