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 34 3 9 12.0 18.0 476,766 1,282 6 406,618 5 203,309 osh-native
parse.configure-cpython 32 3 9 12.0 17.4 476,766 1,282 6 406,608 5 203,304 osh-native-souffle
parse.configure-coreutils 140 22 56 44.5 50.0 1,653,354 4,764 12 1,025,540 6 764,313 osh-native
parse.configure-coreutils 136 22 60 44.5 49.4 1,653,353 4,764 12 1,025,530 6 764,308 osh-native-souffle
parse.abuild 9 1 1 2.6 8.8 101,957 180 2 75,044 1 37,522 osh-native
parse.abuild 8 1 1 2.6 8.1 101,957 180 2 75,034 1 37,517 osh-native-souffle
ex.compute-fib 28 0 2 2.2 8.0 579,721 22,608 12 50,000 0 2,926 osh-native
ex.compute-fib 21 0 1 2.2 7.5 579,721 22,608 12 50,000 0 2,921 osh-native-souffle
ex.bashcomp-parse-help 182 0 4 11.1 8.8 1,021,036 15,258 22 50,000 0 3,915 osh-native
ex.bashcomp-parse-help 172 0 4 11.1 8.5 1,021,035 15,258 22 50,000 0 3,915 osh-native-souffle
ex.abuild-print-help 21 1 2 2.8 9.2 116,340 277 3 85,262 1 42,631 osh-native
ex.abuild-print-help 21 1 2 2.8 8.5 116,340 277 3 85,252 1 42,626 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 -
24 23 1 3.1 bash -
101 63 45 3.4 zsh -
16 11 5 29.9 bumpleak/osh mut
19 12 7 29.4 _bin/cxx-opt+bumproot/osh mut
22 12 10 29.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 19 10 25.2 osh-native mut+alloc
31 25 6 25.7 osh-native mut+alloc+free
34 26 8 18.0 osh-native mut+alloc+free+gc
36 26 10 18.1 osh-native mut+alloc+free+gc+exit
42 22 20 32.4 _bin/cxx-opt+nopool/osh mut+alloc
47 36 10 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 15 12 24.8 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 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 76 1 3.1 bash -
359 190 192 3.5 zsh -
49 39 10 85.7 bumpleak/osh mut
60 50 10 84.8 _bin/cxx-opt+bumproot/osh mut
70 63 7 85.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 61 35 73.5 osh-native mut+alloc
104 68 36 75.4 osh-native mut+alloc+free
140 118 22 50.0 osh-native mut+alloc+free+gc
149 137 12 50.5 osh-native mut+alloc+free+gc+exit
136 92 44 99.0 _bin/cxx-opt+nopool/osh mut+alloc
200 166 34 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
86 55 32 73.1 osh-native-souffle mut+alloc
95 59 35 75.0 osh-native-souffle mut+alloc+free
136 117 19 49.4 osh-native-souffle mut+alloc+free+gc
137 116 21 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.3 dash -
5 4 1 2.9 bash -
7 2 5 3.3 zsh -
6 2 4 12.2 bumpleak/osh mut
7 5 2 12.3 _bin/cxx-opt+bumproot/osh mut
7 5 3 12.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 5 10.0 osh-native mut+alloc
9 3 6 10.2 osh-native mut+alloc+free
9 5 4 8.8 osh-native mut+alloc+free+gc
9 8 1 8.8 osh-native mut+alloc+free+gc+exit
12 9 2 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 8 3 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 3 5 9.7 osh-native-souffle mut+alloc
8 4 4 9.8 osh-native-souffle mut+alloc+free
8 5 3 8.1 osh-native-souffle mut+alloc+free+gc
8 5 4 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 10 0 1.6 dash -
29 28 1 3.0 bash -
23 19 4 3.3 zsh -
18 13 5 31.1 bumpleak/osh mut
26 25 1 32.2 _bin/cxx-opt+bumproot/osh mut
28 25 3 33.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 24 12 26.5 osh-native mut+alloc
38 27 11 26.7 osh-native mut+alloc+free
28 27 1 8.0 osh-native mut+alloc+free+gc
29 28 1 8.0 osh-native mut+alloc+free+gc+exit
53 37 16 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 34 3 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
29 20 9 26.1 osh-native-souffle mut+alloc
30 22 9 26.3 osh-native-souffle mut+alloc+free
21 19 2 7.5 osh-native-souffle mut+alloc+free+gc
21 20 1 7.5 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 -
167 113 54 56.4 bumpleak/osh mut
181 122 59 57.6 _bin/cxx-opt+bumproot/osh mut
195 134 61 58.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 131 81 49.1 osh-native mut+alloc
219 135 84 50.8 osh-native mut+alloc+free
182 125 57 8.8 osh-native mut+alloc+free+gc
183 140 43 8.8 osh-native mut+alloc+free+gc+exit
235 164 71 64.5 _bin/cxx-opt+nopool/osh mut+alloc
215 168 47 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 138 67 48.7 osh-native-souffle mut+alloc
211 142 69 50.1 osh-native-souffle mut+alloc+free
172 127 45 8.5 osh-native-souffle mut+alloc+free+gc
172 122 50 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.4 dash -
19 10 9 4.5 bash -
17 8 10 3.5 zsh -
17 5 12 13.0 bumpleak/osh mut
21 8 12 13.5 _bin/cxx-opt+bumproot/osh mut
19 9 10 12.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 8 14 11.1 osh-native mut+alloc
22 12 11 11.4 osh-native mut+alloc+free
21 10 12 9.2 osh-native mut+alloc+free+gc
22 14 8 9.2 osh-native mut+alloc+free+gc+exit
24 11 13 12.8 _bin/cxx-opt+nopool/osh mut+alloc
24 12 13 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 9 11 10.6 osh-native-souffle mut+alloc
21 9 12 10.9 osh-native-souffle mut+alloc+free
21 10 11 8.5 osh-native-souffle mut+alloc+free+gc
21 12 10 8.7 osh-native-souffle mut+alloc+free+gc+exit