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 36 4 10 12.0 18.0 476,684 1,282 6 408,754 5 204,377 osh-native
parse.configure-coreutils 166 27 76 46.1 51.4 1,653,272 4,764 12 1,069,120 6 798,641 osh-native
parse.abuild 9 1 1 2.6 8.5 101,875 180 2 75,096 1 37,548 osh-native
ex.compute-fib 28 0 1 2.6 7.9 584,140 31,810 12 50,000 0 2,825 osh-native
ex.bashcomp-parse-help 181 0 3 10.6 8.7 995,217 27,376 21 50,000 0 3,820 osh-native
ex.abuild-print-help 23 1 2 2.8 8.8 116,284 478 3 85,332 1 42,666 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.6 dash -
24 20 4 3.0 bash -
106 75 37 3.4 zsh -
16 16 0 29.1 bumpleak/osh mut
20 16 4 29.6 _bin/cxx-opt+bumproot/osh mut
23 11 11 28.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
31 23 8 25.0 osh-native mut+alloc
33 21 11 25.4 osh-native mut+alloc+free
36 28 8 18.0 osh-native mut+alloc+free+gc
36 24 12 18.0 osh-native mut+alloc+free+gc+exit
44 24 20 32.4 _bin/cxx-opt+nopool/osh mut+alloc
48 48 0 22.0 _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
22 22 0 1.4 dash -
77 77 0 3.0 bash -
379 219 180 3.5 zsh -
49 36 12 84.3 bumpleak/osh mut
61 48 12 85.3 _bin/cxx-opt+bumproot/osh mut
70 66 4 85.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 60 36 73.4 osh-native mut+alloc
105 60 44 75.0 osh-native mut+alloc+free
166 146 20 51.4 osh-native mut+alloc+free+gc
155 126 29 52.2 osh-native mut+alloc+free+gc+exit
140 83 56 98.0 _bin/cxx-opt+nopool/osh mut+alloc
234 202 32 73.1 _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.3 dash -
6 6 0 3.0 bash -
8 4 4 3.3 zsh -
6 3 3 11.4 bumpleak/osh mut
7 7 0 11.2 _bin/cxx-opt+bumproot/osh mut
7 4 4 11.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 4 4 10.1 osh-native mut+alloc
9 0 9 10.1 osh-native mut+alloc+free
9 6 3 8.5 osh-native mut+alloc+free+gc
9 5 5 8.5 osh-native mut+alloc+free+gc+exit
12 8 4 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 12 0 9.5 _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
10 10 0 1.4 dash -
29 25 4 2.9 bash -
24 12 12 3.4 zsh -
19 8 12 32.6 bumpleak/osh mut
27 22 4 32.7 _bin/cxx-opt+bumproot/osh mut
28 27 0 32.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 24 12 26.5 osh-native mut+alloc
38 38 0 26.7 osh-native mut+alloc+free
28 28 0 7.9 osh-native mut+alloc+free+gc
28 24 4 7.9 osh-native mut+alloc+free+gc+exit
54 39 15 35.8 _bin/cxx-opt+nopool/osh mut+alloc
37 29 8 9.4 _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
74 69 4 3.0 bash -
169 110 59 55.4 bumpleak/osh mut
180 110 70 55.9 _bin/cxx-opt+bumproot/osh mut
194 135 59 56.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 107 103 47.0 osh-native mut+alloc
216 138 77 48.9 osh-native mut+alloc+free
181 90 90 8.7 osh-native mut+alloc+free+gc
181 114 67 8.7 osh-native mut+alloc+free+gc+exit
232 144 88 64.2 _bin/cxx-opt+nopool/osh mut+alloc
209 169 40 10.2 _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
10 9 1 3.3 dash -
20 16 4 4.3 bash -
18 15 4 3.4 zsh -
20 15 5 12.1 bumpleak/osh mut
21 8 13 12.8 _bin/cxx-opt+bumproot/osh mut
22 16 7 13.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 16 6 10.9 osh-native mut+alloc
23 20 4 11.1 osh-native mut+alloc+free
23 18 5 8.8 osh-native mut+alloc+free+gc
23 15 9 9.0 osh-native mut+alloc+free+gc+exit
25 15 11 12.5 _bin/cxx-opt+nopool/osh mut+alloc
26 14 12 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc