Benchmarks › Strings

Strings

Overview

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

Library Time Instructions Peak memory Allocations
JBird 10.3 μs 231.0K 30.8 MB 77
Foundation 79.9 μs 1.9M 411.8 MB 84
Freddy 110.0 μs 2.0M 30.7 MB 89
SwiftyJSON 106.9 μs 2.5M 323.0 MB 88

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
JBird10.29.010.310.510.713.040.272,754
Foundation79.769.979.984.586.792.9121.112,020
Freddy110.196.6110.0113.1116.2124.1146.38,801
SwiftyJSON106.794.4106.9111.2114.0121.6149.99,076
Time (total CPU) (μs)
Meanp0p50p90p95p99p100Samples
JBird11.910.412.012.212.415.237.872,754
Foundation81.371.481.586.288.695.4113.312,020
Freddy111.898.0111.7115.0118.3125.9149.88,801
SwiftyJSON108.395.9108.5113.0115.9123.5151.59,076
Throughput (# / s) (per second)
Meanp0p50p90p95p99p100Samples
JBird98,14024,87097,599106,687108,607110,143111,62072,754
Foundation12,5928,25612,52713,63913,87914,08714,30312,020
Freddy9,0936,8369,0959,3519,63110,12710,3498,801
SwiftyJSON9,3936,6729,3599,95110,15910,41510,5969,076
Instructions (count)
Meanp0p50p90p95p99p100Samples
JBird231,220230,951231,039231,551231,551236,031318,90172,754
Foundation1,879,7121,863,0701,879,0391,894,3991,895,4231,905,6631,985,34112,020
Freddy2,042,3772,041,2112,041,8552,046,9752,046,9752,057,2152,117,1728,801
SwiftyJSON2,534,4572,516,0542,533,3752,549,7592,555,9032,586,6232,634,5029,076
Memory (resident peak) (bytes)
Meanp0p50p90p95p99p100Samples
JBird30,742,52030,212,09630,769,15130,769,15230,769,15230,769,15230,769,15272,754
Foundation414,922,93430,179,328411,828,223727,187,455765,460,479795,344,895804,864,00012,020
Freddy30,726,43830,195,71230,736,38330,752,76730,752,76830,752,76830,752,7688,801
SwiftyJSON320,894,41730,212,096322,961,407558,366,719586,678,271606,601,215613,826,5609,076
Malloc (total) (count)
Meanp0p50p90p95p99p100Samples
JBird7777777777777772,754
Foundation8484848484848512,020
Freddy898989898989898,801
SwiftyJSON888888888888919,076
Malloc (bytes total) (bytes)
Meanp0p50p90p95p99p100Samples
JBird125,536125,552125,552125,552125,552125,552125,55272,754
Foundation67,50467,48067,51967,51967,51967,51971,57612,020
Freddy70,75270,72970,72970,72970,72970,72970,7298,801
SwiftyJSON72,75272,72872,76772,76772,76772,76776,8249,076
Free (total) (count)
Meanp0p50p90p95p99p100Samples
JBird7777777777777772,754
Foundation444444412,020
Freddy898989898989898,801
SwiftyJSON88888889,076
Malloc / free Δ (count)
Meanp0p50p90p95p99p100Samples
JBird000000072,754
Foundation8080808080808112,020
Freddy00000008,801
SwiftyJSON808080808080839,076
Malloc / free Δ (bytes) (bytes)
Meanp0p50p90p95p99p100Samples
JBird000000072,754
Foundation57,66457,64857,66357,66357,66357,66361,74412,020
Freddy00000008,801
SwiftyJSON57,66457,64857,66357,66357,66357,66361,7449,076

← Numeric · All inputs