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.0 476,752 1,282 6 406,606 5 203,303 osh-native
parse.configure-cpython 34 4 10 12.0 17.6 476,752 1,282 6 406,202 5 203,101 osh-native-souffle
parse.configure-coreutils 153 24 66 44.5 49.7 1,653,340 4,764 12 1,025,528 6 764,307 osh-native
parse.configure-coreutils 163 28 84 44.5 49.4 1,653,339 4,764 12 1,025,398 6 764,242 osh-native-souffle
parse.abuild 10 1 1 2.6 8.5 101,943 180 2 75,032 1 37,516 osh-native
parse.abuild 9 1 2 2.4 8.1 101,943 180 3 87,094 1 43,547 osh-native-souffle
ex.compute-fib 28 0 2 2.1 8.1 579,607 22,608 12 50,000 0 2,920 osh-native
ex.compute-fib 23 0 2 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.8 995,289 15,258 21 50,000 0 3,902 osh-native
ex.bashcomp-parse-help 176 0 4 10.3 8.1 995,288 15,258 21 50,000 0 3,845 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 9.0 116,319 277 3 85,250 1 42,625 osh-native
ex.abuild-print-help 22 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 -
108 71 44 3.4 zsh -
17 9 9 29.2 bumpleak/osh mut
20 16 4 30.3 _bin/cxx-opt+bumproot/osh mut
40 36 4 29.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 7 22 24.9 osh-native mut+alloc
33 20 12 25.6 osh-native mut+alloc+free
37 32 4 18.0 osh-native mut+alloc+free+gc
37 29 8 18.0 osh-native mut+alloc+free+gc+exit
46 23 23 32.7 _bin/cxx-opt+nopool/osh mut+alloc
57 48 8 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 4 23 24.6 osh-native-souffle mut+alloc
29 15 15 25.3 osh-native-souffle mut+alloc+free
34 26 7 17.6 osh-native-souffle mut+alloc+free+gc
36 24 12 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
22 18 4 1.6 dash -
77 73 4 3.3 bash -
382 238 165 3.5 zsh -
49 44 4 85.7 bumpleak/osh mut
60 44 16 85.9 _bin/cxx-opt+bumproot/osh mut
70 53 16 85.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 77 19 73.4 osh-native mut+alloc
108 76 32 75.4 osh-native mut+alloc+free
153 116 36 49.7 osh-native mut+alloc+free+gc
154 142 12 50.5 osh-native mut+alloc+free+gc+exit
138 105 32 99.5 _bin/cxx-opt+nopool/osh mut+alloc
211 167 44 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 59 28 73.1 osh-native-souffle mut+alloc
96 60 36 75.0 osh-native-souffle mut+alloc+free
163 142 20 49.4 osh-native-souffle mut+alloc+free+gc
163 143 20 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.4 dash -
6 3 3 3.0 bash -
8 4 4 3.3 zsh -
6 6 0 11.9 bumpleak/osh mut
8 4 4 11.9 _bin/cxx-opt+bumproot/osh mut
8 4 4 12.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 10.2 osh-native mut+alloc
9 4 4 10.1 osh-native mut+alloc+free
10 6 3 8.5 osh-native mut+alloc+free+gc
10 10 0 8.5 osh-native mut+alloc+free+gc+exit
12 8 4 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 6 6 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 0 8 9.6 osh-native-souffle mut+alloc
8 8 0 9.7 osh-native-souffle mut+alloc+free
9 6 3 8.1 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
11 7 4 1.4 dash -
30 29 0 2.9 bash -
24 12 12 3.4 zsh -
19 19 0 32.5 bumpleak/osh mut
27 23 4 33.0 _bin/cxx-opt+bumproot/osh mut
29 29 0 32.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 32 4 26.3 osh-native mut+alloc
38 23 15 26.6 osh-native mut+alloc+free
28 28 0 8.1 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
54 39 15 36.0 _bin/cxx-opt+nopool/osh mut+alloc
38 33 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 19 11 26.1 osh-native-souffle mut+alloc
32 24 8 26.3 osh-native-souffle mut+alloc+free
23 23 0 7.6 osh-native-souffle mut+alloc+free+gc
22 18 4 7.7 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.1 bash -
174 101 73 54.5 bumpleak/osh mut
182 145 36 54.8 _bin/cxx-opt+bumproot/osh mut
197 153 44 56.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 122 91 47.3 osh-native mut+alloc
219 128 92 49.1 osh-native mut+alloc+free
183 131 52 8.8 osh-native mut+alloc+free+gc
183 148 36 8.8 osh-native mut+alloc+free+gc+exit
235 163 72 62.9 _bin/cxx-opt+nopool/osh mut+alloc
217 154 63 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
206 105 101 47.0 osh-native-souffle mut+alloc
212 152 60 48.6 osh-native-souffle mut+alloc+free
176 108 68 8.1 osh-native-souffle mut+alloc+free+gc
176 140 36 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 9 1 3.5 dash -
20 13 8 4.3 bash -
18 9 10 3.5 zsh -
20 7 13 12.6 bumpleak/osh mut
20 13 7 12.3 _bin/cxx-opt+bumproot/osh mut
20 12 9 12.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 13 9 11.0 osh-native mut+alloc
23 20 3 11.3 osh-native mut+alloc+free
23 17 7 9.0 osh-native mut+alloc+free+gc
23 16 8 8.9 osh-native mut+alloc+free+gc+exit
26 13 12 12.8 _bin/cxx-opt+nopool/osh mut+alloc
26 15 11 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
21 14 7 10.6 osh-native-souffle mut+alloc
22 11 11 10.6 osh-native-souffle mut+alloc+free
22 19 3 8.5 osh-native-souffle mut+alloc+free+gc
23 20 4 8.5 osh-native-souffle mut+alloc+free+gc+exit