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 36 4 10 12.0 18.0 476,760 1,282 6 406,606 5 203,303 osh-native
parse.configure-cpython 32 3 9 12.0 17.4 476,760 1,282 6 406,322 5 203,161 osh-native-souffle
parse.configure-coreutils 163 26 76 44.5 49.7 1,653,348 4,764 12 1,025,528 6 764,307 osh-native
parse.configure-coreutils 147 25 71 44.5 49.4 1,653,347 4,764 12 1,025,518 6 764,302 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,951 180 2 75,032 1 37,516 osh-native
parse.abuild 8 1 1 2.6 8.3 101,951 180 2 75,022 1 37,511 osh-native-souffle
ex.compute-fib 29 0 2 2.2 8.0 579,715 22,608 12 50,000 0 2,920 osh-native
ex.compute-fib 21 0 1 2.2 7.7 579,715 22,608 12 50,000 0 2,915 osh-native-souffle
ex.bashcomp-parse-help 183 0 4 11.1 8.7 1,021,030 15,258 22 50,000 0 3,909 osh-native
ex.bashcomp-parse-help 174 0 4 11.1 8.4 1,021,029 15,258 22 50,000 0 3,914 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 8.9 116,334 277 3 85,250 1 42,625 osh-native
ex.abuild-print-help 21 1 2 2.8 8.4 116,334 277 3 85,240 1 42,620 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 -
24 23 1 3.0 bash -
101 64 43 3.3 zsh -
17 13 3 28.0 bumpleak/osh mut
20 14 5 28.5 _bin/cxx-opt+bumproot/osh mut
23 20 3 28.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 19 10 25.0 osh-native mut+alloc
31 18 13 25.6 osh-native mut+alloc+free
36 24 12 18.0 osh-native mut+alloc+free+gc
38 31 7 18.1 osh-native mut+alloc+free+gc+exit
42 29 13 32.4 _bin/cxx-opt+nopool/osh mut+alloc
50 42 8 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 14 13 24.9 osh-native-souffle mut+alloc
29 16 13 25.3 osh-native-souffle mut+alloc+free
32 30 2 17.4 osh-native-souffle mut+alloc+free+gc
34 27 6 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.4 dash -
78 75 3 3.1 bash -
362 201 182 3.4 zsh -
50 42 8 85.8 bumpleak/osh mut
59 55 4 86.3 _bin/cxx-opt+bumproot/osh mut
71 51 20 85.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
99 65 34 73.5 osh-native mut+alloc
105 69 36 75.4 osh-native mut+alloc+free
163 143 20 49.7 osh-native mut+alloc+free+gc
167 144 23 50.5 osh-native mut+alloc+free+gc+exit
136 86 51 99.0 _bin/cxx-opt+nopool/osh mut+alloc
232 205 26 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 55 31 73.1 osh-native-souffle mut+alloc
97 69 28 75.0 osh-native-souffle mut+alloc+free
147 127 20 49.4 osh-native-souffle mut+alloc+free+gc
156 130 25 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 1 1 1.4 dash -
5 4 1 2.9 bash -
7 4 4 3.3 zsh -
7 4 3 11.4 bumpleak/osh mut
7 3 4 11.4 _bin/cxx-opt+bumproot/osh mut
8 7 1 12.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 5 4 10.0 osh-native mut+alloc
9 6 3 10.1 osh-native mut+alloc+free
9 6 3 8.5 osh-native mut+alloc+free+gc
9 5 4 8.5 osh-native mut+alloc+free+gc+exit
12 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
13 7 6 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 7 1 9.6 osh-native-souffle mut+alloc
8 5 3 9.7 osh-native-souffle mut+alloc+free
8 7 1 8.3 osh-native-souffle mut+alloc+free+gc
8 6 2 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 9 1 1.4 dash -
29 28 1 2.9 bash -
23 17 6 3.3 zsh -
19 12 6 32.2 bumpleak/osh mut
26 20 6 32.8 _bin/cxx-opt+bumproot/osh mut
28 24 4 32.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 26 11 26.2 osh-native mut+alloc
38 30 8 26.7 osh-native mut+alloc+free
29 25 4 8.0 osh-native mut+alloc+free+gc
29 25 4 8.0 osh-native mut+alloc+free+gc+exit
53 36 17 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 18 12 26.0 osh-native-souffle mut+alloc
32 18 14 26.2 osh-native-souffle mut+alloc+free
21 18 4 7.7 osh-native-souffle mut+alloc+free+gc
22 19 3 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 70 3 3.0 bash -
168 112 56 55.8 bumpleak/osh mut
181 121 60 58.0 _bin/cxx-opt+bumproot/osh mut
195 133 62 58.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 149 65 49.0 osh-native mut+alloc
219 146 73 50.8 osh-native mut+alloc+free
183 128 55 8.7 osh-native mut+alloc+free+gc
183 127 56 8.8 osh-native mut+alloc+free+gc+exit
232 146 85 64.6 _bin/cxx-opt+nopool/osh mut+alloc
211 164 46 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
207 137 70 48.5 osh-native-souffle mut+alloc
211 139 72 50.5 osh-native-souffle mut+alloc+free
174 122 52 8.4 osh-native-souffle mut+alloc+free+gc
175 130 45 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 3 7 3.4 dash -
19 10 10 4.5 bash -
17 9 9 3.5 zsh -
19 12 8 12.2 bumpleak/osh mut
21 10 11 12.7 _bin/cxx-opt+bumproot/osh mut
20 9 11 12.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 9 12 11.0 osh-native mut+alloc
22 7 15 11.0 osh-native mut+alloc+free
22 9 13 8.9 osh-native mut+alloc+free+gc
22 13 10 9.0 osh-native mut+alloc+free+gc+exit
25 12 13 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 16 9 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 8 12 10.5 osh-native-souffle mut+alloc
21 9 13 10.5 osh-native-souffle mut+alloc+free
21 12 9 8.4 osh-native-souffle mut+alloc+free+gc
21 8 14 8.7 osh-native-souffle mut+alloc+free+gc+exit