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 4 10 12.0 18.1 476,752 1,282 6 406,606 5 203,303 osh-native
parse.configure-cpython 33 3 9 12.0 17.6 476,752 1,282 6 406,202 5 203,101 osh-native-souffle
parse.configure-coreutils 151 26 64 44.5 49.7 1,653,340 4,764 12 1,025,528 6 764,307 osh-native
parse.configure-coreutils 142 25 65 44.5 49.1 1,653,339 4,764 12 1,025,398 6 764,242 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,943 180 2 75,032 1 37,516 osh-native
parse.abuild 9 1 2 2.4 7.9 101,943 180 3 87,094 1 43,547 osh-native-souffle
ex.compute-fib 29 0 2 2.1 8.0 579,607 22,608 12 50,000 0 2,920 osh-native
ex.compute-fib 22 0 1 2.1 7.6 579,607 22,608 12 50,000 0 2,859 osh-native-souffle
ex.bashcomp-parse-help 183 0 4 10.3 8.9 995,289 15,258 21 50,000 0 3,902 osh-native
ex.bashcomp-parse-help 175 0 3 10.3 8.1 995,288 15,258 21 50,000 0 3,845 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.0 116,319 277 3 85,250 1 42,625 osh-native
ex.abuild-print-help 21 1 2 2.8 8.5 116,319 277 3 85,126 1 42,563 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 23 0 3.0 bash -
107 58 55 3.4 zsh -
16 12 4 29.8 bumpleak/osh mut
19 19 0 29.6 _bin/cxx-opt+bumproot/osh mut
22 15 7 29.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 21 8 25.0 osh-native mut+alloc
31 19 12 25.7 osh-native mut+alloc+free
37 26 11 18.1 osh-native mut+alloc+free+gc
37 37 0 18.1 osh-native mut+alloc+free+gc+exit
43 23 19 32.0 _bin/cxx-opt+nopool/osh mut+alloc
50 33 17 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 19 8 24.8 osh-native-souffle mut+alloc
28 16 12 25.3 osh-native-souffle mut+alloc+free
33 28 4 17.6 osh-native-souffle mut+alloc+free+gc
34 22 11 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 -
79 79 0 3.1 bash -
381 229 172 3.5 zsh -
49 36 12 85.6 bumpleak/osh mut
61 48 12 85.6 _bin/cxx-opt+bumproot/osh mut
71 59 12 85.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 73 24 73.5 osh-native mut+alloc
107 67 40 75.4 osh-native mut+alloc+free
151 131 20 49.7 osh-native mut+alloc+free+gc
158 138 20 50.5 osh-native mut+alloc+free+gc+exit
140 92 48 98.8 _bin/cxx-opt+nopool/osh mut+alloc
214 182 32 68.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 50 38 73.0 osh-native-souffle mut+alloc
99 71 28 75.1 osh-native-souffle mut+alloc+free
142 130 12 49.1 osh-native-souffle mut+alloc+free+gc
144 108 36 50.1 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.3 dash -
6 3 3 3.0 bash -
8 8 0 3.3 zsh -
7 3 3 11.7 bumpleak/osh mut
7 3 3 12.5 _bin/cxx-opt+bumproot/osh mut
7 7 0 10.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 10.0 osh-native mut+alloc
9 9 0 10.1 osh-native mut+alloc+free
9 4 4 8.5 osh-native mut+alloc+free+gc
9 9 0 8.4 osh-native mut+alloc+free+gc+exit
12 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 0 8 9.7 osh-native-souffle mut+alloc
8 4 4 9.8 osh-native-souffle mut+alloc+free
9 9 0 7.9 osh-native-souffle mut+alloc+free+gc
9 9 0 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 25 4 3.0 bash -
24 16 8 3.3 zsh -
19 11 8 32.6 bumpleak/osh mut
26 15 11 31.7 _bin/cxx-opt+bumproot/osh mut
28 24 4 32.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 33 4 26.3 osh-native mut+alloc
38 21 17 26.6 osh-native mut+alloc+free
29 28 0 8.0 osh-native mut+alloc+free+gc
28 28 0 8.0 osh-native mut+alloc+free+gc+exit
53 37 16 35.9 _bin/cxx-opt+nopool/osh mut+alloc
40 36 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 22 9 26.1 osh-native-souffle mut+alloc
32 16 16 26.1 osh-native-souffle mut+alloc+free
22 13 9 7.6 osh-native-souffle mut+alloc+free+gc
21 21 0 7.3 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
74 74 0 3.1 bash -
169 108 60 55.7 bumpleak/osh mut
185 128 56 54.4 _bin/cxx-opt+bumproot/osh mut
195 138 57 55.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 124 88 47.3 osh-native mut+alloc
221 144 76 49.1 osh-native mut+alloc+free
183 138 45 8.9 osh-native mut+alloc+free+gc
182 129 53 8.8 osh-native mut+alloc+free+gc+exit
235 147 87 64.7 _bin/cxx-opt+nopool/osh mut+alloc
212 167 45 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 128 76 46.9 osh-native-souffle mut+alloc
213 144 68 48.6 osh-native-souffle mut+alloc+free
175 111 63 8.1 osh-native-souffle mut+alloc+free+gc
174 99 75 8.3 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
10 9 1 3.5 dash -
21 7 14 4.5 bash -
18 10 9 3.4 zsh -
19 6 13 11.8 bumpleak/osh mut
21 16 6 12.9 _bin/cxx-opt+bumproot/osh mut
20 12 9 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 13 9 11.1 osh-native mut+alloc
23 15 7 11.1 osh-native mut+alloc+free
22 19 3 9.0 osh-native mut+alloc+free+gc
23 18 5 9.2 osh-native mut+alloc+free+gc+exit
25 19 6 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 19 7 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 11 10 10.7 osh-native-souffle mut+alloc
21 12 9 10.6 osh-native-souffle mut+alloc+free
21 15 6 8.5 osh-native-souffle mut+alloc+free+gc
22 11 12 8.7 osh-native-souffle mut+alloc+free+gc+exit