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,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 32 3 9 12.0 17.6 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 159 27 73 44.5 49.7 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 145 24 68 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 8.0 101,942 180 3 87,092 1 43,546 osh-native-souffle
ex.compute-fib 28 0 2 2.1 7.9 579,606 22,608 12 50,000 0 2,919 osh-native
ex.compute-fib 23 0 1 2.1 7.6 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 182 0 4 10.8 8.9 1,006,005 15,258 21 50,000 0 3,919 osh-native
ex.bashcomp-parse-help 175 0 3 10.8 8.5 1,006,004 15,258 21 50,000 0 3,842 osh-native-souffle
ex.abuild-print-help 22 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.5 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 5 1 1.6 dash -
24 20 4 3.0 bash -
100 51 55 3.4 zsh -
16 14 2 29.1 bumpleak/osh mut
19 14 5 29.5 _bin/cxx-opt+bumproot/osh mut
22 20 2 30.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 18 11 25.2 osh-native mut+alloc
31 18 13 25.6 osh-native mut+alloc+free
36 29 7 17.8 osh-native mut+alloc+free+gc
38 35 3 18.0 osh-native mut+alloc+free+gc+exit
42 30 12 32.4 _bin/cxx-opt+nopool/osh mut+alloc
50 39 11 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 13 13 24.6 osh-native-souffle mut+alloc
29 19 10 25.2 osh-native-souffle mut+alloc+free
32 27 5 17.6 osh-native-souffle mut+alloc+free+gc
33 27 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 20 1 1.6 dash -
78 77 1 3.1 bash -
367 200 188 3.4 zsh -
49 37 12 84.4 bumpleak/osh mut
60 51 8 86.1 _bin/cxx-opt+bumproot/osh mut
70 59 11 85.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 68 28 73.5 osh-native mut+alloc
106 72 34 75.4 osh-native mut+alloc+free
159 135 24 49.7 osh-native mut+alloc+free+gc
166 133 34 50.5 osh-native mut+alloc+free+gc+exit
137 87 50 99.0 _bin/cxx-opt+nopool/osh mut+alloc
226 201 25 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 60 27 73.1 osh-native-souffle mut+alloc
94 59 34 75.0 osh-native-souffle mut+alloc+free
145 125 20 49.4 osh-native-souffle mut+alloc+free+gc
150 127 23 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 1 1 1.4 dash -
5 4 2 2.9 bash -
7 5 2 3.1 zsh -
6 4 2 11.1 bumpleak/osh mut
6 4 3 10.7 _bin/cxx-opt+bumproot/osh mut
8 3 5 11.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 4 5 10.0 osh-native mut+alloc
9 5 4 10.1 osh-native mut+alloc+free
9 7 2 8.5 osh-native mut+alloc+free+gc
10 6 3 8.4 osh-native mut+alloc+free+gc+exit
12 11 1 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 5 3 9.7 osh-native-souffle mut+alloc
8 6 2 9.7 osh-native-souffle mut+alloc+free
9 6 3 8.0 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 10 0 1.6 dash -
28 27 1 3.0 bash -
23 17 7 3.3 zsh -
19 13 6 32.3 bumpleak/osh mut
26 20 6 31.9 _bin/cxx-opt+bumproot/osh mut
28 23 5 32.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 24 13 26.3 osh-native mut+alloc
38 26 12 26.6 osh-native mut+alloc+free
28 26 2 7.9 osh-native mut+alloc+free+gc
29 26 3 7.9 osh-native mut+alloc+free+gc+exit
54 34 20 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 9.5 _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
23 22 1 7.6 osh-native-souffle mut+alloc+free+gc
21 19 3 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
73 70 3 3.1 bash -
164 110 54 56.2 bumpleak/osh mut
181 118 63 57.2 _bin/cxx-opt+bumproot/osh mut
195 133 63 57.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
216 136 80 48.2 osh-native mut+alloc
220 147 73 49.9 osh-native mut+alloc+free
182 128 54 8.9 osh-native mut+alloc+free+gc
184 130 53 8.8 osh-native mut+alloc+free+gc+exit
233 154 80 63.9 _bin/cxx-opt+nopool/osh mut+alloc
211 157 54 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 133 72 47.8 osh-native-souffle mut+alloc
212 147 65 49.6 osh-native-souffle mut+alloc+free
175 127 48 8.5 osh-native-souffle mut+alloc+free+gc
175 123 52 8.3 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.5 dash -
19 11 9 4.2 bash -
17 7 11 3.5 zsh -
19 8 12 12.8 bumpleak/osh mut
21 5 16 12.7 _bin/cxx-opt+bumproot/osh mut
21 9 13 13.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 4 18 11.1 osh-native mut+alloc
22 13 9 11.3 osh-native mut+alloc+free
22 9 13 9.2 osh-native mut+alloc+free+gc
23 11 12 9.2 osh-native mut+alloc+free+gc+exit
24 11 14 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 13 12 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 7 14 10.6 osh-native-souffle mut+alloc
21 11 11 10.6 osh-native-souffle mut+alloc+free
21 10 11 8.5 osh-native-souffle mut+alloc+free+gc
21 12 10 8.7 osh-native-souffle mut+alloc+free+gc+exit