Benchmarks › 64 KB

64 KB

Overview

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

Library Time Instructions Peak memory Allocations
JBird 93.5 μs 2.0M 30.5 MB 668
Foundation 182.4 μs 4.1M 332.4 MB 986
Freddy 199.7 μs 4.0M 30.5 MB 674
SwiftyJSON 654.3 μs 15.3M 116.9 MB 1.4K

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
JBird93.582.793.597.1100.3109.1149.39,938
Foundation182.1161.4182.4190.3194.2204.4242.05,282
Freddy200.7178.1199.7213.2221.2234.6267.54,802
SwiftyJSON654.8589.8654.3671.2679.9706.0764.91,509
Time (total CPU) (μs)
Meanp0p50p90p95p99p100Samples
JBird97.386.097.2101.2104.8113.2143.59,938
Foundation185.8165.3186.1194.6198.5209.0240.35,282
Freddy204.7181.5203.4217.5225.3239.1271.74,802
SwiftyJSON658.8593.3658.4675.8684.0712.7768.21,509
Throughput (# / s) (per second)
Meanp0p50p90p95p99p100Samples
JBird10,7136,69810,70311,26311,50311,89512,0919,938
Foundation5,5024,1335,4875,7995,8596,0156,1955,282
Freddy4,9943,7395,0115,2395,3195,5515,6154,802
SwiftyJSON1,5281,3071,5291,5621,5751,6571,6961,509
Instructions (count)
Meanp0p50p90p95p99p100Samples
JBird1,980,9041,978,5141,980,4151,982,4631,993,7272,010,1112,118,9839,938
Foundation4,129,4854,092,0994,126,7194,147,1994,157,4394,218,8794,333,5125,282
Freddy4,047,0564,043,2774,044,7994,057,0874,057,0874,095,9994,254,1084,802
SwiftyJSON15,303,56015,231,66115,286,27115,319,03915,335,42316,121,85516,188,0761,509
Memory (resident peak) (bytes)
Meanp0p50p90p95p99p100Samples
JBird30,487,98830,048,25630,490,62330,523,39230,523,39230,523,39230,523,3929,938
Foundation334,531,04929,949,952332,398,591577,765,375608,698,367638,631,936638,631,9365,282
Freddy30,512,50829,999,10430,523,39230,523,39230,523,39230,523,39230,523,3924,802
SwiftyJSON117,534,67430,179,328116,916,223187,957,247196,870,143203,292,671205,225,9841,509
Malloc (total) (count)
Meanp0p50p90p95p99p100Samples
JBird6686686686686686686689,938
Foundation9869869869869869869875,282
Freddy6746746746746746746744,802
SwiftyJSON1,3841,3841,3841,3841,3841,3841,3861,509
Malloc (bytes total) (bytes)
Meanp0p50p90p95p99p100Samples
JBird343,680343,588343,588343,588343,588343,588343,5889,938
Foundation105,648105,624105,663105,663105,663105,663109,7205,282
Freddy157,376157,345157,345157,345157,345157,345157,3454,802
SwiftyJSON298,128298,024298,239298,239298,239298,239302,1201,509
Free (total) (count)
Meanp0p50p90p95p99p100Samples
JBird6686686686686686686689,938
Foundation55555555,282
Freddy6746746746746746746744,802
SwiftyJSON4034034034034034034031,509
Malloc / free Δ (count)
Meanp0p50p90p95p99p100Samples
JBird00000009,938
Foundation9819819819819819819825,282
Freddy00000004,802
SwiftyJSON9819819819819819819831,509
Malloc / free Δ (bytes) (bytes)
Meanp0p50p90p95p99p100Samples
JBird00000009,938
Foundation93,74493,74493,75993,75993,75993,75997,8405,282
Freddy00000004,802
SwiftyJSON93,74493,74493,75993,75993,75993,75997,8401,509

All inputs · 64 KB, pretty-printed →