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 35 3 9 12.0 18.0 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 151 24 65 44.5 49.9 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 146 25 70 44.5 49.4 1,653,338 4,764 12 1,025,396 6 764,241 osh-native-souffle
parse.abuild 10 1 1 2.6 8.4 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 7.9 579,606 22,608 12 50,000 0 2,919 osh-native
ex.compute-fib 21 0 2 2.2 7.5 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 182 0 4 10.9 8.9 1,017,204 15,258 21 50,000 0 3,900 osh-native
ex.bashcomp-parse-help 174 0 4 10.9 8.4 1,017,203 15,258 21 50,000 0 3,851 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.0 116,318 277 3 85,248 1 42,624 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 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 23 1 3.1 bash -
100 62 45 3.4 zsh -
16 13 3 27.9 bumpleak/osh mut
19 16 3 29.0 _bin/cxx-opt+bumproot/osh mut
22 18 4 30.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 18 11 25.2 osh-native mut+alloc
31 19 12 25.6 osh-native mut+alloc+free
35 29 6 18.0 osh-native mut+alloc+free+gc
36 28 8 18.0 osh-native mut+alloc+free+gc+exit
42 29 13 32.4 _bin/cxx-opt+nopool/osh mut+alloc
48 37 11 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 16 10 24.8 osh-native-souffle mut+alloc
28 17 11 25.4 osh-native-souffle mut+alloc+free
33 23 10 17.6 osh-native-souffle mut+alloc+free+gc
34 25 9 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 -
366 195 191 3.5 zsh -
48 39 9 86.0 bumpleak/osh mut
60 50 10 85.6 _bin/cxx-opt+bumproot/osh mut
72 62 10 85.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 64 32 73.4 osh-native mut+alloc
104 63 41 75.4 osh-native mut+alloc+free
151 126 25 49.9 osh-native mut+alloc+free+gc
158 132 26 50.5 osh-native mut+alloc+free+gc+exit
138 105 33 98.8 _bin/cxx-opt+nopool/osh mut+alloc
215 187 28 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
86 58 28 73.1 osh-native-souffle mut+alloc
96 53 43 75.0 osh-native-souffle mut+alloc+free
146 122 24 49.4 osh-native-souffle mut+alloc+free+gc
151 128 23 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 4 2 3.0 bash -
7 4 3 3.3 zsh -
6 4 2 11.0 bumpleak/osh mut
6 4 3 12.3 _bin/cxx-opt+bumproot/osh mut
8 8 0 11.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 6 3 10.1 osh-native mut+alloc
9 4 4 10.4 osh-native mut+alloc+free
10 7 3 8.4 osh-native mut+alloc+free+gc
9 6 3 8.5 osh-native mut+alloc+free+gc+exit
12 8 4 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 9 3 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 6 3 9.7 osh-native-souffle mut+alloc
8 4 4 9.8 osh-native-souffle mut+alloc+free
9 8 1 7.9 osh-native-souffle mut+alloc+free+gc
9 5 4 8.1 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 25 3 2.9 bash -
23 20 3 3.3 zsh -
18 16 2 31.9 bumpleak/osh mut
26 23 3 32.4 _bin/cxx-opt+bumproot/osh mut
28 27 1 32.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 26 10 26.2 osh-native mut+alloc
38 26 12 26.7 osh-native mut+alloc+free
28 26 2 7.9 osh-native mut+alloc+free+gc
28 26 2 8.0 osh-native mut+alloc+free+gc+exit
53 39 14 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 21 8 25.8 osh-native-souffle mut+alloc
32 25 7 26.3 osh-native-souffle mut+alloc+free
21 21 0 7.5 osh-native-souffle mut+alloc+free+gc
22 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 69 4 3.0 bash -
165 116 49 57.3 bumpleak/osh mut
181 126 55 56.5 _bin/cxx-opt+bumproot/osh mut
197 127 70 57.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
215 139 76 48.7 osh-native mut+alloc
220 161 59 50.4 osh-native mut+alloc+free
182 121 61 8.9 osh-native mut+alloc+free+gc
184 124 60 8.7 osh-native mut+alloc+free+gc+exit
235 151 84 64.6 _bin/cxx-opt+nopool/osh mut+alloc
210 169 41 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 148 57 48.3 osh-native-souffle mut+alloc
214 138 76 50.2 osh-native-souffle mut+alloc+free
174 120 54 8.4 osh-native-souffle mut+alloc+free+gc
177 127 50 8.1 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 5 3.5 dash -
19 10 9 4.3 bash -
17 8 9 3.5 zsh -
18 10 8 11.6 bumpleak/osh mut
20 9 12 12.9 _bin/cxx-opt+bumproot/osh mut
20 8 13 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 10 11 11.1 osh-native mut+alloc
22 14 8 11.1 osh-native mut+alloc+free
22 16 6 9.0 osh-native mut+alloc+free+gc
22 10 13 8.9 osh-native mut+alloc+free+gc+exit
24 13 12 12.6 _bin/cxx-opt+nopool/osh mut+alloc
25 15 10 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 12 9 10.5 osh-native-souffle mut+alloc
21 10 11 10.7 osh-native-souffle mut+alloc+free
21 11 10 8.7 osh-native-souffle mut+alloc+free+gc
21 13 9 8.7 osh-native-souffle mut+alloc+free+gc+exit