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 17.8 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 153 26 69 44.5 49.7 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 152 25 76 44.5 49.5 1,653,338 4,764 12 1,025,396 6 764,241 osh-native-souffle
parse.abuild 9 1 1 2.6 8.7 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.1 8.0 579,606 22,608 12 50,000 0 2,919 osh-native
ex.compute-fib 22 0 2 2.1 7.5 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 180 0 4 10.8 8.8 1,006,005 15,258 21 50,000 0 3,919 osh-native
ex.bashcomp-parse-help 173 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 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 22 1 3.0 bash -
99 58 48 3.4 zsh -
16 13 3 27.9 bumpleak/osh mut
20 17 2 28.7 _bin/cxx-opt+bumproot/osh mut
22 15 8 28.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 23 6 25.0 osh-native mut+alloc
31 22 9 25.7 osh-native mut+alloc+free
35 29 6 17.8 osh-native mut+alloc+free+gc
38 27 11 18.2 osh-native mut+alloc+free+gc+exit
41 25 16 32.5 _bin/cxx-opt+nopool/osh mut+alloc
50 45 5 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 13 13 24.9 osh-native-souffle mut+alloc
28 21 7 25.3 osh-native-souffle mut+alloc+free
33 27 6 17.6 osh-native-souffle mut+alloc+free+gc
34 27 7 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 76 2 3.3 bash -
360 197 185 3.7 zsh -
48 40 7 84.3 bumpleak/osh mut
59 47 12 85.9 _bin/cxx-opt+bumproot/osh mut
71 63 8 85.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 61 35 73.4 osh-native mut+alloc
106 71 34 75.4 osh-native mut+alloc+free
153 130 23 49.7 osh-native mut+alloc+free+gc
151 134 16 50.3 osh-native mut+alloc+free+gc+exit
140 94 46 98.7 _bin/cxx-opt+nopool/osh mut+alloc
217 186 31 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
85 58 27 73.2 osh-native-souffle mut+alloc
94 62 31 75.0 osh-native-souffle mut+alloc+free
152 130 21 49.5 osh-native-souffle mut+alloc+free+gc
154 130 24 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.4 dash -
5 4 1 2.9 bash -
7 3 4 3.3 zsh -
6 2 4 11.3 bumpleak/osh mut
6 4 3 12.2 _bin/cxx-opt+bumproot/osh mut
7 5 2 10.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 6 2 9.8 osh-native mut+alloc
9 3 6 10.2 osh-native mut+alloc+free
9 7 2 8.7 osh-native mut+alloc+free+gc
9 7 2 8.7 osh-native mut+alloc+free+gc+exit
12 7 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 7 1 9.6 osh-native-souffle mut+alloc
8 4 4 9.7 osh-native-souffle mut+alloc+free
9 6 3 7.9 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 9 1 1.4 dash -
28 27 1 2.9 bash -
23 18 5 3.3 zsh -
18 13 5 32.8 bumpleak/osh mut
25 21 4 32.3 _bin/cxx-opt+bumproot/osh mut
28 23 5 32.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 24 13 26.2 osh-native mut+alloc
39 24 15 26.7 osh-native mut+alloc+free
28 26 2 8.0 osh-native mut+alloc+free+gc
29 26 3 8.0 osh-native mut+alloc+free+gc+exit
53 36 17 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 34 3 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 21 9 26.0 osh-native-souffle mut+alloc
31 20 12 26.3 osh-native-souffle mut+alloc+free
22 19 3 7.5 osh-native-souffle mut+alloc+free+gc
22 19 3 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 71 3 3.1 bash -
165 120 45 56.5 bumpleak/osh mut
180 130 50 57.2 _bin/cxx-opt+bumproot/osh mut
194 133 61 57.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 140 74 48.2 osh-native mut+alloc
217 151 66 50.0 osh-native mut+alloc+free
180 131 49 8.8 osh-native mut+alloc+free+gc
183 140 43 8.8 osh-native mut+alloc+free+gc+exit
233 145 88 64.0 _bin/cxx-opt+nopool/osh mut+alloc
214 165 49 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
203 138 65 47.6 osh-native-souffle mut+alloc
210 144 66 49.5 osh-native-souffle mut+alloc+free
173 134 39 8.4 osh-native-souffle mut+alloc+free+gc
173 124 49 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
9 4 6 3.4 dash -
19 10 9 4.2 bash -
17 5 12 3.4 zsh -
18 10 8 11.9 bumpleak/osh mut
21 12 9 13.1 _bin/cxx-opt+bumproot/osh mut
21 11 11 13.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 11 11 11.0 osh-native mut+alloc
22 10 13 11.3 osh-native mut+alloc+free
22 13 10 9.0 osh-native mut+alloc+free+gc
22 14 9 9.0 osh-native mut+alloc+free+gc+exit
24 12 13 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 14 11 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 5 15 10.6 osh-native-souffle mut+alloc
21 9 13 10.7 osh-native-souffle mut+alloc+free
21 11 11 8.7 osh-native-souffle mut+alloc+free+gc
22 10 12 8.5 osh-native-souffle mut+alloc+free+gc+exit