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 34 4 11 12.0 17.6 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 142 22 57 44.5 49.7 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 133 22 59 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 9 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.2 7.9 579,606 22,608 12 50,000 0 2,919 osh-native
ex.compute-fib 21 0 2 2.2 7.6 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 183 0 3 10.9 8.8 1,017,204 15,258 21 50,000 0 3,900 osh-native
ex.bashcomp-parse-help 172 0 4 10.9 8.4 1,017,203 15,258 21 50,000 0 3,851 osh-native-souffle
ex.abuild-print-help 21 1 2 2.8 8.9 116,318 277 3 85,248 1 42,624 osh-native
ex.abuild-print-help 20 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.0 bash -
99 53 53 3.4 zsh -
16 10 6 28.9 bumpleak/osh mut
20 16 4 28.9 _bin/cxx-opt+bumproot/osh mut
22 16 6 29.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 19 10 25.2 osh-native mut+alloc
31 22 9 25.8 osh-native mut+alloc+free
35 29 6 17.8 osh-native mut+alloc+free+gc
35 30 5 18.1 osh-native mut+alloc+free+gc+exit
42 27 15 32.4 _bin/cxx-opt+nopool/osh mut+alloc
46 38 9 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 17 9 24.6 osh-native-souffle mut+alloc
28 21 7 25.3 osh-native-souffle mut+alloc+free
34 27 6 17.6 osh-native-souffle mut+alloc+free+gc
33 31 2 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.1 bash -
361 202 179 3.4 zsh -
48 41 7 86.0 bumpleak/osh mut
58 50 8 86.3 _bin/cxx-opt+bumproot/osh mut
69 60 9 86.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 65 32 73.4 osh-native mut+alloc
105 79 26 75.4 osh-native mut+alloc+free
142 120 23 49.7 osh-native mut+alloc+free+gc
148 124 24 50.5 osh-native mut+alloc+free+gc+exit
139 99 40 98.9 _bin/cxx-opt+nopool/osh mut+alloc
197 173 24 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
86 48 38 73.1 osh-native-souffle mut+alloc
94 62 33 74.8 osh-native-souffle mut+alloc+free
133 113 20 49.3 osh-native-souffle mut+alloc+free+gc
140 117 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 1 1 1.4 dash -
5 4 1 3.0 bash -
7 0 7 3.3 zsh -
6 4 2 11.9 bumpleak/osh mut
6 4 2 10.8 _bin/cxx-opt+bumproot/osh mut
7 6 1 11.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 6 2 10.0 osh-native mut+alloc
9 6 3 10.1 osh-native mut+alloc+free
9 4 5 8.5 osh-native mut+alloc+free+gc
9 8 1 8.7 osh-native mut+alloc+free+gc+exit
12 6 6 11.5 _bin/cxx-opt+nopool/osh mut+alloc
11 10 1 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
7 7 0 9.4 osh-native-souffle mut+alloc
8 6 2 9.8 osh-native-souffle mut+alloc+free
9 5 4 8.0 osh-native-souffle mut+alloc+free+gc
9 8 1 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 10 0 1.4 dash -
28 27 1 3.0 bash -
23 17 6 3.3 zsh -
18 14 4 31.4 bumpleak/osh mut
26 24 2 33.0 _bin/cxx-opt+bumproot/osh mut
28 22 6 31.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 29 7 26.5 osh-native mut+alloc
37 26 10 26.6 osh-native mut+alloc+free
28 25 3 7.9 osh-native mut+alloc+free+gc
28 26 2 8.0 osh-native mut+alloc+free+gc+exit
53 31 22 36.1 _bin/cxx-opt+nopool/osh mut+alloc
37 31 6 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 25 5 25.8 osh-native-souffle mut+alloc
30 23 7 26.1 osh-native-souffle mut+alloc+free
21 19 2 7.6 osh-native-souffle mut+alloc+free+gc
20 18 2 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
71 67 4 3.3 bash -
163 117 46 56.2 bumpleak/osh mut
180 122 57 57.6 _bin/cxx-opt+bumproot/osh mut
194 130 64 58.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 131 82 48.7 osh-native mut+alloc
216 145 71 50.6 osh-native mut+alloc+free
183 128 55 8.8 osh-native mut+alloc+free+gc
181 116 65 8.8 osh-native mut+alloc+free+gc+exit
231 156 75 64.4 _bin/cxx-opt+nopool/osh mut+alloc
206 139 68 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
202 130 72 48.2 osh-native-souffle mut+alloc
207 138 70 50.0 osh-native-souffle mut+alloc+free
172 125 47 8.4 osh-native-souffle mut+alloc+free+gc
172 127 45 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 3 6 3.5 dash -
18 12 7 4.3 bash -
17 8 10 3.5 zsh -
17 5 13 11.4 bumpleak/osh mut
20 11 9 13.4 _bin/cxx-opt+bumproot/osh mut
19 9 10 14.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 13 8 11.1 osh-native mut+alloc
21 12 10 11.3 osh-native mut+alloc+free
21 10 11 8.9 osh-native mut+alloc+free+gc
21 14 8 8.9 osh-native mut+alloc+free+gc+exit
24 10 15 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 12 13 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 9 11 10.6 osh-native-souffle mut+alloc
20 8 12 10.7 osh-native-souffle mut+alloc+free
20 12 9 8.7 osh-native-souffle mut+alloc+free+gc
21 12 10 8.7 osh-native-souffle mut+alloc+free+gc+exit