Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Benchmarks

paragc against cppgc (V8’s Oilpan), gc-arena, gc (rust-gc) and dumpster on a 16-core machine. The numbers are wall-clock milliseconds, best of 5. Setup, workloads and every configuration are in benches/benchmark.md.

paragccppgcgc-arenadumpstergc
Pause, 1M live + 1M dead, 1 thread20.244.216.316.390.2
Pause, 16 threads4.244.9–––
Pause, concurrent marking + sweeping, 1 thread0.02––––
GCBench, 1 thread50.3121.0118.097.8294.6
GCBench, 4 threads54.394.2–––
Many mutators, 16 threads9.0––343.5–
Fragmentation (~80 MB live), RSS after / peak MB111 / 416445 / 1894–––

How to read them:

  • On a single thread, gc-arena and dumpster pause for less time. paragc’s full collection also rebuilds reference counts.
  • With threads, and in throughput, paragc leads.
  • cppgc’s forced full collection marks on one thread even with every parallel flag on, and pays an FFI call per allocation and per edge in this harness.

The comparison benchmarks depend on large libraries such as V8, so benches/ is a workspace of its own.