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 36 3 9 12.0 17.8 476,768 1,282 6 406,620 5 203,310 osh-native
parse.configure-cpython 32 3 9 12.0 17.6 476,768 1,282 6 406,610 5 203,305 osh-native-souffle
parse.configure-coreutils 140 22 54 44.5 49.8 1,653,356 4,764 12 1,025,542 6 764,314 osh-native
parse.configure-coreutils 130 21 55 44.5 49.3 1,653,355 4,764 12 1,025,532 6 764,309 osh-native-souffle
parse.abuild 9 1 1 2.6 8.7 101,959 180 2 75,046 1 37,523 osh-native
parse.abuild 8 1 1 2.6 8.1 101,959 180 2 75,036 1 37,518 osh-native-souffle
ex.compute-fib 28 0 1 2.2 8.0 579,723 22,608 12 50,000 0 2,927 osh-native
ex.compute-fib 21 0 1 2.2 7.3 579,723 22,608 12 50,000 0 2,922 osh-native-souffle
ex.bashcomp-parse-help 182 0 4 11.1 8.9 1,021,040 15,258 22 50,000 0 3,916 osh-native
ex.bashcomp-parse-help 173 0 4 11.1 8.4 1,021,039 15,258 22 50,000 0 3,916 osh-native-souffle
ex.abuild-print-help 21 1 2 2.8 9.2 116,358 277 3 85,264 1 42,632 osh-native
ex.abuild-print-help 20 1 2 2.8 8.7 116,358 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 6 0 1.6 dash -
23 22 1 3.1 bash -
99 59 46 3.4 zsh -
17 15 2 28.4 bumpleak/osh mut
20 16 4 28.5 _bin/cxx-opt+bumproot/osh mut
22 17 5 29.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 19 10 25.2 osh-native mut+alloc
31 24 7 25.6 osh-native mut+alloc+free
36 30 6 17.8 osh-native mut+alloc+free+gc
36 29 6 18.1 osh-native mut+alloc+free+gc+exit
42 27 15 32.4 _bin/cxx-opt+nopool/osh mut+alloc
47 41 6 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 15 11 24.8 osh-native-souffle mut+alloc
28 21 7 25.3 osh-native-souffle mut+alloc+free
32 27 5 17.6 osh-native-souffle mut+alloc+free+gc
33 26 7 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 -
356 183 194 3.5 zsh -
48 41 7 85.8 bumpleak/osh mut
60 52 8 85.7 _bin/cxx-opt+bumproot/osh mut
70 58 12 85.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 56 41 73.5 osh-native mut+alloc
105 75 29 75.4 osh-native mut+alloc+free
140 114 26 49.8 osh-native mut+alloc+free+gc
145 127 18 50.4 osh-native mut+alloc+free+gc+exit
136 100 36 99.0 _bin/cxx-opt+nopool/osh mut+alloc
197 173 24 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 63 25 73.0 osh-native-souffle mut+alloc
95 62 33 74.8 osh-native-souffle mut+alloc+free
130 110 20 49.3 osh-native-souffle mut+alloc+free+gc
136 113 23 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.4 dash -
5 4 1 2.8 bash -
7 4 4 3.3 zsh -
6 3 3 10.2 bumpleak/osh mut
6 4 2 12.4 _bin/cxx-opt+bumproot/osh mut
7 6 1 11.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.0 osh-native mut+alloc
8 6 3 10.2 osh-native mut+alloc+free
9 4 5 8.7 osh-native mut+alloc+free+gc
9 7 2 8.7 osh-native mut+alloc+free+gc+exit
11 7 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 8 3 9.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
7 5 2 9.4 osh-native-souffle mut+alloc
8 6 1 9.7 osh-native-souffle mut+alloc+free
8 6 3 8.1 osh-native-souffle mut+alloc+free+gc
8 4 5 8.3 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.4 dash -
28 28 0 2.9 bash -
23 17 6 3.3 zsh -
18 12 6 31.2 bumpleak/osh mut
26 23 3 31.4 _bin/cxx-opt+bumproot/osh mut
29 24 5 31.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 23 13 26.5 osh-native mut+alloc
37 26 11 26.7 osh-native mut+alloc+free
28 26 2 8.0 osh-native mut+alloc+free+gc
28 26 2 8.1 osh-native mut+alloc+free+gc+exit
54 33 21 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 35 2 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
29 23 6 26.0 osh-native-souffle mut+alloc
30 23 7 26.3 osh-native-souffle mut+alloc+free
21 19 2 7.3 osh-native-souffle mut+alloc+free+gc
21 18 3 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 66 6 3.1 bash -
167 120 47 56.5 bumpleak/osh mut
181 126 55 57.7 _bin/cxx-opt+bumproot/osh mut
195 133 62 58.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 152 62 48.9 osh-native mut+alloc
218 151 68 50.8 osh-native mut+alloc+free
182 140 42 8.9 osh-native mut+alloc+free+gc
182 131 51 8.9 osh-native mut+alloc+free+gc+exit
234 163 71 64.5 _bin/cxx-opt+nopool/osh mut+alloc
211 158 53 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 145 59 48.3 osh-native-souffle mut+alloc
209 138 71 50.4 osh-native-souffle mut+alloc+free
173 120 53 8.4 osh-native-souffle mut+alloc+free+gc
174 124 51 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 5 5 3.4 dash -
19 10 10 4.3 bash -
17 7 10 3.5 zsh -
18 7 12 12.3 bumpleak/osh mut
19 11 8 12.6 _bin/cxx-opt+bumproot/osh mut
19 9 10 12.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 7 13 11.1 osh-native mut+alloc
22 8 14 11.3 osh-native mut+alloc+free
21 14 8 9.2 osh-native mut+alloc+free+gc
22 13 9 9.0 osh-native mut+alloc+free+gc+exit
24 11 13 12.9 _bin/cxx-opt+nopool/osh mut+alloc
24 16 8 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 6 14 10.6 osh-native-souffle mut+alloc
21 11 11 10.6 osh-native-souffle mut+alloc+free
20 10 11 8.7 osh-native-souffle mut+alloc+free+gc
21 10 12 8.8 osh-native-souffle mut+alloc+free+gc+exit