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,767 1,282 6 406,620 5 203,310 osh-native
parse.configure-cpython 32 3 9 12.0 17.6 476,767 1,282 6 406,610 5 203,305 osh-native-souffle
parse.configure-coreutils 143 22 58 44.5 49.8 1,653,355 4,764 12 1,025,542 6 764,314 osh-native
parse.configure-coreutils 147 24 68 44.5 49.3 1,653,354 4,764 12 1,025,532 6 764,309 osh-native-souffle
parse.abuild 9 1 1 2.6 8.4 101,958 180 2 75,046 1 37,523 osh-native
parse.abuild 8 1 1 2.6 8.3 101,958 180 2 75,036 1 37,518 osh-native-souffle
ex.compute-fib 28 0 1 2.2 8.1 579,722 22,608 12 50,000 0 2,927 osh-native
ex.compute-fib 22 0 1 2.2 7.6 579,722 22,608 12 50,000 0 2,922 osh-native-souffle
ex.bashcomp-parse-help 183 0 4 11.1 8.9 1,021,039 15,258 22 50,000 0 3,916 osh-native
ex.bashcomp-parse-help 175 0 4 11.1 8.1 1,021,038 15,258 22 50,000 0 3,916 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.2 116,357 277 3 85,264 1 42,632 osh-native
ex.abuild-print-help 20 1 2 2.8 8.7 116,357 277 3 85,254 1 42,627 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.4 dash -
23 22 1 3.1 bash -
100 53 53 3.3 zsh -
16 11 5 28.9 bumpleak/osh mut
20 16 4 30.2 _bin/cxx-opt+bumproot/osh mut
22 14 8 29.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 20 9 25.2 osh-native mut+alloc
31 23 8 25.8 osh-native mut+alloc+free
35 25 10 17.8 osh-native mut+alloc+free+gc
36 31 5 18.0 osh-native mut+alloc+free+gc+exit
42 25 17 32.4 _bin/cxx-opt+nopool/osh mut+alloc
47 35 12 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 17 10 24.9 osh-native-souffle mut+alloc
28 17 12 25.3 osh-native-souffle mut+alloc+free
32 25 7 17.6 osh-native-souffle mut+alloc+free+gc
33 26 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 21 0 1.6 dash -
78 75 3 3.1 bash -
362 190 193 3.5 zsh -
51 41 10 84.9 bumpleak/osh mut
61 50 11 86.0 _bin/cxx-opt+bumproot/osh mut
70 59 11 86.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
95 67 28 73.7 osh-native mut+alloc
103 75 28 75.4 osh-native mut+alloc+free
143 122 21 49.8 osh-native mut+alloc+free+gc
146 118 28 50.5 osh-native mut+alloc+free+gc+exit
140 93 47 98.9 _bin/cxx-opt+nopool/osh mut+alloc
204 169 35 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 64 24 73.1 osh-native-souffle mut+alloc
95 58 37 75.0 osh-native-souffle mut+alloc+free
147 123 24 49.3 osh-native-souffle mut+alloc+free+gc
141 125 16 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 1 1 1.3 dash -
5 5 0 3.0 bash -
7 4 4 3.1 zsh -
6 5 1 11.9 bumpleak/osh mut
7 5 2 12.1 _bin/cxx-opt+bumproot/osh mut
7 6 1 11.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 6 2 10.1 osh-native mut+alloc
9 5 4 10.2 osh-native mut+alloc+free
9 8 1 8.4 osh-native mut+alloc+free+gc
9 7 2 8.5 osh-native mut+alloc+free+gc+exit
12 7 5 11.7 _bin/cxx-opt+nopool/osh mut+alloc
12 10 2 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 7 1 9.6 osh-native-souffle mut+alloc
8 5 3 9.6 osh-native-souffle mut+alloc+free
8 6 2 8.3 osh-native-souffle mut+alloc+free+gc
8 5 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.6 dash -
28 27 1 3.0 bash -
23 21 2 3.3 zsh -
18 15 3 30.7 bumpleak/osh mut
26 20 6 33.0 _bin/cxx-opt+bumproot/osh mut
29 24 4 31.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 26 10 26.5 osh-native mut+alloc
37 29 8 26.6 osh-native mut+alloc+free
28 27 1 8.1 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
55 42 13 36.1 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 19 11 26.0 osh-native-souffle mut+alloc
31 20 11 26.2 osh-native-souffle mut+alloc+free
22 20 2 7.6 osh-native-souffle mut+alloc+free+gc
22 20 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.0 bash -
166 116 51 55.8 bumpleak/osh mut
180 123 56 57.9 _bin/cxx-opt+bumproot/osh mut
196 145 50 58.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
217 144 74 48.6 osh-native mut+alloc
219 152 67 50.8 osh-native mut+alloc+free
183 129 54 8.9 osh-native mut+alloc+free+gc
183 131 52 8.8 osh-native mut+alloc+free+gc+exit
233 160 73 64.5 _bin/cxx-opt+nopool/osh mut+alloc
211 155 57 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 145 59 48.2 osh-native-souffle mut+alloc
212 138 74 50.3 osh-native-souffle mut+alloc+free
175 124 51 8.1 osh-native-souffle mut+alloc+free+gc
175 126 48 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 2 8 3.4 dash -
19 9 10 4.3 bash -
17 8 10 3.5 zsh -
17 9 9 11.3 bumpleak/osh mut
19 10 9 12.1 _bin/cxx-opt+bumproot/osh mut
20 12 8 12.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 11 10 11.1 osh-native mut+alloc
21 12 10 11.3 osh-native mut+alloc+free
22 10 12 9.2 osh-native mut+alloc+free+gc
22 11 11 9.2 osh-native mut+alloc+free+gc+exit
24 11 14 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 15 11 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 10 10 10.6 osh-native-souffle mut+alloc
21 10 11 10.9 osh-native-souffle mut+alloc+free
20 12 9 8.7 osh-native-souffle mut+alloc+free+gc
21 9 12 8.5 osh-native-souffle mut+alloc+free+gc+exit