Skip to content

Instantly share code, notes, and snippets.

@rbehrends rbehrends/gc-performance.txt Secret
Last active Jan 11, 2019

Embed
What would you like to do?
# jemalloc explicit malloc()/free()
/usr/bin/time ./btree-jemalloc 20 >/dev/null
10.77 real 10.67 user 0.08 sys
# Boehm GC with four parallel marker threads
GC_MARKERS=4 /usr/bin/time ./btree-gc 20 >/dev/null
4.46 real 5.49 user 0.10 sys
# Boehm GC with single-threaded marking
GC_MARKERS=1 /usr/bin/time ./btree-gc 20 >/dev/null
5.35 real 5.31 user 0.04 sys
# Boehm GC with explicit deallocation
GC_MARKERS=1 /usr/bin/time ./btree-gc-free 20 >/dev/null
6.65 real 6.61 user 0.02 sys
# Boehm GC with incremental collection (single-threaded)
/usr/bin/time ./btree-gc-inc 20 >/dev/null
10.90 real 9.16 user 3.50 sys
# Nim reference counting GC
/usr/bin/time ./btree-nim 20 >/dev/null
11.24 real 11.16 user 0.07 sys
# Nim with Boehm GC
GC_MARKERS=4 /usr/bin/time ./btree-nim-boehm 20 >/dev/null
4.57 real 5.73 user 0.10 sys
# D garbage collector
/usr/bin/time ./btree-d 20 >/dev/null
19.20 real 19.05 user 0.12 sys
# System malloc()/free()
/usr/bin/time ./btree-sysmalloc 20 >/dev/null
34.59 real 34.19 user 0.37 sys
# Tiny GC
/usr/bin/time ./btree-tiny-gc 20 >/dev/null
42.36 real 31.28 user 10.40 sys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.