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,752 1,282 6 406,606 5 203,303 osh-native
parse.configure-cpython 32 3 10 12.0 17.6 476,752 1,282 6 406,202 5 203,101 osh-native-souffle
parse.configure-coreutils 142 21 56 44.5 49.7 1,653,340 4,764 12 1,025,528 6 764,307 osh-native
parse.configure-coreutils 133 21 59 44.5 49.4 1,653,339 4,764 12 1,025,398 6 764,242 osh-native-souffle
parse.abuild 8 1 1 2.6 8.7 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 28 0 1 2.1 8.0 579,607 22,608 12 50,000 0 2,920 osh-native
ex.compute-fib 21 0 2 2.1 7.5 579,607 22,608 12 50,000 0 2,859 osh-native-souffle
ex.bashcomp-parse-help 181 0 3 10.3 8.7 995,289 15,258 21 50,000 0 3,902 osh-native
ex.bashcomp-parse-help 175 0 4 10.3 8.3 995,288 15,258 21 50,000 0 3,845 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 8.9 116,319 277 3 85,250 1 42,625 osh-native
ex.abuild-print-help 20 1 2 2.8 8.7 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 3 3 1.6 dash -
23 19 4 2.8 bash -
105 61 50 3.4 zsh -
16 12 4 29.7 bumpleak/osh mut
18 9 9 29.7 _bin/cxx-opt+bumproot/osh mut
21 8 13 30.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
28 18 9 25.2 osh-native mut+alloc
31 27 4 25.6 osh-native mut+alloc+free
34 26 7 18.0 osh-native mut+alloc+free+gc
36 32 4 18.2 osh-native mut+alloc+free+gc+exit
42 31 11 33.4 _bin/cxx-opt+nopool/osh mut+alloc
46 41 4 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
25 7 18 24.9 osh-native-souffle mut+alloc
27 23 4 25.3 osh-native-souffle mut+alloc+free
32 28 4 17.6 osh-native-souffle mut+alloc+free+gc
33 29 4 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 -
75 75 0 3.1 bash -
370 211 179 3.5 zsh -
49 44 4 84.6 bumpleak/osh mut
57 49 8 85.1 _bin/cxx-opt+bumproot/osh mut
69 42 27 86.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
93 56 36 73.4 osh-native mut+alloc
105 76 28 75.4 osh-native mut+alloc+free
142 117 24 49.7 osh-native mut+alloc+free+gc
144 123 20 50.5 osh-native mut+alloc+free+gc+exit
139 95 43 99.0 _bin/cxx-opt+nopool/osh mut+alloc
193 156 36 67.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
86 53 33 73.1 osh-native-souffle mut+alloc
94 53 41 74.8 osh-native-souffle mut+alloc+free
133 121 12 49.4 osh-native-souffle mut+alloc+free+gc
136 116 20 50.0 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.4 dash -
6 6 0 2.9 bash -
7 4 4 3.4 zsh -
6 0 6 12.1 bumpleak/osh mut
7 0 7 11.7 _bin/cxx-opt+bumproot/osh mut
7 4 4 12.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 10.1 osh-native mut+alloc
8 4 4 10.0 osh-native mut+alloc+free
8 0 8 8.7 osh-native mut+alloc+free+gc
9 9 0 8.5 osh-native mut+alloc+free+gc+exit
12 4 8 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 4 8 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 7 0 9.7 osh-native-souffle mut+alloc
8 8 0 9.8 osh-native-souffle mut+alloc+free
9 5 5 7.9 osh-native-souffle mut+alloc+free+gc
9 6 3 7.9 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 7 3 1.4 dash -
29 29 0 2.9 bash -
23 16 8 3.3 zsh -
17 17 0 31.1 bumpleak/osh mut
25 16 8 32.9 _bin/cxx-opt+bumproot/osh mut
27 20 8 33.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 20 16 26.3 osh-native mut+alloc
35 31 4 26.7 osh-native mut+alloc+free
28 27 0 8.0 osh-native mut+alloc+free+gc
27 27 0 8.1 osh-native mut+alloc+free+gc+exit
52 36 16 36.1 _bin/cxx-opt+nopool/osh mut+alloc
37 32 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
29 22 7 26.0 osh-native-souffle mut+alloc
31 22 9 26.3 osh-native-souffle mut+alloc+free
21 21 0 7.5 osh-native-souffle mut+alloc+free+gc
21 16 4 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
73 69 4 3.0 bash -
167 119 48 56.1 bumpleak/osh mut
179 118 61 55.2 _bin/cxx-opt+bumproot/osh mut
195 127 67 57.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
210 154 55 47.4 osh-native mut+alloc
213 146 67 49.0 osh-native mut+alloc+free
181 108 72 8.7 osh-native mut+alloc+free+gc
181 116 64 8.8 osh-native mut+alloc+free+gc+exit
232 156 76 62.8 _bin/cxx-opt+nopool/osh mut+alloc
205 145 60 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
202 135 67 47.0 osh-native-souffle mut+alloc
217 132 84 48.6 osh-native-souffle mut+alloc+free
175 106 69 8.3 osh-native-souffle mut+alloc+free+gc
174 122 53 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
10 8 2 3.4 dash -
19 16 4 4.5 bash -
18 5 13 3.5 zsh -
18 10 8 11.9 bumpleak/osh mut
19 10 9 12.3 _bin/cxx-opt+bumproot/osh mut
20 13 7 12.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 10 12 11.1 osh-native mut+alloc
21 12 10 11.1 osh-native mut+alloc+free
22 20 3 8.9 osh-native mut+alloc+free+gc
22 13 10 9.0 osh-native mut+alloc+free+gc+exit
24 7 18 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 14 11 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 14 6 10.6 osh-native-souffle mut+alloc
21 17 5 10.9 osh-native-souffle mut+alloc+free
20 13 8 8.7 osh-native-souffle mut+alloc+free+gc
21 11 10 8.7 osh-native-souffle mut+alloc+free+gc+exit