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 37 3 10 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.6 476,761 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 145 22 59 44.5 49.8 1,653,349 4,764 12 1,025,530 6 764,308 osh-native
parse.configure-coreutils 137 22 60 44.5 49.4 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 29 0 1 2.2 7.9 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 183 0 3 10.9 8.9 1,017,214 15,258 21 50,000 0 3,902 osh-native
ex.bashcomp-parse-help 172 0 3 10.9 8.4 1,017,213 15,258 21 50,000 0 3,851 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.2 116,328 277 3 85,252 1 42,626 osh-native
ex.abuild-print-help 20 1 2 2.8 8.7 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 6 0 1.6 dash -
23 21 2 3.1 bash -
106 58 54 3.4 zsh -
20 13 7 28.0 bumpleak/osh mut
20 15 5 28.9 _bin/cxx-opt+bumproot/osh mut
22 13 9 30.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 19 10 25.3 osh-native mut+alloc
31 20 11 25.7 osh-native mut+alloc+free
37 28 9 18.1 osh-native mut+alloc+free+gc
36 29 7 18.1 osh-native mut+alloc+free+gc+exit
42 18 24 32.4 _bin/cxx-opt+nopool/osh mut+alloc
62 47 15 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 20 6 24.9 osh-native-souffle mut+alloc
28 16 12 25.3 osh-native-souffle mut+alloc+free
32 21 11 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 19 2 1.4 dash -
77 74 3 3.1 bash -
360 203 179 3.5 zsh -
48 40 8 84.0 bumpleak/osh mut
60 46 14 84.5 _bin/cxx-opt+bumproot/osh mut
71 55 16 85.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 60 38 73.5 osh-native mut+alloc
104 74 29 75.2 osh-native mut+alloc+free
145 125 20 49.8 osh-native mut+alloc+free+gc
150 128 22 50.6 osh-native mut+alloc+free+gc+exit
137 94 43 98.7 _bin/cxx-opt+nopool/osh mut+alloc
207 171 36 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 55 32 73.1 osh-native-souffle mut+alloc
96 66 30 74.9 osh-native-souffle mut+alloc+free
137 119 18 49.4 osh-native-souffle mut+alloc+free+gc
141 121 20 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 1 1 1.4 dash -
5 4 1 3.0 bash -
7 4 3 3.3 zsh -
6 3 3 10.9 bumpleak/osh mut
6 4 3 11.1 _bin/cxx-opt+bumproot/osh mut
7 3 4 11.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 5 10.1 osh-native mut+alloc
8 5 4 10.2 osh-native mut+alloc+free
9 8 1 8.7 osh-native mut+alloc+free+gc
9 8 1 8.4 osh-native mut+alloc+free+gc+exit
12 5 7 11.3 _bin/cxx-opt+nopool/osh mut+alloc
11 6 5 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 2 6 9.6 osh-native-souffle mut+alloc
8 4 4 9.7 osh-native-souffle mut+alloc+free
9 7 2 7.9 osh-native-souffle mut+alloc+free+gc
9 7 2 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 -
29 28 1 3.0 bash -
23 17 6 3.3 zsh -
19 14 4 32.4 bumpleak/osh mut
25 19 6 33.5 _bin/cxx-opt+bumproot/osh mut
28 24 4 32.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 30 6 26.5 osh-native mut+alloc
39 22 17 26.6 osh-native mut+alloc+free
29 25 4 7.9 osh-native mut+alloc+free+gc
28 27 1 7.9 osh-native mut+alloc+free+gc+exit
53 37 16 35.8 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 22 8 26.0 osh-native-souffle mut+alloc
31 23 8 26.2 osh-native-souffle mut+alloc+free
21 20 1 7.6 osh-native-souffle mut+alloc+free+gc
21 20 1 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 120 46 57.3 bumpleak/osh mut
179 117 62 57.6 _bin/cxx-opt+bumproot/osh mut
195 142 53 58.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 141 72 48.9 osh-native mut+alloc
219 151 67 50.5 osh-native mut+alloc+free
183 132 51 8.9 osh-native mut+alloc+free+gc
182 122 59 8.9 osh-native mut+alloc+free+gc+exit
234 166 67 64.6 _bin/cxx-opt+nopool/osh mut+alloc
209 162 47 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 129 76 48.3 osh-native-souffle mut+alloc
212 138 74 50.0 osh-native-souffle mut+alloc+free
172 126 46 8.4 osh-native-souffle mut+alloc+free+gc
173 128 45 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.5 dash -
19 14 6 4.5 bash -
17 6 11 3.5 zsh -
17 7 10 13.3 bumpleak/osh mut
19 10 9 13.9 _bin/cxx-opt+bumproot/osh mut
21 9 12 13.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 6 16 11.3 osh-native mut+alloc
22 11 11 11.1 osh-native mut+alloc+free
22 12 11 9.2 osh-native mut+alloc+free+gc
22 10 12 9.0 osh-native mut+alloc+free+gc+exit
24 14 10 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 14 11 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 9 11 10.6 osh-native-souffle mut+alloc
21 8 13 10.9 osh-native-souffle mut+alloc+free
20 12 9 8.7 osh-native-souffle mut+alloc+free+gc
21 14 7 8.7 osh-native-souffle mut+alloc+free+gc+exit