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 33 4 10 12.0 17.4 476,760 1,282 6 406,322 5 203,161 osh-native-souffle
parse.configure-coreutils 158 27 73 44.5 50.0 1,653,348 4,764 12 1,025,528 6 764,307 osh-native
parse.configure-coreutils 148 26 73 44.5 49.5 1,653,347 4,764 12 1,025,518 6 764,302 osh-native-souffle
parse.abuild 9 1 1 2.6 8.7 101,951 180 2 75,032 1 37,516 osh-native
parse.abuild 8 1 1 2.6 8.1 101,951 180 2 75,022 1 37,511 osh-native-souffle
ex.compute-fib 28 0 2 2.2 8.1 579,715 22,608 12 50,000 0 2,920 osh-native
ex.compute-fib 22 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.9 1,021,030 15,258 22 50,000 0 3,909 osh-native
ex.bashcomp-parse-help 173 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 9.2 116,334 277 3 85,250 1 42,625 osh-native
ex.abuild-print-help 21 1 2 2.8 8.5 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 5 1 1.6 dash -
23 22 1 3.0 bash -
103 55 54 3.5 zsh -
16 13 3 29.7 bumpleak/osh mut
20 16 4 30.1 _bin/cxx-opt+bumproot/osh mut
23 16 7 29.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 19 10 25.0 osh-native mut+alloc
31 23 8 25.7 osh-native mut+alloc+free
36 31 5 18.0 osh-native mut+alloc+free+gc
38 29 9 17.8 osh-native mut+alloc+free+gc+exit
42 28 14 32.4 _bin/cxx-opt+nopool/osh mut+alloc
49 40 9 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 20 6 24.6 osh-native-souffle mut+alloc
29 22 7 25.3 osh-native-souffle mut+alloc+free
33 28 5 17.4 osh-native-souffle mut+alloc+free+gc
36 28 8 17.6 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 19 2 1.6 dash -
78 76 2 3.3 bash -
367 196 189 3.7 zsh -
50 39 11 84.8 bumpleak/osh mut
59 49 10 84.5 _bin/cxx-opt+bumproot/osh mut
70 56 15 86.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
95 64 31 73.6 osh-native mut+alloc
104 68 36 75.4 osh-native mut+alloc+free
158 140 18 50.0 osh-native mut+alloc+free+gc
169 148 20 50.5 osh-native mut+alloc+free+gc+exit
137 99 39 98.9 _bin/cxx-opt+nopool/osh mut+alloc
221 190 31 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
89 53 35 73.0 osh-native-souffle mut+alloc
100 65 36 75.0 osh-native-souffle mut+alloc+free
148 126 22 49.5 osh-native-souffle mut+alloc+free+gc
148 131 17 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 3.0 bash -
7 2 5 3.4 zsh -
6 5 1 10.4 bumpleak/osh mut
7 5 1 12.6 _bin/cxx-opt+bumproot/osh mut
7 3 5 11.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 7 2 10.2 osh-native mut+alloc
9 6 3 10.2 osh-native mut+alloc+free
9 6 3 8.7 osh-native mut+alloc+free+gc
9 6 3 8.5 osh-native mut+alloc+free+gc+exit
12 6 6 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 10 2 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.7 osh-native-souffle mut+alloc
8 7 1 9.7 osh-native-souffle mut+alloc+free
8 7 1 8.1 osh-native-souffle mut+alloc+free+gc
9 8 1 8.1 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 8 2 1.4 dash -
28 26 2 3.0 bash -
23 18 5 3.3 zsh -
18 15 3 30.7 bumpleak/osh mut
26 20 6 32.5 _bin/cxx-opt+bumproot/osh mut
28 23 5 32.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 31 6 26.2 osh-native mut+alloc
38 30 8 26.7 osh-native mut+alloc+free
28 26 2 8.1 osh-native mut+alloc+free+gc
29 27 2 8.0 osh-native mut+alloc+free+gc+exit
53 39 14 35.9 _bin/cxx-opt+nopool/osh mut+alloc
38 34 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 21 9 26.0 osh-native-souffle mut+alloc
31 23 8 26.2 osh-native-souffle mut+alloc+free
22 19 3 7.7 osh-native-souffle mut+alloc+free+gc
21 19 2 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.3 bash -
168 104 64 57.3 bumpleak/osh mut
182 135 47 57.6 _bin/cxx-opt+bumproot/osh mut
195 136 59 58.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 136 77 49.0 osh-native mut+alloc
223 143 80 50.9 osh-native mut+alloc+free
183 135 48 8.9 osh-native mut+alloc+free+gc
182 136 46 8.8 osh-native mut+alloc+free+gc+exit
232 160 72 64.6 _bin/cxx-opt+nopool/osh mut+alloc
213 157 56 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 131 74 48.4 osh-native-souffle mut+alloc
210 141 70 50.3 osh-native-souffle mut+alloc+free
173 126 47 8.4 osh-native-souffle mut+alloc+free+gc
183 122 58 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 5 5 3.5 dash -
19 9 11 4.3 bash -
17 6 11 3.5 zsh -
17 9 8 11.6 bumpleak/osh mut
20 11 10 13.4 _bin/cxx-opt+bumproot/osh mut
21 10 12 13.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 11 11 11.0 osh-native mut+alloc
23 11 12 11.1 osh-native mut+alloc+free
22 12 10 9.2 osh-native mut+alloc+free+gc
23 11 12 9.2 osh-native mut+alloc+free+gc+exit
25 11 14 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 14 12 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 10 10 10.6 osh-native-souffle mut+alloc
23 8 15 10.7 osh-native-souffle mut+alloc+free
21 10 12 8.5 osh-native-souffle mut+alloc+free+gc
22 10 12 8.5 osh-native-souffle mut+alloc+free+gc+exit