Benchmarks › Integers

Integers

Overview

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

Library Time Instructions Peak memory Allocations
JBird 97.3 μs 2.6M 31.2 MB 18
Foundation 270.8 μs 7.0M 188.9 MB 812
Freddy 95.4 μs 2.6M 30.9 MB 216
SwiftyJSON 1.95 ms 48.6M 53.0 MB 816

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
JBird97.786.797.3100.0103.2111.0152.89,878
Foundation271.0236.5270.8279.0283.4298.5340.43,638
Freddy95.983.895.498.0101.3108.6142.010,045
SwiftyJSON1,963.21,794.71,949.72,050.02,071.62,183.22,300.3508
Time (total CPU) (μs)
Meanp0p50p90p95p99p100Samples
JBird99.388.199.0101.8105.2113.1155.69,878
Foundation272.7238.0272.6280.8286.0299.5332.03,638
Freddy97.685.397.199.9103.4110.7145.610,045
SwiftyJSON1,965.51,796.81,951.72,051.12,073.62,185.22,293.2508
Throughput (# / s) (per second)
Meanp0p50p90p95p99p100Samples
JBird10,2496,54510,27910,57510,83111,38311,5399,878
Foundation3,6932,9383,6933,7953,8474,0574,2283,638
Freddy10,4457,04010,48710,69510,71911,51111,94010,045
SwiftyJSON510435513523527548557508
Instructions (count)
Meanp0p50p90p95p99p100Samples
JBird2,576,1292,575,0952,576,3832,578,4312,578,4312,588,6712,816,7769,878
Foundation7,053,2297,035,6517,049,2157,065,5997,073,7917,094,2717,369,0553,638
Freddy2,564,2182,562,1392,564,0952,564,0952,568,1912,607,1032,764,40110,045
SwiftyJSON48,694,15148,594,18148,627,71148,660,47948,726,01551,576,83151,720,167508
Memory (resident peak) (bytes)
Meanp0p50p90p95p99p100Samples
JBird31,137,30330,162,94431,162,36731,162,36831,162,36831,162,36831,162,3689,878
Foundation188,648,11230,195,712188,874,751318,242,815331,087,871343,932,927347,799,5523,638
Freddy30,918,29430,212,09630,932,99130,932,99230,932,99230,932,99230,932,99210,045
SwiftyJSON53,147,69630,277,63252,985,85571,237,63173,531,39175,202,56075,202,560508
Malloc (total) (count)
Meanp0p50p90p95p99p100Samples
JBird181818181818189,878
Foundation8128128128128128128133,638
Freddy21621621621621621621610,045
SwiftyJSON816816816816816816818508
Malloc (bytes total) (bytes)
Meanp0p50p90p95p99p100Samples
JBird661,248661,440661,440661,440661,440661,440661,4409,878
Foundation210,128210,088210,175210,175210,175210,175214,1843,638
Freddy521,600521,609521,609521,609521,609521,609521,60910,045
SwiftyJSON575,248575,016575,487575,487575,487575,487579,112508
Free (total) (count)
Meanp0p50p90p95p99p100Samples
JBird181818181818189,878
Foundation101010101010103,638
Freddy21621621621621621621610,045
SwiftyJSON14141414141414508
Malloc / free Δ (count)
Meanp0p50p90p95p99p100Samples
JBird00000009,878
Foundation8028028028028028028033,638
Freddy000000010,045
SwiftyJSON802802802802802802804508
Malloc / free Δ (bytes) (bytes)
Meanp0p50p90p95p99p100Samples
JBird00000009,878
Foundation71,28071,23271,29571,29571,29571,29575,3283,638
Freddy000000010,045
SwiftyJSON71,28071,23271,29571,29571,29571,29575,328508

← Deeply nested · All inputs · Numeric →