Benchmarks › Strings

Strings

Overview

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

Library Time Instructions Peak memory Allocations
JBird 11.3 μs 233.7K 30.5 MB 77
Foundation 86.5 μs 1.9M 370.1 MB 84
Freddy 111.1 μs 2.0M 30.5 MB 89
SwiftyJSON 105.9 μs 2.5M 312.2 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
JBird11.49.811.312.113.514.539.353,959
Foundation86.872.186.593.195.6101.3127.410,570
Freddy111.695.3111.1119.7123.3132.4154.98,406
SwiftyJSON105.493.0105.9111.7114.0121.5250.18,899
Time (total CPU) (μs)
Meanp0p50p90p95p99p100Samples
JBird15.213.015.016.517.919.435.753,959
Foundation90.975.790.697.3100.1106.8140.410,570
Freddy115.598.6114.9124.1128.1136.8157.38,406
SwiftyJSON109.096.3109.4115.5118.1125.8239.48,899
Throughput (# / s) (per second)
Meanp0p50p90p95p99p100Samples
JBird88,09125,45188,89591,26397,599100,415102,12453,959
Foundation11,5607,84811,57512,32712,66313,18313,86510,570
Freddy8,9916,4579,0079,7039,87910,09510,4908,406
SwiftyJSON9,5193,9999,45510,27110,42310,58310,7538,899
Instructions (count)
Meanp0p50p90p95p99p100Samples
JBird233,823223,224233,727233,983234,111237,567296,35553,959
Foundation1,882,5811,865,7581,882,1111,897,4711,899,5191,912,8311,946,64610,570
Freddy2,044,5232,043,3662,043,9032,047,9992,047,9992,073,5992,183,6868,406
SwiftyJSON2,522,9932,504,4192,521,0872,537,4712,545,6632,576,3832,679,9558,899
Memory (resident peak) (bytes)
Meanp0p50p90p95p99p100Samples
JBird30,450,18329,949,95230,474,23930,474,24030,474,24030,474,24030,474,24053,959
Foundation368,260,92529,835,264370,147,327645,398,527672,137,215706,215,935714,014,72010,570
Freddy30,493,09029,949,95230,507,00730,523,39230,523,39230,523,39230,523,3928,406
SwiftyJSON314,889,72129,917,184312,213,503545,259,519571,998,207600,506,368600,506,3688,899
Malloc (total) (count)
Meanp0p50p90p95p99p100Samples
JBird7777777777777753,959
Foundation8484848484848510,570
Freddy898989898989898,406
SwiftyJSON888888888888918,899
Malloc (bytes total) (bytes)
Meanp0p50p90p95p99p100Samples
JBird125,536125,552125,552125,552125,552125,552125,55253,959
Foundation67,50467,48067,51967,51967,51967,51971,57610,570
Freddy70,75270,72970,72970,72970,72970,72970,7298,406
SwiftyJSON72,75272,72872,76772,76772,76772,76776,8248,899
Free (total) (count)
Meanp0p50p90p95p99p100Samples
JBird7777777777777753,959
Foundation444444410,570
Freddy898989898989898,406
SwiftyJSON88888888,899
Malloc / free Δ (count)
Meanp0p50p90p95p99p100Samples
JBird000000053,959
Foundation8080808080808110,570
Freddy00000008,406
SwiftyJSON808080808080838,899
Malloc / free Δ (bytes) (bytes)
Meanp0p50p90p95p99p100Samples
JBird000000053,959
Foundation57,66457,64857,66357,66357,66357,66361,74410,570
Freddy00000008,406
SwiftyJSON57,66457,64857,66357,66357,66357,66361,7448,899

← Numeric · All inputs