Benchmarks › Numeric

Numeric

Overview

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

Library Time Instructions Peak memory Allocations
JBird 79.0 μs 1.6M 30.4 MB 10
Foundation 420.4 μs 9.1M 174.9 MB 3.0K
Freddy 72.4 μs 1.6M 30.3 MB 13
SwiftyJSON 1.27 ms 29.9M 78.8 MB 3.0K

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
JBird77.757.579.084.185.390.0160.011,618
Foundation427.7367.3420.4458.5475.6520.7565.12,295
Freddy72.964.172.476.578.785.5158.612,526
SwiftyJSON1,281.31,156.51,271.81,335.31,348.61,394.71,479.8775
Time (total CPU) (μs)
Meanp0p50p90p95p99p100Samples
JBird82.160.783.588.890.195.0156.811,618
Foundation431.8370.8424.2463.4481.3524.0570.72,295
Freddy76.667.576.180.382.890.4152.512,526
SwiftyJSON1,285.81,160.71,276.91,340.41,354.81,398.81,479.3775
Throughput (# / s) (per second)
Meanp0p50p90p95p99p100Samples
JBird12,9676,25212,67114,64715,19916,29517,39111,618
Foundation2,3461,7702,3812,4572,4832,6052,7222,295
Freddy13,7706,30613,82314,90315,12715,48715,59512,526
SwiftyJSON781676786802807849865775
Instructions (count)
Meanp0p50p90p95p99p100Samples
JBird1,586,5151,582,1201,586,1751,589,2471,590,2711,595,3911,731,52211,618
Foundation9,063,7709,040,0749,060,3519,084,9279,101,3119,289,7279,616,9752,295
Freddy1,551,2891,544,2311,551,3591,551,3591,551,3591,557,5031,663,43812,526
SwiftyJSON29,947,51029,885,79029,917,18329,966,33530,031,87131,768,57531,930,993775
Memory (resident peak) (bytes)
Meanp0p50p90p95p99p100Samples
JBird30,464,97829,851,64830,392,31930,818,30330,834,68830,834,68830,834,68811,618
Foundation174,469,21530,015,488174,850,047292,290,559306,184,191317,194,239320,503,8082,295
Freddy30,310,93629,868,03230,326,78330,326,78330,326,78330,474,24030,474,24012,526
SwiftyJSON79,287,90530,097,40878,839,807118,358,015123,994,111127,860,735129,024,000775
Malloc (total) (count)
Meanp0p50p90p95p99p100Samples
JBird1010101010101011,618
Foundation2,9672,9672,9672,9672,9672,9672,9682,295
Freddy1313131313131312,526
SwiftyJSON2,9712,9712,9712,9712,9712,9712,973775
Malloc (bytes total) (bytes)
Meanp0p50p90p95p99p100Samples
JBird329,088328,992328,992328,992328,992328,992328,99211,618
Foundation201,808201,752201,855201,855201,855201,855205,8482,295
Freddy245,056245,048245,048245,048245,048245,048245,04812,526
SwiftyJSON379,536379,544379,647379,647379,647379,647383,640775
Free (total) (count)
Meanp0p50p90p95p99p100Samples
JBird1010101010101011,618
Foundation8798798798798798798792,295
Freddy1313131313131312,526
SwiftyJSON883883883883883883883775
Malloc / free Δ (count)
Meanp0p50p90p95p99p100Samples
JBird000000011,618
Foundation2,0892,0882,0892,0892,0892,0892,0892,295
Freddy000000012,526
SwiftyJSON2,0892,0882,0892,0892,0892,0892,090775
Malloc / free Δ (bytes) (bytes)
Meanp0p50p90p95p99p100Samples
JBird000000011,618
Foundation89,00888,99289,02389,02389,02389,02393,0882,295
Freddy000000012,526
SwiftyJSON89,00888,99289,02389,02389,02389,02393,088775

← Integers · All inputs · Strings →