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 35 3 10 12.0 17.8 476,676 1,282 6 408,744 5 204,372 osh-native
parse.configure-coreutils 145 22 58 46.1 51.4 1,653,264 4,764 12 1,069,110 6 798,636 osh-native
parse.abuild 9 1 1 2.6 8.4 101,867 180 2 75,086 1 37,543 osh-native
ex.compute-fib 28 0 1 2.6 7.9 584,132 31,810 12 50,000 0 2,819 osh-native
ex.bashcomp-parse-help 179 0 3 10.2 8.5 982,889 27,376 21 50,000 0 3,805 osh-native
ex.abuild-print-help 22 1 2 2.8 9.0 116,248 478 3 85,322 1 42,661 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 23 0 3.1 bash -
104 50 62 3.4 zsh -
17 12 4 28.1 bumpleak/osh mut
19 15 4 28.5 _bin/cxx-opt+bumproot/osh mut
22 15 7 29.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 21 8 25.0 osh-native mut+alloc
31 15 15 25.4 osh-native mut+alloc+free
35 31 4 17.8 osh-native mut+alloc+free+gc
37 15 22 18.0 osh-native mut+alloc+free+gc+exit
43 31 12 32.6 _bin/cxx-opt+nopool/osh mut+alloc
48 43 4 22.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
21 21 0 1.6 dash -
77 77 0 3.1 bash -
377 218 182 3.5 zsh -
49 40 8 84.1 bumpleak/osh mut
60 44 16 85.9 _bin/cxx-opt+bumproot/osh mut
69 49 20 86.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 76 24 73.4 osh-native mut+alloc
104 72 32 75.0 osh-native mut+alloc+free
145 125 20 51.4 osh-native mut+alloc+free+gc
150 126 24 52.3 osh-native mut+alloc+free+gc+exit
139 110 28 98.3 _bin/cxx-opt+nopool/osh mut+alloc
201 161 40 71.5 _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 2.9 bash -
8 8 0 3.1 zsh -
6 3 3 11.5 bumpleak/osh mut
7 7 0 12.0 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 0 8 9.7 osh-native mut+alloc
8 8 0 10.1 osh-native mut+alloc+free
9 9 0 8.4 osh-native mut+alloc+free+gc
9 3 6 8.4 osh-native mut+alloc+free+gc+exit
11 6 6 11.3 _bin/cxx-opt+nopool/osh mut+alloc
11 11 0 9.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
10 10 0 1.4 dash -
29 29 0 3.0 bash -
24 20 4 3.3 zsh -
19 19 0 34.8 bumpleak/osh mut
24 16 8 31.6 _bin/cxx-opt+bumproot/osh mut
28 28 0 32.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 20 16 26.3 osh-native mut+alloc
38 27 11 26.7 osh-native mut+alloc+free
28 28 0 7.9 osh-native mut+alloc+free+gc
28 27 0 8.0 osh-native mut+alloc+free+gc+exit
54 19 35 36.2 _bin/cxx-opt+nopool/osh mut+alloc
37 34 4 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
73 69 4 3.1 bash -
168 108 60 53.7 bumpleak/osh mut
179 134 45 55.1 _bin/cxx-opt+bumproot/osh mut
189 129 60 55.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
209 136 72 46.5 osh-native mut+alloc
214 145 69 48.1 osh-native mut+alloc+free
179 143 36 8.5 osh-native mut+alloc+free+gc
179 111 68 8.5 osh-native mut+alloc+free+gc+exit
230 127 103 63.5 _bin/cxx-opt+nopool/osh mut+alloc
207 139 68 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 5 5 3.4 dash -
19 13 6 4.3 bash -
18 9 9 3.5 zsh -
18 9 10 11.8 bumpleak/osh mut
21 17 4 12.9 _bin/cxx-opt+bumproot/osh mut
20 17 3 12.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 10 11 10.7 osh-native mut+alloc
22 6 16 10.9 osh-native mut+alloc+free
22 14 8 9.0 osh-native mut+alloc+free+gc
23 19 4 8.9 osh-native mut+alloc+free+gc+exit
25 17 8 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 18 8 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc