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 17.8 476,768 1,282 6 406,622 5 203,311 osh-native
parse.configure-cpython 33 4 10 12.0 17.6 476,768 1,282 6 406,612 5 203,306 osh-native-souffle
parse.configure-coreutils 246 60 150 44.5 49.6 1,653,356 4,764 12 1,025,544 6 764,315 osh-native
parse.configure-coreutils 153 28 76 44.5 49.6 1,653,355 4,764 12 1,025,534 6 764,310 osh-native-souffle
parse.abuild 10 1 1 2.6 8.4 101,959 180 2 75,048 1 37,524 osh-native
parse.abuild 8 1 1 2.6 8.3 101,959 180 2 75,038 1 37,519 osh-native-souffle
ex.compute-fib 28 0 1 2.2 8.1 579,723 22,608 12 50,000 0 2,928 osh-native
ex.compute-fib 22 0 1 2.2 7.6 579,723 22,608 12 50,000 0 2,923 osh-native-souffle
ex.bashcomp-parse-help 184 0 4 11.1 8.8 1,021,040 15,258 22 50,000 0 3,917 osh-native
ex.bashcomp-parse-help 175 0 4 11.1 8.4 1,021,039 15,258 22 50,000 0 3,917 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.2 116,358 277 3 85,266 1 42,633 osh-native
ex.abuild-print-help 21 1 2 2.8 8.8 116,358 277 3 85,256 1 42,628 osh-native-souffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 4 2 1.6 dash -
23 22 1 3.0 bash -
101 53 55 3.4 zsh -
17 11 6 28.4 bumpleak/osh mut
19 17 2 29.0 _bin/cxx-opt+bumproot/osh mut
23 20 3 30.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 21 9 25.0 osh-native mut+alloc
32 21 11 25.8 osh-native mut+alloc+free
36 28 8 17.8 osh-native mut+alloc+free+gc
37 30 7 18.0 osh-native mut+alloc+free+gc+exit
43 30 13 32.3 _bin/cxx-opt+nopool/osh mut+alloc
51 36 15 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
28 18 11 24.9 osh-native-souffle mut+alloc
29 18 11 25.3 osh-native-souffle mut+alloc+free
33 24 9 17.6 osh-native-souffle mut+alloc+free+gc
34 25 9 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 21 0 1.4 dash -
78 77 1 3.3 bash -
365 187 200 3.5 zsh -
49 40 9 85.0 bumpleak/osh mut
60 50 10 85.2 _bin/cxx-opt+bumproot/osh mut
72 63 9 86.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
102 68 34 73.7 osh-native mut+alloc
116 78 38 75.5 osh-native mut+alloc+free
246 225 21 49.6 osh-native mut+alloc+free+gc
169 150 19 50.3 osh-native mut+alloc+free+gc+exit
139 96 42 98.9 _bin/cxx-opt+nopool/osh mut+alloc
262 229 33 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 51 36 73.1 osh-native-souffle mut+alloc
96 57 39 75.0 osh-native-souffle mut+alloc+free
153 124 29 49.6 osh-native-souffle mut+alloc+free+gc
161 133 28 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 1 1 1.3 dash -
5 5 1 2.9 bash -
8 5 3 3.3 zsh -
6 5 1 10.5 bumpleak/osh mut
7 4 3 11.9 _bin/cxx-opt+bumproot/osh mut
8 5 2 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 6 2 10.0 osh-native mut+alloc
9 6 3 10.0 osh-native mut+alloc+free
10 6 4 8.4 osh-native mut+alloc+free+gc
9 5 4 8.8 osh-native mut+alloc+free+gc+exit
12 9 3 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 9 3 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 2 6 9.7 osh-native-souffle mut+alloc
8 7 1 9.8 osh-native-souffle mut+alloc+free
8 6 2 8.3 osh-native-souffle mut+alloc+free+gc
9 8 1 8.0 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 -
28 27 1 2.9 bash -
23 14 9 3.3 zsh -
18 14 4 31.0 bumpleak/osh mut
27 22 5 33.2 _bin/cxx-opt+bumproot/osh mut
28 22 6 32.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 22 16 26.5 osh-native mut+alloc
38 28 10 26.5 osh-native mut+alloc+free
28 25 3 8.1 osh-native mut+alloc+free+gc
29 25 4 8.0 osh-native mut+alloc+free+gc+exit
54 40 14 36.1 _bin/cxx-opt+nopool/osh mut+alloc
37 34 3 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 20 10 26.0 osh-native-souffle mut+alloc
31 18 14 26.2 osh-native-souffle mut+alloc+free
22 18 4 7.6 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 72 1 3.1 bash -
165 115 50 56.5 bumpleak/osh mut
181 133 48 57.2 _bin/cxx-opt+bumproot/osh mut
198 132 66 57.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
216 139 77 48.9 osh-native mut+alloc
223 159 64 50.8 osh-native mut+alloc+free
184 146 38 8.8 osh-native mut+alloc+free+gc
183 128 55 8.8 osh-native mut+alloc+free+gc+exit
235 155 81 64.5 _bin/cxx-opt+nopool/osh mut+alloc
213 158 55 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
206 133 73 48.5 osh-native-souffle mut+alloc
214 138 76 50.4 osh-native-souffle mut+alloc+free
175 126 49 8.4 osh-native-souffle mut+alloc+free+gc
174 133 41 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 6 4 3.4 dash -
19 10 9 4.5 bash -
17 6 12 3.5 zsh -
17 8 9 13.1 bumpleak/osh mut
19 10 9 14.0 _bin/cxx-opt+bumproot/osh mut
21 9 13 13.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 9 13 11.1 osh-native mut+alloc
22 9 13 11.1 osh-native mut+alloc+free
22 12 10 9.2 osh-native mut+alloc+free+gc
23 12 11 9.2 osh-native mut+alloc+free+gc+exit
25 8 17 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 13 13 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 9 12 10.6 osh-native-souffle mut+alloc
21 10 12 10.9 osh-native-souffle mut+alloc+free
21 10 12 8.8 osh-native-souffle mut+alloc+free+gc
22 10 12 8.7 osh-native-souffle mut+alloc+free+gc+exit