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 757.8 μs 16.2M 33.5 MB 5.3K
Foundation 1.44 ms 32.9M 332.1 MB 7.4K
Freddy 1.63 ms 33.2M 32.1 MB 5.3K
SwiftyJSON 5.49 ms 125.1M 112.1 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
JBird757.8675.7757.8776.2784.9806.4832.21,312
Foundation1,445.51,301.51,443.81,475.61,498.11,572.91,599.4689
Freddy1,630.41,495.51,630.21,658.91,676.31,691.61,723.8612
SwiftyJSON5,494.85,218.65,488.65,558.35,611.55,992.45,993.5182
Time (total CPU) (μs)
Meanp0p50p90p95p99p100Samples
JBird759.6677.2759.3778.2788.5809.5840.21,312
Foundation1,447.71,303.11,445.91,478.71,503.21,574.91,601.0689
Freddy1,632.51,497.21,633.31,660.91,679.41,693.71,725.4612
SwiftyJSON5,498.45,210.35,492.75,566.55,615.65,996.55,997.1182
Throughput (# / s) (per second)
Meanp0p50p90p95p99p100Samples
JBird1,3201,2021,3201,3491,3591,4431,4801,312
Foundation692625693706712747768689
Freddy614580614621625655669612
SwiftyJSON182167182185185189192182
Instructions (count)
Meanp0p50p90p95p99p100Samples
JBird16,247,08116,232,67116,244,73516,261,11916,334,84716,351,23117,109,5041,312
Foundation32,899,15532,814,14132,882,68732,964,60732,997,37533,587,19933,972,993689
Freddy33,229,25533,207,20433,226,75133,308,67133,308,67133,587,19933,639,401612
SwiftyJSON125,281,786124,982,996125,108,223125,239,295125,566,975131,923,967131,926,567182
Memory (resident peak) (bytes)
Meanp0p50p90p95p99p100Samples
JBird33,480,06731,506,43233,488,89533,538,04833,538,04833,538,04833,538,0481,312
Foundation329,437,40431,014,912332,136,447568,328,191597,688,319627,982,336627,982,336689
Freddy32,048,17531,539,20032,063,48832,063,48832,063,48832,063,48832,063,488612
SwiftyJSON111,778,80531,883,264112,066,559174,194,687182,976,511190,758,912190,758,912182
Malloc (total) (count)
Meanp0p50p90p95p99p100Samples
JBird5,2785,2765,2765,2765,2765,2765,2761,312
Foundation7,4387,4387,4397,4397,4397,4397,439689
Freddy5,2785,2795,2795,2795,2795,2795,279612
SwiftyJSON10,61210,61010,61210,61210,61210,61210,612182
Malloc (bytes total) (bytes)
Meanp0p50p90p95p99p100Samples
JBird2,747,3922,747,5722,747,5722,747,5722,747,5722,747,5722,747,5721,312
Foundation743,180743,064743,423743,423743,423743,423747,160689
Freddy1,251,8401,251,7691,251,7691,251,7691,251,7691,251,7691,251,769612
SwiftyJSON2,288,6402,289,1762,289,3362,289,3362,289,3362,289,3362,289,336182
Free (total) (count)
Meanp0p50p90p95p99p100Samples
JBird5,2785,2765,2765,2765,2765,2765,2761,312
Foundation8888888689
Freddy5,2785,2795,2795,2795,2795,2795,279612
SwiftyJSON3,1813,1803,1803,1803,1803,1803,180182
Malloc / free Δ (count)
Meanp0p50p90p95p99p100Samples
JBird00000001,312
Foundation7,4307,4307,4317,4317,4317,4317,431689
Freddy0000000612
SwiftyJSON7,4307,4307,4317,4317,4317,4317,432182
Malloc / free Δ (bytes) (bytes)
Meanp0p50p90p95p99p100Samples
JBird00000001,312
Foundation702,732702,512702,975702,975702,975702,975706,608689
Freddy0000000612
SwiftyJSON702,720702,512702,672702,672702,672702,672702,672182

← 512 KB · All inputs · 1 MB →