Benchmarks › Array

Array

Overview

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

Library Time Instructions Peak memory Allocations
JBird 116.8 μs 3.3M 31.4 MB 28
Foundation 319.0 μs 8.6M 154.4 MB 13
Freddy 97.0 μs 2.6M 30.6 MB 14
SwiftyJSON 2.99 ms 78.0M 45.5 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
JBird118.7100.9116.8127.7130.8137.7182.47,937
Foundation319.0281.2319.0329.7333.6346.6380.73,063
Freddy96.080.997.0102.3106.8112.3140.59,707
SwiftyJSON3,008.72,783.62,986.03,172.43,219.53,428.43,468.6332
Time (total CPU) (μs)
Meanp0p50p90p95p99p100Samples
JBird122.6104.2120.6131.6135.0142.7186.97,937
Foundation322.9284.6322.8333.8338.2350.2390.63,063
Freddy99.784.2100.5106.4110.5116.4145.69,707
SwiftyJSON3,013.92,794.42,990.13,176.43,225.63,430.43,474.0332
Throughput (# / s) (per second)
Meanp0p50p90p95p99p100Samples
JBird8,4495,4838,5678,8798,8879,2719,9097,937
Foundation3,1382,6273,1353,2413,2533,4073,5563,063
Freddy10,4467,12010,31911,07911,25511,75112,3659,707
SwiftyJSON333288335345346354359332
Instructions (count)
Meanp0p50p90p95p99p100Samples
JBird3,321,8973,320,3123,321,8553,323,9033,323,9033,350,5273,774,1847,937
Foundation8,644,2738,613,7508,642,5598,650,7518,675,3278,691,7118,992,2873,063
Freddy2,637,3572,636,2442,637,8232,637,8232,637,8232,652,1592,834,0919,707
SwiftyJSON78,037,38777,915,91077,987,83978,053,37578,118,91182,771,96783,054,172332
Memory (resident peak) (bytes)
Meanp0p50p90p95p99p100Samples
JBird31,339,82529,851,64831,358,97631,358,97631,358,97631,358,97631,358,9767,937
Foundation154,887,38829,966,336154,402,815254,935,039267,911,167277,348,351280,559,6163,063
Freddy30,629,17629,851,64830,638,08030,638,08030,638,08030,638,08030,638,0809,707
SwiftyJSON45,400,87830,031,87245,514,75156,393,72758,032,12759,015,16759,326,464332
Malloc (total) (count)
Meanp0p50p90p95p99p100Samples
JBird282828282828287,937
Foundation131313131313143,063
Freddy141414141414149,707
SwiftyJSON17171717171719332
Malloc (bytes total) (bytes)
Meanp0p50p90p95p99p100Samples
JBird1,157,6321,158,0161,158,0161,158,0161,158,0161,158,0161,158,0167,937
Foundation350,096349,960350,207350,207350,207350,207354,0563,063
Freddy507,008507,112507,112507,112507,112507,112507,1129,707
SwiftyJSON989,966990,088990,207990,207990,207990,207994,184332
Free (total) (count)
Meanp0p50p90p95p99p100Samples
JBird282828282828287,937
Foundation111111111111113,063
Freddy141414141414149,707
SwiftyJSON15151515151515332
Malloc / free Δ (count)
Meanp0p50p90p95p99p100Samples
JBird00000007,937
Foundation22222233,063
Freddy00000009,707
SwiftyJSON2222224332
Malloc / free Δ (bytes) (bytes)
Meanp0p50p90p95p99p100Samples
JBird00000007,937
Foundation80,04880,03280,06380,06380,06380,06384,1283,063
Freddy00000009,707
SwiftyJSON80,04580,03280,06380,06380,06380,06384,128332

← Canada · All inputs · Deeply nested →