Benchmarks › Numeric

Numeric

Overview

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

Library Time Instructions Peak memory Allocations
JBird 65.9 μs 1.6M 31.1 MB 10
Foundation 410.4 μs 8.7M 183.5 MB 2.7K
Freddy 73.0 μs 1.6M 30.6 MB 13
SwiftyJSON 1.37 ms 31.4M 77.1 MB 2.7K

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
JBird66.258.165.969.572.578.1209.214,338
Foundation411.4367.8410.4420.6427.5442.4499.22,407
Freddy72.964.573.074.477.184.4116.313,087
SwiftyJSON1,369.91,249.11,371.11,396.71,415.21,462.31,535.0727
Time (total CPU) (μs)
Meanp0p50p90p95p99p100Samples
JBird67.959.667.571.274.680.0196.614,338
Foundation413.2369.3412.2422.9429.8444.4491.52,407
Freddy74.565.974.676.278.886.8118.513,087
SwiftyJSON1,372.01,250.61,372.21,398.81,417.21,464.31,537.0727
Throughput (# / s) (per second)
Meanp0p50p90p95p99p100Samples
JBird15,1514,78115,19116,15116,60716,92717,21714,338
Foundation2,4332,0032,4392,4732,4932,6552,7192,407
Freddy13,7388,59613,71114,42314,83115,31915,49413,087
SwiftyJSON730651730743748784801727
Instructions (count)
Meanp0p50p90p95p99p100Samples
JBird1,588,2651,587,6081,588,2231,589,2471,589,2471,595,3911,749,83314,338
Foundation8,727,6068,705,0708,724,4798,740,8638,765,4398,921,0879,199,8762,407
Freddy1,553,2631,552,4971,553,4071,553,4071,553,4071,562,6231,659,19313,087
SwiftyJSON31,409,67231,344,99231,375,35931,440,89531,473,66333,193,98333,380,406727
Memory (resident peak) (bytes)
Meanp0p50p90p95p99p100Samples
JBird30,888,12230,146,56031,064,06431,064,06431,064,06431,064,06431,064,06414,338
Foundation181,751,16330,294,016183,500,799305,659,903320,602,111332,136,447335,937,5362,407
Freddy30,604,34530,179,32830,605,31130,621,69630,621,69630,621,69630,621,69613,087
SwiftyJSON76,542,74630,392,32077,135,871113,115,135117,637,119122,044,416122,044,416727
Malloc (total) (count)
Meanp0p50p90p95p99p100Samples
JBird1010101010101014,338
Foundation2,6772,6772,6772,6772,6772,6772,6782,407
Freddy1313131313131313,087
SwiftyJSON2,6812,6812,6812,6812,6812,6812,683727
Malloc (bytes total) (bytes)
Meanp0p50p90p95p99p100Samples
JBird329,088328,992328,992328,992328,992328,992328,99214,338
Foundation190,159190,152190,207190,207190,207190,207194,2482,407
Freddy245,056245,048245,048245,048245,048245,048245,04813,087
SwiftyJSON368,017367,944368,127368,127368,127368,127372,040727
Free (total) (count)
Meanp0p50p90p95p99p100Samples
JBird1010101010101014,338
Foundation5895895895895895895892,407
Freddy1313131313131313,087
SwiftyJSON593593593593593593593727
Malloc / free Δ (count)
Meanp0p50p90p95p99p100Samples
JBird000000014,338
Foundation2,0892,0882,0892,0892,0892,0892,0892,407
Freddy000000013,087
SwiftyJSON2,0892,0882,0892,0892,0892,0892,090727
Malloc / free Δ (bytes) (bytes)
Meanp0p50p90p95p99p100Samples
JBird000000014,338
Foundation89,00788,99289,02389,02389,02389,02393,0882,407
Freddy000000013,087
SwiftyJSON89,00988,99289,02389,02389,02389,02393,088727

← Integers · All inputs · Strings →