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 3 9 12.0 18.1 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 33 4 10 12.0 17.6 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 156 25 70 44.5 50.0 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 146 26 70 44.5 49.5 1,653,338 4,764 12 1,025,396 6 764,241 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,942 180 2 75,030 1 37,515 osh-native
parse.abuild 9 1 2 2.4 8.0 101,942 180 3 87,092 1 43,546 osh-native-souffle
ex.compute-fib 29 0 2 2.2 7.9 579,606 22,608 12 50,000 0 2,919 osh-native
ex.compute-fib 22 0 2 2.2 7.5 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 183 0 4 10.9 8.8 1,017,204 15,258 21 50,000 0 3,900 osh-native
ex.bashcomp-parse-help 175 0 4 10.9 8.4 1,017,203 15,258 21 50,000 0 3,851 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 9.2 116,318 277 3 85,248 1 42,624 osh-native
ex.abuild-print-help 21 1 2 2.8 8.8 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
6 6 0 1.6 dash -
23 22 1 3.1 bash -
103 54 55 3.4 zsh -
16 10 6 28.5 bumpleak/osh mut
20 18 2 29.7 _bin/cxx-opt+bumproot/osh mut
23 19 4 30.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 22 8 25.0 osh-native mut+alloc
32 22 10 25.7 osh-native mut+alloc+free
36 28 8 18.1 osh-native mut+alloc+free+gc
37 31 6 18.1 osh-native mut+alloc+free+gc+exit
42 28 15 32.3 _bin/cxx-opt+nopool/osh mut+alloc
48 41 7 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 17 10 24.9 osh-native-souffle mut+alloc
29 15 14 25.4 osh-native-souffle mut+alloc+free
33 28 5 17.6 osh-native-souffle mut+alloc+free+gc
34 26 8 17.8 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 19 2 1.6 dash -
78 77 1 3.3 bash -
372 206 187 3.5 zsh -
49 40 9 84.6 bumpleak/osh mut
61 52 9 86.5 _bin/cxx-opt+bumproot/osh mut
72 62 10 86.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 68 31 73.5 osh-native mut+alloc
107 72 35 75.4 osh-native mut+alloc+free
156 135 22 50.0 osh-native mut+alloc+free+gc
170 149 20 50.5 osh-native mut+alloc+free+gc+exit
137 99 38 99.0 _bin/cxx-opt+nopool/osh mut+alloc
225 192 33 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
86 55 31 73.1 osh-native-souffle mut+alloc
94 68 25 75.0 osh-native-souffle mut+alloc+free
146 119 27 49.5 osh-native-souffle mut+alloc+free+gc
152 126 26 50.1 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 -
5 5 0 3.0 bash -
7 4 3 3.4 zsh -
6 4 2 11.2 bumpleak/osh mut
7 3 3 12.6 _bin/cxx-opt+bumproot/osh mut
7 4 3 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 5 3 10.1 osh-native mut+alloc
9 7 2 10.1 osh-native mut+alloc+free
9 7 2 8.5 osh-native mut+alloc+free+gc
9 5 4 8.7 osh-native mut+alloc+free+gc+exit
12 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 10 2 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 5 3 9.6 osh-native-souffle mut+alloc
8 2 6 9.6 osh-native-souffle mut+alloc+free
9 6 4 8.0 osh-native-souffle mut+alloc+free+gc
9 7 2 7.9 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 8 2 1.4 dash -
28 27 1 3.0 bash -
23 15 8 3.4 zsh -
18 14 4 31.3 bumpleak/osh mut
26 23 3 31.9 _bin/cxx-opt+bumproot/osh mut
28 23 5 32.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
38 25 13 26.3 osh-native mut+alloc
38 26 12 26.6 osh-native mut+alloc+free
29 24 5 7.9 osh-native mut+alloc+free+gc
28 25 3 7.7 osh-native mut+alloc+free+gc+exit
54 35 19 36.1 _bin/cxx-opt+nopool/osh mut+alloc
37 34 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 21 9 26.1 osh-native-souffle mut+alloc
31 21 10 26.2 osh-native-souffle mut+alloc+free
22 19 3 7.5 osh-native-souffle mut+alloc+free+gc
22 19 3 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
73 70 3 3.1 bash -
167 105 62 57.0 bumpleak/osh mut
183 124 59 56.6 _bin/cxx-opt+bumproot/osh mut
197 136 61 57.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 134 79 48.7 osh-native mut+alloc
220 142 78 50.6 osh-native mut+alloc+free
183 141 42 8.8 osh-native mut+alloc+free+gc
183 132 50 8.9 osh-native mut+alloc+free+gc+exit
236 167 69 64.4 _bin/cxx-opt+nopool/osh mut+alloc
211 155 55 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 146 60 48.3 osh-native-souffle mut+alloc
211 133 77 50.0 osh-native-souffle mut+alloc+free
175 125 50 8.4 osh-native-souffle mut+alloc+free+gc
186 123 63 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
10 3 7 3.7 dash -
19 10 10 4.5 bash -
17 8 10 3.5 zsh -
19 9 10 11.9 bumpleak/osh mut
20 7 14 12.4 _bin/cxx-opt+bumproot/osh mut
21 13 8 12.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 11 11 11.0 osh-native mut+alloc
23 13 10 11.3 osh-native mut+alloc+free
23 11 13 9.2 osh-native mut+alloc+free+gc
23 11 13 8.9 osh-native mut+alloc+free+gc+exit
25 13 13 12.8 _bin/cxx-opt+nopool/osh mut+alloc
26 18 9 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 9 11 10.6 osh-native-souffle mut+alloc
22 7 15 10.6 osh-native-souffle mut+alloc+free
21 12 10 8.8 osh-native-souffle mut+alloc+free+gc
23 9 14 8.8 osh-native-souffle mut+alloc+free+gc+exit