Benched against the standard malloc()
function.
Benched with Apple Silicon M1 chip. -O3 optimization level and specialized flags.
Allocation Size | Jallocator Ops/sec | Jallocator Mean (ms) | Malloc Ops/sec | Malloc Mean (ms) | Speedup |
---|---|---|---|---|---|
Tiny-8 | 562,573,661.99 | 0.04 | 124,204,007.57 | 0.16 | 4.53x |
Tiny-16 | 584,410,328.52 | 0.03 | 128,970,227.55 | 0.16 | 4.53x |
Tiny-24 | 614,266,650.08 | 0.03 | 113,566,159.10 | 0.18 | 5.41x |
Small-32 | 609,476,815.96 | 0.03 | 114,047,543.91 | 0.18 | 5.34x |
Small-64 | 620,492,124.71 | 0.03 | 95,097,541.07 | 0.21 | 6.52x |
Small-128 | 525,182,225.10 | 0.04 | 71,669,498.69 | 0.28 | 7.33x |
Medium-256 | 534,431,840.17 | 0.04 | 47,164,526.45 | 0.42 | 11.33x |
Medium-512 | 519,373,946.64 | 0.04 | 19,396,125.30 | 1.03 | 26.78x |
Medium-1K | 525,630,118.82 | 0.04 | 16,915,668.12 | 1.18 | 31.07x |
Large-2K | 533,801,655.32 | 0.04 | 14,158,591.37 | 1.41 | 37.70x |
Large-4K | 526,662,000.44 | 0.04 | 8,914,450.06 | 2.24 | 59.08x |
Large-8K | 533,582,196.07 | 0.04 | 5,949,518.19 | 3.36 | 89.68x |
Allocation Size | Jallocator Ops/sec | Jallocator Mean (ms) | Malloc Ops/sec | Malloc Mean (ms) | Speedup |
---|---|---|---|---|---|
Tiny-8 | 38,395,402.38 | 0.52 | 28,261,401.00 | 0.71 | 1.36x |
Tiny-16 | 38,541,207.58 | 0.52 | 28,712,591.98 | 0.70 | 1.34x |
Tiny-24 | 39,229,793.62 | 0.51 | 28,373,491.04 | 0.70 | 1.38x |
Small-32 | 27,405,237.83 | 0.73 | 20,258,377.37 | 0.99 | 1.35x |
Small-64 | 37,816,433.74 | 0.53 | 24,369,434.78 | 0.82 | 1.55x |
Small-128 | 9,194,170.49 | 2.18 | 6,976,988.22 | 2.87 | 1.32x |
Medium-256 | 36,204,016.15 | 0.55 | 12,878,852.37 | 1.55 | 2.81x |
Medium-512 | 22,962,444.69 | 0.87 | 6,299,006.27 | 3.18 | 3.65x |
Medium-1K | 15,229,196.75 | 1.31 | 5,420,391.18 | 3.69 | 2.81x |
Large-2K | 31,356,568.24 | 0.64 | 5,241,811.17 | 3.82 | 5.98x |
Large-4K | 28,355,561.73 | 0.71 | 2,989,287.16 | 6.69 | 9.49x |
Large-8K | 26,681,935.85 | 0.75 | 1,775,095.40 | 11.27 | 15.03x |