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 42 7 14 12.0 17.8 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 35 4 10 12.0 17.4 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 193 33 103 44.5 49.8 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 155 29 77 44.5 49.5 1,653,338 4,764 12 1,025,396 6 764,241 osh-native-souffle
parse.abuild 10 1 1 2.6 8.4 101,942 180 2 75,030 1 37,515 osh-native
parse.abuild 9 1 2 2.4 7.9 101,942 180 3 87,092 1 43,546 osh-native-souffle
ex.compute-fib 29 0 2 2.2 8.1 579,606 22,608 12 50,000 0 2,919 osh-native
ex.compute-fib 22 0 2 2.2 7.3 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 189 0 5 10.9 8.8 1,017,204 15,258 21 50,000 0 3,900 osh-native
ex.bashcomp-parse-help 179 0 4 10.9 8.4 1,017,203 15,258 21 50,000 0 3,851 osh-native-souffle
ex.abuild-print-help 24 1 2 2.8 9.2 116,318 277 3 85,248 1 42,624 osh-native
ex.abuild-print-help 23 1 2 2.8 8.7 116,318 277 3 85,124 1 42,562 osh-native-souffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
7 6 1 1.6 dash -
24 23 1 3.1 bash -
110 58 59 3.4 zsh -
17 15 2 29.6 bumpleak/osh mut
21 19 2 28.8 _bin/cxx-opt+bumproot/osh mut
23 16 7 30.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 24 6 25.3 osh-native mut+alloc
33 18 15 25.6 osh-native mut+alloc+free
42 34 8 17.8 osh-native mut+alloc+free+gc
41 36 5 17.8 osh-native mut+alloc+free+gc+exit
44 29 15 32.4 _bin/cxx-opt+nopool/osh mut+alloc
52 44 8 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
28 12 16 24.9 osh-native-souffle mut+alloc
30 17 13 25.3 osh-native-souffle mut+alloc+free
35 24 10 17.4 osh-native-souffle mut+alloc+free+gc
35 29 6 17.7 osh-native-souffle mut+alloc+free+gc+exit

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 -
79 78 1 3.3 bash -
397 219 201 3.5 zsh -
51 44 7 84.2 bumpleak/osh mut
62 52 10 86.0 _bin/cxx-opt+bumproot/osh mut
73 60 13 86.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 63 34 73.5 osh-native mut+alloc
106 70 36 75.5 osh-native mut+alloc+free
193 172 21 49.8 osh-native mut+alloc+free+gc
179 156 22 50.5 osh-native mut+alloc+free+gc+exit
139 100 39 98.9 _bin/cxx-opt+nopool/osh mut+alloc
274 241 33 66.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 61 27 73.2 osh-native-souffle mut+alloc
97 69 28 75.0 osh-native-souffle mut+alloc+free
155 133 22 49.5 osh-native-souffle mut+alloc+free+gc
163 146 16 50.2 osh-native-souffle mut+alloc+free+gc+exit

parse.abuild

Parsing abuild from Alpine Linux.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
2 2 0 1.4 dash -
6 4 2 2.9 bash -
8 5 3 3.4 zsh -
6 4 2 10.5 bumpleak/osh mut
7 4 3 11.4 _bin/cxx-opt+bumproot/osh mut
7 4 4 10.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
11 7 4 10.1 osh-native mut+alloc
9 5 5 10.2 osh-native mut+alloc+free
10 8 2 8.4 osh-native mut+alloc+free+gc
10 8 2 8.5 osh-native mut+alloc+free+gc+exit
13 5 8 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 11 1 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 6 2 9.6 osh-native-souffle mut+alloc
9 5 4 9.8 osh-native-souffle mut+alloc+free
9 7 3 7.9 osh-native-souffle mut+alloc+free+gc
10 9 1 8.1 osh-native-souffle mut+alloc+free+gc+exit

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 9 1 1.4 dash -
29 28 1 2.9 bash -
23 17 6 3.3 zsh -
19 14 5 32.1 bumpleak/osh mut
27 21 6 32.7 _bin/cxx-opt+bumproot/osh mut
29 24 5 31.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 29 8 26.2 osh-native mut+alloc
38 31 7 26.6 osh-native mut+alloc+free
29 25 4 8.1 osh-native mut+alloc+free+gc
30 27 3 8.0 osh-native mut+alloc+free+gc+exit
54 40 15 35.8 _bin/cxx-opt+nopool/osh mut+alloc
38 33 5 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 19 11 25.8 osh-native-souffle mut+alloc
32 22 10 26.1 osh-native-souffle mut+alloc+free
22 20 2 7.3 osh-native-souffle mut+alloc+free+gc
22 21 1 7.6 osh-native-souffle mut+alloc+free+gc+exit

ex.bashcomp-parse-help

A realistic bash-completion workload.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
75 66 8 3.0 bash -
173 113 60 57.2 bumpleak/osh mut
187 139 48 57.2 _bin/cxx-opt+bumproot/osh mut
200 134 66 57.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
221 147 74 48.6 osh-native mut+alloc
229 136 93 50.6 osh-native mut+alloc+free
189 134 55 8.8 osh-native mut+alloc+free+gc
188 146 42 8.7 osh-native mut+alloc+free+gc+exit
240 156 83 64.6 _bin/cxx-opt+nopool/osh mut+alloc
216 154 61 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
210 133 78 48.3 osh-native-souffle mut+alloc
216 139 77 50.2 osh-native-souffle mut+alloc+free
179 119 60 8.4 osh-native-souffle mut+alloc+free+gc
179 132 47 8.4 osh-native-souffle mut+alloc+free+gc+exit

ex.abuild-print-help

Running abuild -h from Alpine Linux.

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
9 1 9 3.5 dash -
21 12 9 4.3 bash -
18 6 12 3.5 zsh -
22 9 13 12.2 bumpleak/osh mut
23 11 12 13.2 _bin/cxx-opt+bumproot/osh mut
21 9 13 13.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 13 10 11.0 osh-native mut+alloc
24 11 13 11.1 osh-native mut+alloc+free
24 13 11 9.2 osh-native mut+alloc+free+gc
24 15 9 9.2 osh-native mut+alloc+free+gc+exit
26 12 15 12.6 _bin/cxx-opt+nopool/osh mut+alloc
27 16 11 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
22 10 12 10.7 osh-native-souffle mut+alloc
23 9 14 10.6 osh-native-souffle mut+alloc+free
23 12 12 8.7 osh-native-souffle mut+alloc+free+gc
23 12 12 8.7 osh-native-souffle mut+alloc+free+gc+exit