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.4 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 145 22 59 44.5 49.8 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 140 22 64 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.5 101,942 180 2 75,030 1 37,515 osh-native
parse.abuild 9 1 2 2.4 8.1 101,942 180 3 87,092 1 43,546 osh-native-souffle
ex.compute-fib 28 0 1 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 181 0 3 10.9 8.9 1,017,204 15,258 21 50,000 0 3,900 osh-native
ex.bashcomp-parse-help 175 0 3 10.9 8.4 1,017,203 15,258 21 50,000 0 3,851 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.4 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.4 dash -
23 22 1 3.1 bash -
100 50 57 3.4 zsh -
17 12 5 28.2 bumpleak/osh mut
19 16 3 30.0 _bin/cxx-opt+bumproot/osh mut
22 18 4 29.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
31 25 6 25.2 osh-native mut+alloc
31 21 10 25.7 osh-native mut+alloc+free
35 29 6 18.0 osh-native mut+alloc+free+gc
36 29 7 18.0 osh-native mut+alloc+free+gc+exit
42 23 19 32.4 _bin/cxx-opt+nopool/osh mut+alloc
47 41 6 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 19 7 24.9 osh-native-souffle mut+alloc
28 16 13 25.3 osh-native-souffle mut+alloc+free
32 27 5 17.4 osh-native-souffle mut+alloc+free+gc
33 25 8 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
21 21 0 1.6 dash -
77 75 2 3.3 bash -
363 218 167 3.5 zsh -
48 39 9 85.8 bumpleak/osh mut
58 46 13 85.5 _bin/cxx-opt+bumproot/osh mut
69 58 11 85.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 68 31 73.5 osh-native mut+alloc
106 68 37 75.2 osh-native mut+alloc+free
145 121 24 49.8 osh-native mut+alloc+free+gc
151 126 25 50.5 osh-native mut+alloc+free+gc+exit
134 93 41 98.9 _bin/cxx-opt+nopool/osh mut+alloc
228 197 31 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 57 31 73.1 osh-native-souffle mut+alloc
94 62 32 75.0 osh-native-souffle mut+alloc+free
140 121 19 49.4 osh-native-souffle mut+alloc+free+gc
138 116 22 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 2 0 1.4 dash -
5 4 1 2.9 bash -
7 6 1 3.3 zsh -
6 6 0 12.3 bumpleak/osh mut
7 7 0 10.9 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 5 4 10.1 osh-native mut+alloc
8 6 2 10.1 osh-native mut+alloc+free
9 7 2 8.5 osh-native mut+alloc+free+gc
9 6 3 8.5 osh-native mut+alloc+free+gc+exit
12 5 7 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 7 4 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 1 7 9.7 osh-native-souffle mut+alloc
8 5 3 9.8 osh-native-souffle mut+alloc+free
9 7 2 8.1 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 11 0 1.6 dash -
28 27 1 2.9 bash -
23 16 7 3.3 zsh -
18 14 4 31.4 bumpleak/osh mut
26 22 4 33.1 _bin/cxx-opt+bumproot/osh mut
28 25 3 32.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 20 17 26.2 osh-native mut+alloc
37 26 12 26.7 osh-native mut+alloc+free
28 28 0 8.0 osh-native mut+alloc+free+gc
28 27 1 7.9 osh-native mut+alloc+free+gc+exit
56 40 17 36.1 _bin/cxx-opt+nopool/osh mut+alloc
37 31 6 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 15 14 25.8 osh-native-souffle mut+alloc
31 18 13 26.2 osh-native-souffle mut+alloc+free
22 21 1 7.6 osh-native-souffle mut+alloc+free+gc
21 19 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
72 70 2 3.1 bash -
166 116 50 56.2 bumpleak/osh mut
181 140 40 58.1 _bin/cxx-opt+bumproot/osh mut
194 134 60 58.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 142 72 48.9 osh-native mut+alloc
218 153 65 50.6 osh-native mut+alloc+free
181 132 49 8.9 osh-native mut+alloc+free+gc
183 135 48 8.9 osh-native mut+alloc+free+gc+exit
233 165 67 64.4 _bin/cxx-opt+nopool/osh mut+alloc
208 151 57 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
203 140 63 48.1 osh-native-souffle mut+alloc
209 130 79 50.2 osh-native-souffle mut+alloc+free
175 134 41 8.4 osh-native-souffle mut+alloc+free+gc
173 116 57 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 -
19 8 12 4.3 bash -
17 8 9 3.5 zsh -
19 8 11 12.7 bumpleak/osh mut
21 10 11 13.5 _bin/cxx-opt+bumproot/osh mut
20 9 11 13.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 10 11 10.9 osh-native mut+alloc
21 9 12 11.1 osh-native mut+alloc+free
22 13 10 9.0 osh-native mut+alloc+free+gc
22 11 11 9.2 osh-native mut+alloc+free+gc+exit
24 12 12 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 15 11 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 7 13 10.6 osh-native-souffle mut+alloc
20 10 11 10.7 osh-native-souffle mut+alloc+free
21 11 10 8.4 osh-native-souffle mut+alloc+free+gc
21 11 10 8.7 osh-native-souffle mut+alloc+free+gc+exit