Memory Management Overhead

Source code: oil/benchmarks/gc.sh

GC Stats

task elapsed ms max gc millis total gc millis allocated MB max rss MB num allocated num gc points num gc done gc threshold num growths max survived shell label
parse.configure-cpython 56 0 0 19.3 25.2 532,310 1,282 5 424,312 4 212,156 osh-native
parse.configure-coreutils 232 0 0 65.0 69.3 1,828,626 4,764 8 1,831,386 7 915,693 osh-native
parse.abuild 12 0 0 4.1 10.3 113,267 180 2 88,730 1 44,365 osh-native
ex.compute-fib 77 0 0 3.0 8.1 703,361 31,810 15 50,000 0 3,429 osh-native
ex.bashcomp-parse-help 328 0 0 10.7 8.8 1,280,242 27,375 28 50,000 0 4,593 osh-native
ex.abuild-print-help 23 0 0 3.4 9.7 129,331 477 3 123,942 2 61,971 osh-native

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 6 0 1.7 dash -
29 29 0 3.7 bash -
131 90 46 4.4 zsh -
26 15 11 30.9 bumpleak/osh mut
36 28 8 31.3 _bin/cxx-opt+bumproot/osh mut
43 31 12 31.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
40 36 4 29.2 osh-native mut+alloc
45 33 12 29.7 osh-native mut+alloc+free
56 36 20 25.2 osh-native mut+alloc+free+gc
57 37 20 25.6 osh-native mut+alloc+free+gc+exit
61 49 11 35.4 _bin/cxx-opt+nopool/osh mut+alloc
79 67 12 30.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

parse.configure-coreutils

Parsing the autoconf-generated configure script from GNU coreutils.

Note that unlike other shells, osh -n retains all nodes on purpose. (See the parser benchmark).

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
24 19 4 1.9 dash -
118 114 4 3.9 bash -
507 312 209 4.5 zsh -
97 73 24 95.0 bumpleak/osh mut
134 103 32 95.2 _bin/cxx-opt+bumproot/osh mut
139 98 41 95.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
152 120 32 88.6 osh-native mut+alloc
190 157 32 90.7 osh-native mut+alloc+free
232 216 16 69.3 osh-native mut+alloc+free+gc
262 238 24 70.6 osh-native mut+alloc+free+gc+exit
217 181 36 109.6 _bin/cxx-opt+nopool/osh mut+alloc
341 290 52 94.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

parse.abuild

Parsing abuild from Alpine Linux.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
2 0 2 1.7 dash -
6 6 0 3.4 bash -
15 10 5 4.2 zsh -
7 7 0 11.2 bumpleak/osh mut
9 9 0 11.4 _bin/cxx-opt+bumproot/osh mut
10 6 3 11.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 5 5 11.1 osh-native mut+alloc
10 3 6 10.9 osh-native mut+alloc+free
12 12 0 10.3 osh-native mut+alloc+free+gc
11 11 0 10.0 osh-native mut+alloc+free+gc+exit
13 10 3 12.0 _bin/cxx-opt+nopool/osh mut+alloc
13 10 3 11.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

ex.compute-fib

A synthetic benchmark for POSIX shell arithmetic.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
11 11 0 1.8 dash -
41 37 4 3.3 bash -
27 27 0 4.1 zsh -
61 50 12 33.2 bumpleak/osh mut
83 71 12 33.2 _bin/cxx-opt+bumproot/osh mut
90 82 8 33.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
83 62 21 29.9 osh-native mut+alloc
90 81 8 30.3 osh-native mut+alloc+free
77 69 8 8.1 osh-native mut+alloc+free+gc
80 80 0 8.0 osh-native mut+alloc+free+gc+exit
111 102 8 42.0 _bin/cxx-opt+nopool/osh mut+alloc
101 101 0 9.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

ex.bashcomp-parse-help

A realistic bash-completion workload.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
252 235 8 3.9 bash -
377 333 44 59.5 bumpleak/osh mut
354 310 44 59.8 _bin/cxx-opt+bumproot/osh mut
415 375 40 60.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
357 313 44 53.4 osh-native mut+alloc
417 369 48 55.3 osh-native mut+alloc+free
328 305 24 8.8 osh-native mut+alloc+free+gc
341 325 16 8.7 osh-native mut+alloc+free+gc+exit
474 410 64 70.1 _bin/cxx-opt+nopool/osh mut+alloc
441 405 36 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc

ex.abuild-print-help

Running abuild -h from Alpine Linux.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
7 4 3 4.0 dash -
39 28 2 5.1 bash -
20 11 9 4.3 zsh -
15 14 1 11.7 bumpleak/osh mut
17 10 8 12.1 _bin/cxx-opt+bumproot/osh mut
20 20 1 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
26 22 5 11.7 osh-native mut+alloc
36 33 4 11.8 osh-native mut+alloc+free
23 16 8 9.7 osh-native mut+alloc+free+gc
21 16 6 9.7 osh-native mut+alloc+free+gc+exit
28 29 0 12.9 _bin/cxx-opt+nopool/osh mut+alloc
32 25 8 10.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc