Benchmarks › 5 MB, pretty-printed

5 MB, pretty-printed

Overview

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

Library Time Instructions Peak memory Allocations
JBird 7.69 ms 163.2M 76.3 MB 52.6K
Foundation 14.42 ms 329.0M 337.1 MB 73.8K
Freddy 15.99 ms 329.3M 44.4 MB 52.6K
SwiftyJSON 52.79 ms 1.2B 135.4 MB 105.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
JBird7,732.67,267.27,692.37,991.38,146.98,220.78,684.0129
Foundation14,465.313,979.914,417.914,671.914,827.516,847.016,847.069
Freddy16,022.815,430.515,990.816,244.716,384.016,736.916,736.963
SwiftyJSON52,852.251,903.452,789.253,772.354,544.654,544.654,544.619
Time (total CPU) (μs)
Meanp0p50p90p95p99p100Samples
JBird7,742.07,275.97,700.58,003.68,179.78,228.98,688.3129
Foundation14,478.113,987.814,434.314,680.114,843.916,869.616,869.669
Freddy16,037.115,448.516,015.416,252.916,400.416,755.316,755.363
SwiftyJSON52,886.751,924.752,822.053,805.154,588.654,588.654,588.619
Throughput (# / s) (per second)
Meanp0p50p90p95p99p100Samples
JBird129115130132133137138129
Foundation6959697071727269
Freddy6260636363656563
SwiftyJSON1918191919191919
Instructions (count)
Meanp0p50p90p95p99p100Samples
JBird163,214,614163,035,503163,184,639163,184,639163,708,927165,019,647169,743,217129
Foundation328,939,431328,677,773328,990,719329,777,151329,777,151330,580,839330,580,83969
Freddy329,246,622329,118,852329,252,863329,777,151330,039,295331,064,186331,064,18663
SwiftyJSON1,234,587,8641,234,104,4021,235,222,5271,236,271,1031,236,316,9121,236,316,9121,236,316,91219
Memory (resident peak) (bytes)
Meanp0p50p90p95p99p100Samples
JBird75,958,63755,230,46476,300,28876,300,28876,300,28876,300,28876,300,288129
Foundation338,411,04546,743,552337,117,183581,959,679604,504,063634,863,616634,863,61669
Freddy44,357,73043,958,27244,367,87244,367,87244,367,87244,367,87244,367,87263
SwiftyJSON135,273,20356,770,560135,397,375204,472,319213,254,144213,254,144213,254,14419
Malloc (total) (count)
Meanp0p50p90p95p99p100Samples
JBird52,59252,59452,59452,59452,59452,59452,594129
Foundation73,76073,75373,75473,75473,75473,75473,75469
Freddy52,59252,58652,58652,58652,58652,58652,58663
SwiftyJSON105,440105,437105,439105,439105,439105,439105,43919
Malloc (bytes total) (bytes)
Meanp0p50p90p95p99p100Samples
JBird25,370,62425,368,53225,368,53225,368,53225,368,53225,368,53225,368,532129
Foundation7,231,4887,232,4087,232,5367,232,5367,232,5367,232,5367,232,53669
Freddy12,390,40012,388,96912,388,96912,388,96912,388,96912,388,96912,388,96963
SwiftyJSON22,700,03222,692,37622,692,53622,692,53622,692,53622,692,53622,692,53619
Free (total) (count)
Meanp0p50p90p95p99p100Samples
JBird52,59252,59452,59452,59452,59452,59452,594129
Foundation1111111111111169
Freddy52,59252,58652,58652,58652,58652,58652,58663
SwiftyJSON31,68831,69531,69531,69531,69531,69531,69519
Malloc / free Δ (count)
Meanp0p50p90p95p99p100Samples
JBird0000000129
Foundation73,76073,74273,74373,74373,74373,74373,74369
Freddy000000063
SwiftyJSON73,76073,74273,74473,74473,74473,74473,74419
Malloc / free Δ (bytes) (bytes)
Meanp0p50p90p95p99p100Samples
JBird0000000129
Foundation6,961,1526,962,4806,962,6086,962,6086,962,6086,962,6086,962,60869
Freddy000000063
SwiftyJSON6,961,1526,962,4806,962,6406,962,6406,962,6406,962,6406,962,64019

← 5 MB · All inputs · Twitter →