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.1 476,761 1,282 6 406,608 5 203,304 osh-native
parse.configure-cpython 32 3 9 12.0 17.4 476,761 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 141 21 55 44.5 49.8 1,653,349 4,764 12 1,025,530 6 764,308 osh-native
parse.configure-coreutils 130 22 55 44.5 49.6 1,653,348 4,764 12 1,025,396 6 764,241 osh-native-souffle
parse.abuild 9 1 1 2.6 8.7 101,952 180 2 75,034 1 37,517 osh-native
parse.abuild 9 1 2 2.4 7.9 101,952 180 3 87,092 1 43,546 osh-native-souffle
ex.compute-fib 28 0 1 2.2 8.0 579,616 22,608 12 50,000 0 2,921 osh-native
ex.compute-fib 21 0 1 2.2 7.6 579,616 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 182 0 3 10.9 8.8 1,017,214 15,258 21 50,000 0 3,902 osh-native
ex.bashcomp-parse-help 173 0 3 10.9 8.1 1,017,213 15,258 21 50,000 0 3,851 osh-native-souffle
ex.abuild-print-help 21 1 2 2.8 9.0 116,328 277 3 85,252 1 42,626 osh-native
ex.abuild-print-help 21 1 2 2.8 8.8 116,328 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 -
25 25 0 3.0 bash -
100 51 56 3.1 zsh -
16 14 2 28.9 bumpleak/osh mut
20 14 6 30.2 _bin/cxx-opt+bumproot/osh mut
22 16 6 29.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
31 18 13 25.2 osh-native mut+alloc
31 21 10 25.7 osh-native mut+alloc+free
35 23 12 18.1 osh-native mut+alloc+free+gc
35 28 7 18.0 osh-native mut+alloc+free+gc+exit
42 27 15 32.4 _bin/cxx-opt+nopool/osh mut+alloc
47 38 9 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 17 10 24.9 osh-native-souffle mut+alloc
28 18 10 25.3 osh-native-souffle mut+alloc+free
32 21 11 17.4 osh-native-souffle mut+alloc+free+gc
33 25 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
22 21 1 1.6 dash -
78 76 2 3.3 bash -
362 185 197 3.4 zsh -
48 40 8 85.8 bumpleak/osh mut
61 50 10 85.3 _bin/cxx-opt+bumproot/osh mut
71 61 10 85.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 68 29 73.4 osh-native mut+alloc
103 75 28 75.5 osh-native mut+alloc+free
141 118 23 49.8 osh-native mut+alloc+free+gc
146 127 19 50.5 osh-native mut+alloc+free+gc+exit
134 88 47 99.0 _bin/cxx-opt+nopool/osh mut+alloc
198 169 29 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
86 57 30 73.1 osh-native-souffle mut+alloc
95 68 27 75.0 osh-native-souffle mut+alloc+free
130 111 19 49.6 osh-native-souffle mut+alloc+free+gc
137 113 24 50.2 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 2 2.9 bash -
7 1 6 3.4 zsh -
6 4 2 10.5 bumpleak/osh mut
7 5 2 11.5 _bin/cxx-opt+bumproot/osh mut
7 5 2 11.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.0 osh-native mut+alloc
9 6 3 10.1 osh-native mut+alloc+free
9 7 2 8.7 osh-native mut+alloc+free+gc
9 6 3 8.4 osh-native mut+alloc+free+gc+exit
12 8 3 11.5 _bin/cxx-opt+nopool/osh mut+alloc
11 8 4 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 5 2 9.7 osh-native-souffle mut+alloc
8 6 2 9.8 osh-native-souffle mut+alloc+free
9 7 2 7.9 osh-native-souffle mut+alloc+free+gc
9 6 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 10 0 1.4 dash -
28 27 1 3.0 bash -
23 18 5 3.4 zsh -
18 12 6 31.7 bumpleak/osh mut
26 24 2 32.4 _bin/cxx-opt+bumproot/osh mut
28 25 3 33.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 26 11 26.3 osh-native mut+alloc
37 18 19 26.5 osh-native mut+alloc+free
28 25 3 8.0 osh-native mut+alloc+free+gc
28 24 4 7.9 osh-native mut+alloc+free+gc+exit
52 33 20 35.9 _bin/cxx-opt+nopool/osh mut+alloc
36 35 1 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 19 10 25.8 osh-native-souffle mut+alloc
31 23 8 26.2 osh-native-souffle mut+alloc+free
21 19 2 7.6 osh-native-souffle mut+alloc+free+gc
21 19 3 7.7 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 69 3 3.1 bash -
165 113 52 56.9 bumpleak/osh mut
179 118 61 57.0 _bin/cxx-opt+bumproot/osh mut
196 140 56 58.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 139 74 48.9 osh-native mut+alloc
216 140 76 50.6 osh-native mut+alloc+free
182 128 54 8.8 osh-native mut+alloc+free+gc
182 119 63 8.8 osh-native mut+alloc+free+gc+exit
232 149 83 64.4 _bin/cxx-opt+nopool/osh mut+alloc
209 160 49 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
203 117 86 48.3 osh-native-souffle mut+alloc
209 134 75 50.2 osh-native-souffle mut+alloc+free
173 129 44 8.1 osh-native-souffle mut+alloc+free+gc
172 119 53 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 7 3 3.4 dash -
19 11 8 4.5 bash -
17 10 7 3.5 zsh -
18 8 10 11.4 bumpleak/osh mut
20 10 11 13.3 _bin/cxx-opt+bumproot/osh mut
22 7 16 13.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 9 12 11.1 osh-native mut+alloc
21 10 12 11.3 osh-native mut+alloc+free
21 13 9 9.0 osh-native mut+alloc+free+gc
22 15 7 9.0 osh-native mut+alloc+free+gc+exit
24 10 14 12.7 _bin/cxx-opt+nopool/osh mut+alloc
24 13 12 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 10 10 10.5 osh-native-souffle mut+alloc
21 9 13 10.7 osh-native-souffle mut+alloc+free
21 11 10 8.8 osh-native-souffle mut+alloc+free+gc
21 10 11 8.7 osh-native-souffle mut+alloc+free+gc+exit