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 4 10 12.0 17.8 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 34 4 10 12.0 17.6 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 184 51 97 44.5 49.8 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 172 29 92 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.7 101,942 180 3 87,092 1 43,546 osh-native-souffle
ex.compute-fib 29 0 2 2.2 8.0 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 181 0 4 10.9 8.8 1,017,204 15,258 21 50,000 0 3,900 osh-native
ex.bashcomp-parse-help 177 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 -
23 21 2 3.1 bash -
102 56 53 3.4 zsh -
16 13 3 29.0 bumpleak/osh mut
20 16 4 29.9 _bin/cxx-opt+bumproot/osh mut
23 15 7 30.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 18 12 25.3 osh-native mut+alloc
32 20 12 25.7 osh-native mut+alloc+free
38 28 10 17.8 osh-native mut+alloc+free+gc
37 30 7 18.0 osh-native mut+alloc+free+gc+exit
43 29 14 32.4 _bin/cxx-opt+nopool/osh mut+alloc
53 43 10 21.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 19 8 24.9 osh-native-souffle mut+alloc
29 17 12 25.3 osh-native-souffle mut+alloc+free
34 26 8 17.6 osh-native-souffle mut+alloc+free+gc
36 29 8 17.6 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 -
78 78 0 3.1 bash -
369 191 200 3.5 zsh -
50 42 8 83.9 bumpleak/osh mut
60 51 9 85.1 _bin/cxx-opt+bumproot/osh mut
71 56 15 86.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 64 34 73.5 osh-native mut+alloc
117 78 40 75.2 osh-native mut+alloc+free
184 161 23 49.8 osh-native mut+alloc+free+gc
200 182 17 50.5 osh-native mut+alloc+free+gc+exit
138 97 42 99.0 _bin/cxx-opt+nopool/osh mut+alloc
216 188 28 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 52 36 73.0 osh-native-souffle mut+alloc
113 75 38 75.0 osh-native-souffle mut+alloc+free
172 149 23 49.4 osh-native-souffle mut+alloc+free+gc
163 143 20 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 -
6 6 0 3.0 bash -
7 5 3 3.3 zsh -
6 4 2 10.8 bumpleak/osh mut
7 4 2 11.1 _bin/cxx-opt+bumproot/osh mut
8 5 3 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 5 3 10.1 osh-native mut+alloc
9 5 4 10.1 osh-native mut+alloc+free
9 6 3 8.5 osh-native mut+alloc+free+gc
9 6 4 8.5 osh-native mut+alloc+free+gc+exit
12 7 5 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 6 2 9.7 osh-native-souffle mut+alloc
8 6 2 9.6 osh-native-souffle mut+alloc+free
9 6 4 7.7 osh-native-souffle mut+alloc+free+gc
9 7 3 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 -
28 26 2 2.8 bash -
23 18 5 3.3 zsh -
19 14 5 31.9 bumpleak/osh mut
27 25 2 31.6 _bin/cxx-opt+bumproot/osh mut
29 24 4 32.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 23 14 26.3 osh-native mut+alloc
40 30 10 26.7 osh-native mut+alloc+free
29 26 3 8.0 osh-native mut+alloc+free+gc
29 26 3 8.0 osh-native mut+alloc+free+gc+exit
54 37 16 35.9 _bin/cxx-opt+nopool/osh mut+alloc
38 35 3 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 21 10 26.0 osh-native-souffle mut+alloc
34 22 12 26.2 osh-native-souffle mut+alloc+free
22 21 1 7.6 osh-native-souffle mut+alloc+free+gc
23 21 2 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 -
168 123 45 55.6 bumpleak/osh mut
182 134 48 56.9 _bin/cxx-opt+bumproot/osh mut
197 139 58 57.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
216 143 69 48.6 osh-native mut+alloc
219 151 68 50.6 osh-native mut+alloc+free
181 120 61 8.8 osh-native mut+alloc+free+gc
185 139 46 8.8 osh-native mut+alloc+free+gc+exit
235 141 93 64.4 _bin/cxx-opt+nopool/osh mut+alloc
210 161 49 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 122 81 48.2 osh-native-souffle mut+alloc
219 139 80 50.2 osh-native-souffle mut+alloc+free
177 127 49 8.4 osh-native-souffle mut+alloc+free+gc
176 128 48 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 5 5 3.4 dash -
20 8 12 4.3 bash -
17 9 8 3.4 zsh -
18 5 13 13.2 bumpleak/osh mut
20 8 13 12.9 _bin/cxx-opt+bumproot/osh mut
21 11 11 13.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 9 12 11.0 osh-native mut+alloc
22 14 9 11.1 osh-native mut+alloc+free
22 13 10 9.0 osh-native mut+alloc+free+gc
23 13 10 9.0 osh-native mut+alloc+free+gc+exit
24 14 11 12.7 _bin/cxx-opt+nopool/osh mut+alloc
26 13 14 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 9 11 10.6 osh-native-souffle mut+alloc
21 9 13 10.7 osh-native-souffle mut+alloc+free
21 10 12 8.7 osh-native-souffle mut+alloc+free+gc
22 13 9 8.7 osh-native-souffle mut+alloc+free+gc+exit