Benchmarks › Integers

Integers

Overview

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

Library Time Instructions Peak memory Allocations
JBird 99.1 μs 2.6M 30.9 MB 18
Foundation 282.1 μs 7.1M 179.2 MB 812
Freddy 95.7 μs 2.6M 30.6 MB 216
SwiftyJSON 1.94 ms 47.8M 53.1 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
JBird101.087.399.1106.8109.2118.7148.79,223
Foundation285.0238.8282.1310.0318.7335.6388.03,409
Freddy96.084.295.798.9101.6108.4144.49,685
SwiftyJSON1,945.01,780.21,942.51,983.52,001.92,089.02,144.4512
Time (total CPU) (μs)
Meanp0p50p90p95p99p100Samples
JBird104.990.6103.0110.9113.8123.4152.69,223
Foundation289.3242.3286.2315.1323.8341.5386.63,409
Freddy99.887.699.5103.0105.9113.1150.29,685
SwiftyJSON1,949.51,784.41,946.61,990.72,009.12,092.02,155.2512
Throughput (# / s) (per second)
Meanp0p50p90p95p99p100Samples
JBird9,9256,72510,09510,25510,34311,19911,4569,223
Foundation3,5222,5773,5493,7533,7974,0474,1883,409
Freddy10,4306,92610,45510,61511,02311,65511,8699,685
SwiftyJSON514466515524527546562512
Instructions (count)
Meanp0p50p90p95p99p100Samples
JBird2,571,9982,570,7622,572,2872,574,3352,574,3352,600,9592,813,0139,223
Foundation7,069,7967,051,9697,065,5997,081,9837,094,2717,106,5597,204,9603,409
Freddy2,568,3082,566,3772,568,1912,568,1912,572,2872,605,0552,761,4249,685
SwiftyJSON47,880,96047,794,93247,841,27947,874,04747,906,81550,724,86350,913,383512
Memory (resident peak) (bytes)
Meanp0p50p90p95p99p100Samples
JBird30,827,15329,868,03230,851,07130,851,07230,851,07230,851,07230,851,0729,223
Foundation178,667,61929,982,720179,175,423299,368,447314,048,511325,058,559329,121,7923,409
Freddy30,596,01229,900,80030,605,31230,605,31230,605,31230,605,31230,605,3129,685
SwiftyJSON53,006,44829,999,10453,149,69570,909,95173,269,24774,973,18375,448,320512
Malloc (total) (count)
Meanp0p50p90p95p99p100Samples
JBird181818181818189,223
Foundation8128128128128128128133,409
Freddy2162162162162162162169,685
SwiftyJSON816816816816816816818512
Malloc (bytes total) (bytes)
Meanp0p50p90p95p99p100Samples
JBird661,248661,440661,440661,440661,440661,440661,4409,223
Foundation210,128210,088210,175210,175210,175210,175214,1843,409
Freddy521,600521,609521,609521,609521,609521,609521,6099,685
SwiftyJSON575,248575,016575,487575,487575,487575,487579,112512
Free (total) (count)
Meanp0p50p90p95p99p100Samples
JBird181818181818189,223
Foundation101010101010103,409
Freddy2162162162162162162169,685
SwiftyJSON14141414141414512
Malloc / free Δ (count)
Meanp0p50p90p95p99p100Samples
JBird00000009,223
Foundation8028028028028028028033,409
Freddy00000009,685
SwiftyJSON802802802802802802804512
Malloc / free Δ (bytes) (bytes)
Meanp0p50p90p95p99p100Samples
JBird00000009,223
Foundation71,28071,23271,29571,29571,29571,29575,3283,409
Freddy00000009,685
SwiftyJSON71,28071,23271,29571,29571,29571,29575,328512

← Deeply nested · All inputs · Numeric →