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 38 5 11 12.0 18.2 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 33 4 10 12.0 17.3 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 144 23 59 44.5 49.6 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 137 23 62 44.5 49.4 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 7.9 101,942 180 3 87,092 1 43,546 osh-native-souffle
ex.compute-fib 28 0 1 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.6 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 179 0 3 10.9 8.9 1,017,204 15,258 21 50,000 0 3,900 osh-native
ex.bashcomp-parse-help 173 0 4 10.9 8.4 1,017,203 15,258 21 50,000 0 3,851 osh-native-souffle
ex.abuild-print-help 21 1 2 2.8 9.0 116,318 277 3 85,248 1 42,624 osh-native
ex.abuild-print-help 20 1 2 2.8 8.3 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 4 2 1.6 dash -
23 22 1 2.9 bash -
99 57 48 3.4 zsh -
16 12 4 29.1 bumpleak/osh mut
20 16 4 29.6 _bin/cxx-opt+bumproot/osh mut
23 14 8 30.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 18 11 25.2 osh-native mut+alloc
33 20 13 25.7 osh-native mut+alloc+free
38 31 7 18.2 osh-native mut+alloc+free+gc
36 26 10 18.1 osh-native mut+alloc+free+gc+exit
42 32 10 32.5 _bin/cxx-opt+nopool/osh mut+alloc
47 38 9 21.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 14 12 24.9 osh-native-souffle mut+alloc
29 20 9 25.3 osh-native-souffle mut+alloc+free
33 29 4 17.3 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 21 0 1.4 dash -
78 76 2 3.1 bash -
365 199 187 3.5 zsh -
49 43 5 84.1 bumpleak/osh mut
61 53 8 85.6 _bin/cxx-opt+bumproot/osh mut
71 63 8 86.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 68 28 73.7 osh-native mut+alloc
104 74 31 75.4 osh-native mut+alloc+free
144 125 19 49.6 osh-native mut+alloc+free+gc
151 131 20 50.6 osh-native mut+alloc+free+gc+exit
138 97 41 98.9 _bin/cxx-opt+nopool/osh mut+alloc
250 215 35 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
86 49 37 73.2 osh-native-souffle mut+alloc
95 61 33 75.0 osh-native-souffle mut+alloc+free
137 120 17 49.4 osh-native-souffle mut+alloc+free+gc
143 117 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 1 1 1.4 dash -
5 5 0 2.8 bash -
7 4 3 3.3 zsh -
6 3 3 12.2 bumpleak/osh mut
7 5 2 11.3 _bin/cxx-opt+bumproot/osh mut
8 6 2 11.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 6 3 10.1 osh-native mut+alloc
9 5 4 10.2 osh-native mut+alloc+free
9 6 3 8.5 osh-native mut+alloc+free+gc
9 7 2 8.4 osh-native mut+alloc+free+gc+exit
12 6 6 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.7 osh-native-souffle mut+alloc
8 6 2 9.8 osh-native-souffle mut+alloc+free
9 8 1 7.9 osh-native-souffle mut+alloc+free+gc
9 7 2 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 -
30 29 1 2.9 bash -
23 15 8 3.1 zsh -
18 15 3 30.9 bumpleak/osh mut
26 20 6 32.7 _bin/cxx-opt+bumproot/osh mut
28 25 3 32.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 25 12 26.5 osh-native mut+alloc
37 32 5 26.7 osh-native mut+alloc+free
28 26 2 8.1 osh-native mut+alloc+free+gc
28 26 2 8.0 osh-native mut+alloc+free+gc+exit
64 44 20 36.1 _bin/cxx-opt+nopool/osh mut+alloc
38 35 3 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 18 11 26.0 osh-native-souffle mut+alloc
31 20 11 26.3 osh-native-souffle mut+alloc+free
22 21 1 7.6 osh-native-souffle mut+alloc+free+gc
22 21 1 7.5 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
72 69 3 3.3 bash -
166 100 67 57.4 bumpleak/osh mut
181 120 61 56.3 _bin/cxx-opt+bumproot/osh mut
196 134 62 57.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 149 63 48.6 osh-native mut+alloc
216 144 72 50.5 osh-native mut+alloc+free
179 117 62 8.9 osh-native mut+alloc+free+gc
182 132 50 8.8 osh-native mut+alloc+free+gc+exit
234 168 66 64.4 _bin/cxx-opt+nopool/osh mut+alloc
214 160 54 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 137 67 48.3 osh-native-souffle mut+alloc
212 145 66 50.2 osh-native-souffle mut+alloc+free
173 121 52 8.4 osh-native-souffle mut+alloc+free+gc
173 126 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 4 6 3.4 dash -
19 9 11 4.5 bash -
17 8 9 3.5 zsh -
18 8 10 11.8 bumpleak/osh mut
20 9 12 13.3 _bin/cxx-opt+bumproot/osh mut
20 10 10 12.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 10 11 11.0 osh-native mut+alloc
22 8 14 11.1 osh-native mut+alloc+free
21 13 9 9.0 osh-native mut+alloc+free+gc
22 12 11 9.2 osh-native mut+alloc+free+gc+exit
24 9 16 12.7 _bin/cxx-opt+nopool/osh mut+alloc
24 14 10 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 8 12 10.6 osh-native-souffle mut+alloc
21 8 13 10.9 osh-native-souffle mut+alloc+free
20 12 9 8.3 osh-native-souffle mut+alloc+free+gc
21 13 8 8.7 osh-native-souffle mut+alloc+free+gc+exit