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 42 6 14 12.0 18.2 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 36 6 12 12.0 17.4 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 179 29 90 44.5 49.9 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 176 30 94 44.5 49.4 1,653,338 4,764 12 1,025,396 6 764,241 osh-native-souffle
parse.abuild 11 1 2 2.6 8.7 101,942 180 2 75,030 1 37,515 osh-native
parse.abuild 10 1 2 2.4 8.0 101,942 180 3 87,092 1 43,546 osh-native-souffle
ex.compute-fib 29 0 2 2.1 8.1 579,606 22,608 12 50,000 0 2,919 osh-native
ex.compute-fib 22 0 2 2.1 7.6 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 189 0 4 10.8 8.9 1,006,008 15,258 21 50,000 0 3,919 osh-native
ex.bashcomp-parse-help 182 0 5 10.8 8.4 1,006,007 15,258 21 50,000 0 3,842 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 9.2 116,318 277 3 85,248 1 42,624 osh-native
ex.abuild-print-help 22 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 6 0 1.6 dash -
24 24 0 3.0 bash -
108 72 42 3.4 zsh -
17 17 0 29.8 bumpleak/osh mut
19 11 8 29.1 _bin/cxx-opt+bumproot/osh mut
25 20 4 28.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 21 9 25.3 osh-native mut+alloc
32 20 12 25.7 osh-native mut+alloc+free
42 27 15 18.2 osh-native mut+alloc+free+gc
43 35 8 18.2 osh-native mut+alloc+free+gc+exit
45 32 12 33.1 _bin/cxx-opt+nopool/osh mut+alloc
58 43 16 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 23 5 24.9 osh-native-souffle mut+alloc
30 25 4 25.3 osh-native-souffle mut+alloc+free
36 24 12 17.4 osh-native-souffle mut+alloc+free+gc
39 38 0 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.4 dash -
78 78 0 3.0 bash -
390 227 186 3.5 zsh -
49 48 0 85.2 bumpleak/osh mut
60 52 8 86.3 _bin/cxx-opt+bumproot/osh mut
71 67 4 85.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 67 31 73.4 osh-native mut+alloc
109 61 48 75.2 osh-native mut+alloc+free
179 159 20 49.9 osh-native mut+alloc+free+gc
189 161 28 50.4 osh-native mut+alloc+free+gc+exit
140 116 24 99.8 _bin/cxx-opt+nopool/osh mut+alloc
260 236 24 68.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 48 40 73.1 osh-native-souffle mut+alloc
100 68 32 75.0 osh-native-souffle mut+alloc+free
176 148 28 49.4 osh-native-souffle mut+alloc+free+gc
175 159 16 49.9 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.4 dash -
6 3 3 2.9 bash -
8 8 0 3.4 zsh -
6 3 3 11.3 bumpleak/osh mut
8 4 4 11.8 _bin/cxx-opt+bumproot/osh mut
8 8 0 11.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 3 6 10.0 osh-native mut+alloc
9 3 6 10.1 osh-native mut+alloc+free
11 3 7 8.7 osh-native mut+alloc+free+gc
10 5 5 8.8 osh-native mut+alloc+free+gc+exit
12 0 12 11.4 _bin/cxx-opt+nopool/osh mut+alloc
13 12 0 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 8 0 9.6 osh-native-souffle mut+alloc
9 8 0 9.8 osh-native-souffle mut+alloc+free
10 6 3 8.0 osh-native-souffle mut+alloc+free+gc
10 5 5 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
11 11 0 1.4 dash -
29 29 0 2.9 bash -
24 20 4 3.3 zsh -
19 15 4 32.2 bumpleak/osh mut
26 22 4 33.0 _bin/cxx-opt+bumproot/osh mut
29 25 4 33.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
38 33 4 26.2 osh-native mut+alloc
38 26 11 26.6 osh-native mut+alloc+free
29 28 0 8.1 osh-native mut+alloc+free+gc
29 28 0 7.9 osh-native mut+alloc+free+gc+exit
56 44 12 35.8 _bin/cxx-opt+nopool/osh mut+alloc
39 34 4 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 22 9 26.0 osh-native-souffle mut+alloc
32 20 12 26.1 osh-native-souffle mut+alloc+free
22 22 0 7.6 osh-native-souffle mut+alloc+free+gc
22 22 0 7.7 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 -
171 107 64 55.5 bumpleak/osh mut
184 84 100 55.4 _bin/cxx-opt+bumproot/osh mut
200 140 60 57.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
219 163 56 48.0 osh-native mut+alloc
228 160 68 50.1 osh-native mut+alloc+free
189 96 92 8.9 osh-native mut+alloc+free+gc
185 137 48 8.8 osh-native mut+alloc+free+gc+exit
241 180 60 64.5 _bin/cxx-opt+nopool/osh mut+alloc
230 163 68 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
210 146 63 47.8 osh-native-souffle mut+alloc
219 123 95 49.5 osh-native-souffle mut+alloc+free
182 113 69 8.4 osh-native-souffle mut+alloc+free+gc
178 127 51 8.5 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 8 2 3.5 dash -
20 18 3 4.3 bash -
19 12 7 3.4 zsh -
19 17 2 11.7 bumpleak/osh mut
20 15 5 13.7 _bin/cxx-opt+bumproot/osh mut
22 21 2 13.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 11 11 11.1 osh-native mut+alloc
23 17 7 11.1 osh-native mut+alloc+free
23 18 7 9.2 osh-native mut+alloc+free+gc
24 18 7 9.0 osh-native mut+alloc+free+gc+exit
25 16 10 12.8 _bin/cxx-opt+nopool/osh mut+alloc
28 22 6 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
21 11 11 10.6 osh-native-souffle mut+alloc
22 14 9 10.9 osh-native-souffle mut+alloc+free
22 19 3 8.7 osh-native-souffle mut+alloc+free+gc
23 18 6 8.5 osh-native-souffle mut+alloc+free+gc+exit