Benchmarks › 64 KB

64 KB

Overview

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

Library Time Instructions Peak memory Allocations
JBird 94.0 μs 2.0M 30.8 MB 668
Foundation 178.2 μs 4.1M 347.1 MB 986
Freddy 200.1 μs 4.1M 30.8 MB 674
SwiftyJSON 665.1 μs 15.4M 116.5 MB 1.4K

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
JBird93.183.394.096.099.5107.5138.510,341
Foundation178.2155.7178.2185.3188.9201.0254.65,498
Freddy200.5176.5200.1205.8209.9220.0234.74,898
SwiftyJSON666.0589.6665.1682.0691.2719.4759.71,492
Time (total CPU) (μs)
Meanp0p50p90p95p99p100Samples
JBird94.884.895.697.7101.5109.8141.110,341
Foundation179.9157.1179.8187.3190.8203.0265.15,498
Freddy202.2177.9201.7208.0212.1221.2236.44,898
SwiftyJSON667.9591.1667.1683.5693.8722.4761.41,492
Throughput (# / s) (per second)
Meanp0p50p90p95p99p100Samples
JBird10,7667,22010,64711,52711,74311,88712,00010,341
Foundation5,6203,9275,6155,8715,9556,1676,4245,498
Freddy4,9924,2614,9995,1035,1755,5195,6674,898
SwiftyJSON1,5021,3161,5041,5321,5431,6231,6961,492
Instructions (count)
Meanp0p50p90p95p99p100Samples
JBird1,964,6791,962,2111,964,0311,967,1031,980,4151,985,5352,081,20710,341
Foundation4,116,6184,074,9684,114,4314,134,9114,143,1034,218,8794,331,7775,498
Freddy4,077,0974,071,9124,075,5194,089,8554,091,9034,132,8634,287,2434,898
SwiftyJSON15,460,25915,387,32715,441,91915,466,49515,499,26316,293,88716,341,8611,492
Memory (resident peak) (bytes)
Meanp0p50p90p95p99p100Samples
JBird30,838,52330,359,55230,834,68730,900,22430,900,22430,900,22430,900,22410,341
Foundation347,283,65330,244,864347,078,655602,931,199634,388,479658,505,727666,812,4165,498
Freddy30,805,81730,310,40030,818,30430,818,30430,818,30430,818,30430,818,3044,898
SwiftyJSON116,933,89830,474,240116,457,471186,253,311194,772,991203,276,288203,276,2881,492
Malloc (total) (count)
Meanp0p50p90p95p99p100Samples
JBird66866866866866866866810,341
Foundation9869869869869869869875,498
Freddy6746746746746746746744,898
SwiftyJSON1,3841,3841,3841,3841,3841,3841,3861,492
Malloc (bytes total) (bytes)
Meanp0p50p90p95p99p100Samples
JBird343,680343,588343,588343,588343,588343,588343,58810,341
Foundation105,648105,624105,663105,663105,663105,663109,7205,498
Freddy157,376157,345157,345157,345157,345157,345157,3454,898
SwiftyJSON298,128298,024298,239298,239298,239298,239302,1201,492
Free (total) (count)
Meanp0p50p90p95p99p100Samples
JBird66866866866866866866810,341
Foundation55555555,498
Freddy6746746746746746746744,898
SwiftyJSON4034034034034034034031,492
Malloc / free Δ (count)
Meanp0p50p90p95p99p100Samples
JBird000000010,341
Foundation9819819819819819819825,498
Freddy00000004,898
SwiftyJSON9819819819819819819831,492
Malloc / free Δ (bytes) (bytes)
Meanp0p50p90p95p99p100Samples
JBird000000010,341
Foundation93,74493,74493,75993,75993,75993,75997,8405,498
Freddy00000004,898
SwiftyJSON93,74593,74493,75993,75993,75993,75997,8401,492

All inputs · 64 KB, pretty-printed →