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 39 5 12 12.0 18.1 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 36 6 12 12.0 17.6 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 149 26 63 44.5 49.9 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 144 25 67 44.5 49.3 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 10 1 2 2.4 8.0 101,942 180 3 87,092 1 43,546 osh-native-souffle
ex.compute-fib 28 0 1 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 183 0 4 10.8 8.8 1,006,005 15,258 21 50,000 0 3,919 osh-native
ex.bashcomp-parse-help 175 0 4 10.8 8.4 1,006,004 15,258 21 50,000 0 3,842 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 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 -
23 23 0 3.0 bash -
106 61 51 3.4 zsh -
17 17 0 29.5 bumpleak/osh mut
20 16 4 28.5 _bin/cxx-opt+bumproot/osh mut
23 14 9 29.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
31 11 19 25.3 osh-native mut+alloc
33 28 4 25.7 osh-native mut+alloc+free
39 31 8 18.1 osh-native mut+alloc+free+gc
39 35 4 18.1 osh-native mut+alloc+free+gc+exit
44 20 24 32.2 _bin/cxx-opt+nopool/osh mut+alloc
55 47 8 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 15 12 24.8 osh-native-souffle mut+alloc
29 12 17 25.2 osh-native-souffle mut+alloc+free
36 32 4 17.6 osh-native-souffle mut+alloc+free+gc
37 33 4 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
22 18 4 1.6 dash -
78 78 0 3.0 bash -
378 249 150 3.5 zsh -
49 45 4 84.2 bumpleak/osh mut
60 44 16 85.7 _bin/cxx-opt+bumproot/osh mut
70 54 17 86.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 58 39 73.4 osh-native mut+alloc
106 66 39 75.2 osh-native mut+alloc+free
149 121 28 49.9 osh-native mut+alloc+free+gc
150 126 24 50.5 osh-native mut+alloc+free+gc+exit
138 98 39 98.0 _bin/cxx-opt+nopool/osh mut+alloc
213 180 32 67.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
86 39 47 73.0 osh-native-souffle mut+alloc
96 72 24 75.0 osh-native-souffle mut+alloc+free
144 116 28 49.3 osh-native-souffle mut+alloc+free+gc
157 124 32 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 -
6 6 0 3.0 bash -
8 4 4 3.3 zsh -
7 7 0 11.8 bumpleak/osh mut
7 7 0 10.9 _bin/cxx-opt+bumproot/osh mut
8 8 0 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 4 4 10.2 osh-native mut+alloc
9 5 5 10.4 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
9 5 5 8.5 osh-native mut+alloc+free+gc+exit
12 8 4 11.6 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 8 0 9.6 osh-native-souffle mut+alloc
9 9 0 9.3 osh-native-souffle mut+alloc+free
10 6 3 8.0 osh-native-souffle mut+alloc+free+gc
10 10 0 7.9 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 10 0 1.4 dash -
28 28 0 2.9 bash -
24 16 8 3.3 zsh -
19 11 8 32.2 bumpleak/osh mut
26 18 7 31.8 _bin/cxx-opt+bumproot/osh mut
28 24 4 32.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 32 4 26.3 osh-native mut+alloc
37 16 20 26.7 osh-native mut+alloc+free
28 24 4 8.1 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
57 32 24 36.0 _bin/cxx-opt+nopool/osh mut+alloc
37 32 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 17 13 26.0 osh-native-souffle mut+alloc
31 18 13 26.2 osh-native-souffle mut+alloc+free
22 21 0 7.6 osh-native-souffle mut+alloc+free+gc
22 18 4 7.6 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
74 66 8 3.0 bash -
169 94 75 56.4 bumpleak/osh mut
186 146 39 56.0 _bin/cxx-opt+bumproot/osh mut
200 132 68 57.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 138 75 48.2 osh-native mut+alloc
221 140 80 50.0 osh-native mut+alloc+free
183 131 52 8.8 osh-native mut+alloc+free+gc
183 102 81 8.5 osh-native mut+alloc+free+gc+exit
235 159 76 64.3 _bin/cxx-opt+nopool/osh mut+alloc
211 142 69 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
208 128 80 47.6 osh-native-souffle mut+alloc
214 137 76 49.5 osh-native-souffle mut+alloc+free
175 107 68 8.4 osh-native-souffle mut+alloc+free+gc
178 129 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
10 9 1 3.5 dash -
20 14 6 4.5 bash -
18 17 1 3.5 zsh -
20 14 6 12.4 bumpleak/osh mut
20 6 14 13.9 _bin/cxx-opt+bumproot/osh mut
21 11 11 13.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 13 9 11.0 osh-native mut+alloc
23 16 7 11.1 osh-native mut+alloc+free
22 11 12 9.0 osh-native mut+alloc+free+gc
23 11 13 9.2 osh-native mut+alloc+free+gc+exit
25 14 12 12.7 _bin/cxx-opt+nopool/osh mut+alloc
26 25 1 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
21 6 15 10.6 osh-native-souffle mut+alloc
21 6 16 10.7 osh-native-souffle mut+alloc+free
22 17 5 8.7 osh-native-souffle mut+alloc+free+gc
22 15 7 8.7 osh-native-souffle mut+alloc+free+gc+exit