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 728.6 μs 15.8M 33.2 MB 5.3K
Foundation 1.40 ms 32.5M 336.9 MB 7.4K
Freddy 1.58 ms 32.4M 31.7 MB 5.3K
SwiftyJSON 5.21 ms 122.4M 115.2 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
JBird732.5653.4728.6759.3775.2825.3896.21,350
Foundation1,402.11,272.41,399.81,433.61,454.11,490.91,562.4709
Freddy1,575.51,426.11,577.01,606.71,625.11,649.71,697.5631
SwiftyJSON5,192.94,929.05,206.05,279.75,337.15,550.15,556.8192
Time (total CPU) (μs)
Meanp0p50p90p95p99p100Samples
JBird736.7657.2732.7763.4779.8828.9901.31,350
Foundation1,406.51,276.41,403.91,438.71,457.21,502.21,566.3709
Freddy1,579.91,430.91,581.11,611.81,628.21,654.81,700.9631
SwiftyJSON5,199.04,924.45,214.25,283.85,341.25,561.75,561.7192
Throughput (# / s) (per second)
Meanp0p50p90p95p99p100Samples
JBird1,3661,1161,3731,3971,4081,5011,5301,350
Foundation714640715727733763786709
Freddy635589634647652688701631
SwiftyJSON193180192197199203203192
Instructions (count)
Meanp0p50p90p95p99p100Samples
JBird15,772,06415,759,44715,769,59915,794,17515,826,94315,859,71116,607,8911,350
Foundation32,486,61832,402,92232,473,08732,555,00732,587,77532,931,83933,535,074709
Freddy32,403,20332,375,52232,391,16732,456,70332,473,08732,751,61533,462,432631
SwiftyJSON122,434,219122,214,377122,355,711122,421,247122,748,927128,909,311129,116,933192
Memory (resident peak) (bytes)
Meanp0p50p90p95p99p100Samples
JBird33,135,99731,195,13633,177,59933,177,60033,177,60033,177,60033,177,6001,350
Foundation337,817,40930,736,384336,855,039584,581,119616,562,687645,103,616645,103,616709
Freddy31,723,72131,227,90431,719,42331,768,57631,768,57631,768,57631,768,576631
SwiftyJSON115,767,33931,621,120115,212,287181,796,863192,282,623199,213,056199,213,056192
Malloc (total) (count)
Meanp0p50p90p95p99p100Samples
JBird5,2785,2765,2765,2765,2765,2765,2761,350
Foundation7,4387,4387,4397,4397,4397,4397,439709
Freddy5,2785,2795,2795,2795,2795,2795,279631
SwiftyJSON10,61210,61010,61210,61210,61210,61210,612192
Malloc (bytes total) (bytes)
Meanp0p50p90p95p99p100Samples
JBird2,747,3922,747,5722,747,5722,747,5722,747,5722,747,5722,747,5721,350
Foundation743,180743,064743,423743,423743,423743,423747,160709
Freddy1,251,8401,251,7691,251,7691,251,7691,251,7691,251,7691,251,769631
SwiftyJSON2,288,6402,289,1762,289,3362,289,3362,289,3362,289,3362,289,336192
Free (total) (count)
Meanp0p50p90p95p99p100Samples
JBird5,2785,2765,2765,2765,2765,2765,2761,350
Foundation8888888709
Freddy5,2785,2795,2795,2795,2795,2795,279631
SwiftyJSON3,1813,1803,1803,1803,1803,1803,180192
Malloc / free Δ (count)
Meanp0p50p90p95p99p100Samples
JBird00000001,350
Foundation7,4307,4307,4317,4317,4317,4317,431709
Freddy0000000631
SwiftyJSON7,4307,4307,4317,4317,4317,4317,432192
Malloc / free Δ (bytes) (bytes)
Meanp0p50p90p95p99p100Samples
JBird00000001,350
Foundation702,732702,512702,975702,975702,975702,975706,608709
Freddy0000000631
SwiftyJSON702,720702,512702,672702,672702,672702,672702,672192

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