Benchmarks › 5 MB, pretty-printed

5 MB, pretty-printed

Overview

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

Library Time Instructions Peak memory Allocations
JBird 7.57 ms 162.5M 58.6 MB 52.6K
Foundation 14.43 ms 327.9M 335.5 MB 73.8K
Freddy 16.13 ms 332.4M 44.7 MB 52.6K
SwiftyJSON 53.81 ms 1.2B 135.7 MB 105.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
JBird7,579.47,060.97,573.57,696.47,778.38,142.88,284.2132
Foundation14,439.014,018.814,434.314,639.114,737.414,833.814,833.870
Freddy16,133.115,601.516,130.016,318.516,384.016,451.316,451.362
SwiftyJSON53,347.251,473.153,805.154,526.054,565.354,565.354,565.319
Time (total CPU) (μs)
Meanp0p50p90p95p99p100Samples
JBird7,584.27,062.57,577.67,700.57,786.58,151.08,290.6132
Foundation14,445.514,015.914,442.514,647.314,745.614,840.414,840.470
Freddy16,141.015,603.016,138.216,326.716,392.216,458.516,458.562
SwiftyJSON53,362.751,483.553,837.854,526.054,591.254,591.254,591.219
Throughput (# / s) (per second)
Meanp0p50p90p95p99p100Samples
JBird132121132134136137142132
Foundation6967697071717170
Freddy6261626363646462
SwiftyJSON1918191919191919
Instructions (count)
Meanp0p50p90p95p99p100Samples
JBird162,491,547162,365,772162,529,279162,660,351163,053,567163,708,927164,149,101132
Foundation327,983,338327,658,661327,942,143328,728,575328,990,719331,986,930331,986,93070
Freddy332,280,204332,109,852332,398,591332,660,735333,185,023334,391,076334,391,07662
SwiftyJSON1,247,943,4111,247,601,8911,247,805,4391,249,902,5911,250,020,2871,250,020,2871,250,020,28719
Memory (resident peak) (bytes)
Meanp0p50p90p95p99p100Samples
JBird58,536,55755,689,21658,556,41558,589,18458,589,18458,589,18458,589,184132
Foundation343,092,42946,678,016335,544,319583,532,543613,941,247641,433,600641,433,60070
Freddy44,705,59444,335,10444,728,31944,728,32044,728,32044,728,32044,728,32062
SwiftyJSON135,630,20157,049,088135,659,519204,996,607213,549,056213,549,056213,549,05619
Malloc (total) (count)
Meanp0p50p90p95p99p100Samples
JBird52,59252,59452,59452,59452,59452,59452,594132
Foundation73,76073,75373,75473,75473,75473,75473,75470
Freddy52,59252,58652,58652,58652,58652,58652,58662
SwiftyJSON105,440105,437105,439105,439105,439105,439105,43919
Malloc (bytes total) (bytes)
Meanp0p50p90p95p99p100Samples
JBird25,370,62425,368,53225,368,53225,368,53225,368,53225,368,53225,368,532132
Foundation7,231,4887,232,4087,232,5367,232,5367,232,5367,232,5367,232,53670
Freddy12,390,40012,388,96912,388,96912,388,96912,388,96912,388,96912,388,96962
SwiftyJSON22,700,03222,692,37622,692,53622,692,53622,692,53622,692,53622,692,53619
Free (total) (count)
Meanp0p50p90p95p99p100Samples
JBird52,59252,59452,59452,59452,59452,59452,594132
Foundation1111111111111170
Freddy52,59252,58652,58652,58652,58652,58652,58662
SwiftyJSON31,68831,69531,69531,69531,69531,69531,69519
Malloc / free Δ (count)
Meanp0p50p90p95p99p100Samples
JBird0000000132
Foundation73,76073,74273,74373,74373,74373,74373,74370
Freddy000000062
SwiftyJSON73,76073,74273,74473,74473,74473,74473,74419
Malloc / free Δ (bytes) (bytes)
Meanp0p50p90p95p99p100Samples
JBird0000000132
Foundation6,961,1526,962,4806,962,6086,962,6086,962,6086,962,6086,962,60870
Freddy000000062
SwiftyJSON6,961,1526,962,4806,962,6406,962,6406,962,6406,962,6406,962,64019

← 5 MB · All inputs · Twitter →