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 18.0 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 32 3 9 12.0 17.6 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 149 23 61 44.5 50.0 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 130 22 55 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.7 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 28 0 2 2.2 8.0 579,606 22,608 12 50,000 0 2,919 osh-native
ex.compute-fib 22 0 1 2.2 7.6 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 182 0 3 10.9 8.7 1,017,204 15,258 21 50,000 0 3,900 osh-native
ex.bashcomp-parse-help 172 0 3 10.9 8.1 1,017,203 15,258 21 50,000 0 3,851 osh-native-souffle
ex.abuild-print-help 21 1 2 2.8 9.0 116,318 277 3 85,248 1 42,624 osh-native
ex.abuild-print-help 20 1 2 2.8 8.5 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 -
101 57 50 3.4 zsh -
16 11 5 29.7 bumpleak/osh mut
19 15 4 29.4 _bin/cxx-opt+bumproot/osh mut
22 20 2 30.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 24 6 25.2 osh-native mut+alloc
31 20 11 25.6 osh-native mut+alloc+free
35 26 8 18.0 osh-native mut+alloc+free+gc
36 29 7 18.1 osh-native mut+alloc+free+gc+exit
42 30 12 32.4 _bin/cxx-opt+nopool/osh mut+alloc
47 35 12 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 16 11 24.9 osh-native-souffle mut+alloc
28 20 8 25.2 osh-native-souffle mut+alloc+free
32 23 8 17.6 osh-native-souffle mut+alloc+free+gc
33 25 8 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 19 2 1.6 dash -
78 78 0 3.1 bash -
363 188 197 3.5 zsh -
48 39 9 84.4 bumpleak/osh mut
60 47 12 86.3 _bin/cxx-opt+bumproot/osh mut
71 57 14 85.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
110 75 34 73.6 osh-native mut+alloc
112 74 37 75.4 osh-native mut+alloc+free
149 122 27 50.0 osh-native mut+alloc+free+gc
152 131 21 50.5 osh-native mut+alloc+free+gc+exit
136 87 50 99.0 _bin/cxx-opt+nopool/osh mut+alloc
201 173 28 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 55 32 73.0 osh-native-souffle mut+alloc
94 64 30 74.8 osh-native-souffle mut+alloc+free
130 107 22 49.4 osh-native-souffle mut+alloc+free+gc
135 111 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.3 dash -
5 5 0 2.9 bash -
7 6 1 3.4 zsh -
6 3 2 10.9 bumpleak/osh mut
6 5 2 11.2 _bin/cxx-opt+bumproot/osh mut
7 5 2 12.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.0 osh-native mut+alloc
8 5 3 10.1 osh-native mut+alloc+free
9 6 3 8.7 osh-native mut+alloc+free+gc
9 8 1 8.7 osh-native mut+alloc+free+gc+exit
11 7 4 11.6 _bin/cxx-opt+nopool/osh mut+alloc
11 7 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 5 2 9.7 osh-native-souffle mut+alloc
8 5 3 9.8 osh-native-souffle mut+alloc+free
9 8 1 7.7 osh-native-souffle mut+alloc+free+gc
9 8 1 8.1 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 28 0 3.0 bash -
23 19 4 3.3 zsh -
18 13 5 31.1 bumpleak/osh mut
26 21 5 31.5 _bin/cxx-opt+bumproot/osh mut
28 26 2 32.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 26 11 26.3 osh-native mut+alloc
37 30 7 26.6 osh-native mut+alloc+free
28 26 2 8.0 osh-native mut+alloc+free+gc
28 27 1 8.1 osh-native mut+alloc+free+gc+exit
53 37 16 36.1 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 16 14 26.0 osh-native-souffle mut+alloc
31 21 10 26.2 osh-native-souffle mut+alloc+free
22 20 2 7.6 osh-native-souffle mut+alloc+free+gc
21 18 3 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
72 71 1 3.1 bash -
165 113 52 55.8 bumpleak/osh mut
179 120 59 57.2 _bin/cxx-opt+bumproot/osh mut
195 134 61 58.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 131 81 48.7 osh-native mut+alloc
219 139 80 50.7 osh-native mut+alloc+free
182 130 52 8.7 osh-native mut+alloc+free+gc
181 128 53 8.8 osh-native mut+alloc+free+gc+exit
235 155 80 64.6 _bin/cxx-opt+nopool/osh mut+alloc
210 156 54 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 139 65 48.2 osh-native-souffle mut+alloc
211 148 63 50.0 osh-native-souffle mut+alloc+free
172 129 44 8.1 osh-native-souffle mut+alloc+free+gc
173 113 59 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 4 5 3.4 dash -
19 10 9 4.5 bash -
17 9 9 3.5 zsh -
17 10 8 13.1 bumpleak/osh mut
20 8 12 12.6 _bin/cxx-opt+bumproot/osh mut
21 7 15 13.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 9 12 11.0 osh-native mut+alloc
22 7 15 11.1 osh-native mut+alloc+free
21 14 8 9.0 osh-native mut+alloc+free+gc
22 13 10 9.2 osh-native mut+alloc+free+gc+exit
24 10 14 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 15 10 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 11 9 10.6 osh-native-souffle mut+alloc
20 8 13 10.6 osh-native-souffle mut+alloc+free
20 10 11 8.5 osh-native-souffle mut+alloc+free+gc
21 11 10 8.8 osh-native-souffle mut+alloc+free+gc+exit