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 37 4 10 12.0 18.1 476,744 1,282 6 406,316 5 203,158 osh-native
parse.configure-cpython 36 5 12 12.0 17.4 476,744 1,282 6 406,186 5 203,093 osh-native-souffle
parse.configure-coreutils 177 28 89 44.5 49.8 1,653,332 4,764 12 1,025,512 6 764,299 osh-native
parse.configure-coreutils 152 26 73 45.9 50.9 1,653,331 4,764 12 1,063,842 6 792,359 osh-native-souffle
parse.abuild 10 1 2 2.6 8.5 101,935 180 2 75,016 1 37,508 osh-native
parse.abuild 10 1 2 2.4 7.9 101,935 180 3 87,078 1 43,539 osh-native-souffle
ex.compute-fib 28 0 2 2.1 7.9 579,599 22,608 12 50,000 0 2,912 osh-native
ex.compute-fib 22 0 2 2.1 7.6 579,599 22,608 12 50,000 0 2,850 osh-native-souffle
ex.bashcomp-parse-help 182 0 4 10.3 8.8 995,281 15,258 21 50,000 0 3,894 osh-native
ex.bashcomp-parse-help 176 0 4 10.3 8.3 995,280 15,258 21 50,000 0 3,839 osh-native-souffle
ex.abuild-print-help 24 1 2 2.8 9.0 116,311 277 3 85,234 1 42,617 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 116,311 277 3 85,110 1 42,555 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.4 dash -
24 20 4 3.1 bash -
105 60 51 3.4 zsh -
17 12 4 29.8 bumpleak/osh mut
20 16 4 28.5 _bin/cxx-opt+bumproot/osh mut
23 19 4 29.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 17 13 25.2 osh-native mut+alloc
31 23 8 25.6 osh-native mut+alloc+free
37 24 12 18.1 osh-native mut+alloc+free+gc
39 30 8 18.1 osh-native mut+alloc+free+gc+exit
44 28 16 32.4 _bin/cxx-opt+nopool/osh mut+alloc
54 42 12 22.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 19 8 24.9 osh-native-souffle mut+alloc
30 21 8 25.3 osh-native-souffle mut+alloc+free
36 36 0 17.4 osh-native-souffle mut+alloc+free+gc
39 32 8 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 -
77 77 0 3.1 bash -
381 212 192 3.5 zsh -
50 42 8 85.9 bumpleak/osh mut
61 52 8 86.5 _bin/cxx-opt+bumproot/osh mut
73 44 28 85.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 74 23 73.5 osh-native mut+alloc
108 60 48 75.2 osh-native mut+alloc+free
177 161 16 49.8 osh-native mut+alloc+free+gc
170 154 16 50.3 osh-native mut+alloc+free+gc+exit
137 93 44 97.6 _bin/cxx-opt+nopool/osh mut+alloc
240 204 36 67.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
89 48 40 73.1 osh-native-souffle mut+alloc
95 59 36 75.0 osh-native-souffle mut+alloc+free
152 140 12 50.9 osh-native-souffle mut+alloc+free+gc
157 126 31 51.6 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 0 2 1.3 dash -
6 3 3 3.0 bash -
8 8 0 3.1 zsh -
6 6 0 12.1 bumpleak/osh mut
7 3 3 12.3 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 9.8 osh-native mut+alloc
9 3 6 10.2 osh-native mut+alloc+free
10 6 3 8.5 osh-native mut+alloc+free+gc
10 10 0 8.4 osh-native mut+alloc+free+gc+exit
13 4 8 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 12 0 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.6 osh-native-souffle mut+alloc
9 0 8 9.8 osh-native-souffle mut+alloc+free
10 6 3 7.9 osh-native-souffle mut+alloc+free+gc
10 10 0 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 10 0 1.4 dash -
29 28 0 2.9 bash -
24 23 0 3.4 zsh -
18 14 4 30.7 bumpleak/osh mut
26 21 4 32.6 _bin/cxx-opt+bumproot/osh mut
28 24 4 32.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 28 8 26.3 osh-native mut+alloc
38 30 8 26.6 osh-native mut+alloc+free
28 28 0 7.9 osh-native mut+alloc+free+gc
29 28 0 8.0 osh-native mut+alloc+free+gc+exit
55 39 16 36.0 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 30 0 25.8 osh-native-souffle mut+alloc
32 24 8 26.2 osh-native-souffle mut+alloc+free
22 22 0 7.6 osh-native-souffle mut+alloc+free+gc
22 18 4 7.3 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 73 0 3.1 bash -
170 101 68 54.4 bumpleak/osh mut
187 107 79 55.4 _bin/cxx-opt+bumproot/osh mut
197 120 76 56.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 153 61 47.3 osh-native mut+alloc
219 143 76 49.0 osh-native mut+alloc+free
182 141 40 8.8 osh-native mut+alloc+free+gc
184 131 52 8.9 osh-native mut+alloc+free+gc+exit
232 164 68 64.3 _bin/cxx-opt+nopool/osh mut+alloc
210 165 44 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
202 141 61 47.0 osh-native-souffle mut+alloc
213 156 56 48.6 osh-native-souffle mut+alloc+free
176 120 56 8.3 osh-native-souffle mut+alloc+free+gc
175 118 57 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 9 1 3.4 dash -
19 12 8 4.5 bash -
18 11 7 3.4 zsh -
20 6 14 12.9 bumpleak/osh mut
20 13 7 13.8 _bin/cxx-opt+bumproot/osh mut
22 20 3 13.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 10 12 11.0 osh-native mut+alloc
23 12 11 11.1 osh-native mut+alloc+free
24 11 13 9.0 osh-native mut+alloc+free+gc
24 23 1 9.2 osh-native mut+alloc+free+gc+exit
25 23 2 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 16 10 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
21 13 8 10.6 osh-native-souffle mut+alloc
22 14 8 10.6 osh-native-souffle mut+alloc+free
21 8 14 8.7 osh-native-souffle mut+alloc+free+gc
22 17 5 8.7 osh-native-souffle mut+alloc+free+gc+exit