Benchmarks › Array

Array

Overview

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

Library Time Instructions Peak memory Allocations
JBird 114.3 μs 3.3M 31.7 MB 28
Foundation 323.6 μs 8.6M 153.9 MB 13
Freddy 97.3 μs 2.6M 30.9 MB 14
SwiftyJSON 3.22 ms 77.1M 44.1 MB 17

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
JBird115.8101.8114.3120.1122.9131.2180.88,377
Foundation324.9289.1323.6333.3338.9355.6389.53,041
Freddy95.180.097.3100.1102.5110.1138.810,140
SwiftyJSON3,196.72,930.73,217.43,274.83,295.23,473.43,516.3312
Time (total CPU) (μs)
Meanp0p50p90p95p99p100Samples
JBird117.5103.2116.0121.9124.5133.2183.58,377
Foundation326.7290.7325.1335.9341.0356.6391.13,041
Freddy96.781.599.3101.8104.2112.1142.310,140
SwiftyJSON3,199.32,925.33,221.53,276.83,299.33,479.63,517.8312
Throughput (# / s) (per second)
Meanp0p50p90p95p99p100Samples
JBird8,6445,5308,7598,7999,0479,5759,8248,377
Foundation3,0802,5673,0933,1313,1593,3513,4593,041
Freddy10,5577,20510,27911,19111,19911,84712,49410,140
SwiftyJSON313284311327329337341312
Instructions (count)
Meanp0p50p90p95p99p100Samples
JBird3,329,9143,328,7083,330,0473,332,0953,332,0953,346,4313,764,8448,377
Foundation8,633,3758,605,2878,634,3678,642,5598,658,9438,675,3278,970,0873,041
Freddy2,645,5262,645,6132,646,0152,646,0152,646,0152,662,3992,833,31710,140
SwiftyJSON77,241,73877,077,57977,135,87177,201,40777,266,94381,985,53582,220,492312
Memory (resident peak) (bytes)
Meanp0p50p90p95p99p100Samples
JBird31,654,82630,146,56031,686,65531,686,65631,686,65631,686,65631,686,6568,377
Foundation154,255,02930,244,864153,878,527254,017,535266,076,159275,513,343278,560,7683,041
Freddy30,879,72630,130,17630,900,22330,900,22430,900,22430,900,22430,900,22410,140
SwiftyJSON44,063,06130,310,40044,138,49554,165,50355,476,22356,459,26356,770,560312
Malloc (total) (count)
Meanp0p50p90p95p99p100Samples
JBird282828282828288,377
Foundation131313131313143,041
Freddy1414141414141410,140
SwiftyJSON17171717171719312
Malloc (bytes total) (bytes)
Meanp0p50p90p95p99p100Samples
JBird1,157,6321,158,0161,158,0161,158,0161,158,0161,158,0161,158,0168,377
Foundation350,096349,960350,207350,207350,207350,207354,0563,041
Freddy507,008507,112507,112507,112507,112507,112507,11210,140
SwiftyJSON989,967990,088990,207990,207990,207990,207994,184312
Free (total) (count)
Meanp0p50p90p95p99p100Samples
JBird282828282828288,377
Foundation111111111111113,041
Freddy1414141414141410,140
SwiftyJSON15151515151515312
Malloc / free Δ (count)
Meanp0p50p90p95p99p100Samples
JBird00000008,377
Foundation22222233,041
Freddy000000010,140
SwiftyJSON2222224312
Malloc / free Δ (bytes) (bytes)
Meanp0p50p90p95p99p100Samples
JBird00000008,377
Foundation80,04880,03280,06380,06380,06380,06384,1283,041
Freddy000000010,140
SwiftyJSON80,04680,03280,06380,06380,06380,06384,128312

← Canada · All inputs · Deeply nested →