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 17.7 476,760 1,282 6 406,606 5 203,303 osh-native
parse.configure-cpython 33 4 9 12.0 17.8 476,760 1,282 6 406,322 5 203,161 osh-native-souffle
parse.configure-coreutils 155 24 68 44.5 49.8 1,653,348 4,764 12 1,025,528 6 764,307 osh-native
parse.configure-coreutils 150 25 73 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.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 29 0 1 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.6 579,715 22,608 12 50,000 0 2,915 osh-native-souffle
ex.bashcomp-parse-help 182 0 4 11.1 8.8 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.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 -
102 66 42 3.3 zsh -
17 13 4 28.0 bumpleak/osh mut
20 19 1 30.2 _bin/cxx-opt+bumproot/osh mut
23 18 5 29.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 22 8 25.3 osh-native mut+alloc
32 22 10 25.6 osh-native mut+alloc+free
37 33 4 17.7 osh-native mut+alloc+free+gc
38 31 7 18.1 osh-native mut+alloc+free+gc+exit
43 30 13 32.5 _bin/cxx-opt+nopool/osh mut+alloc
50 42 8 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 18 9 24.9 osh-native-souffle mut+alloc
29 18 11 25.2 osh-native-souffle mut+alloc+free
33 24 9 17.8 osh-native-souffle mut+alloc+free+gc
34 24 10 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 22 0 1.6 dash -
78 77 1 3.1 bash -
364 204 181 3.5 zsh -
50 42 8 85.7 bumpleak/osh mut
59 50 9 84.2 _bin/cxx-opt+bumproot/osh mut
70 62 8 86.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 67 31 73.4 osh-native mut+alloc
104 78 27 75.2 osh-native mut+alloc+free
155 135 20 49.8 osh-native mut+alloc+free+gc
162 140 22 50.3 osh-native mut+alloc+free+gc+exit
136 108 29 98.9 _bin/cxx-opt+nopool/osh mut+alloc
228 190 38 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
86 49 37 73.0 osh-native-souffle mut+alloc
96 58 38 74.8 osh-native-souffle mut+alloc+free
150 123 27 49.4 osh-native-souffle mut+alloc+free+gc
148 133 15 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 -
5 4 2 3.0 bash -
7 5 2 3.3 zsh -
6 5 1 10.3 bumpleak/osh mut
7 4 3 11.6 _bin/cxx-opt+bumproot/osh mut
7 6 1 11.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 3 6 10.0 osh-native mut+alloc
9 4 5 10.1 osh-native mut+alloc+free
9 8 1 8.7 osh-native mut+alloc+free+gc
9 6 3 8.7 osh-native mut+alloc+free+gc+exit
12 7 5 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 7 1 9.4 osh-native-souffle mut+alloc
8 5 3 9.6 osh-native-souffle mut+alloc+free
8 5 3 8.1 osh-native-souffle mut+alloc+free+gc
9 6 3 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 10 0 1.4 dash -
29 28 1 2.9 bash -
23 19 4 3.3 zsh -
19 13 6 32.5 bumpleak/osh mut
26 20 6 33.1 _bin/cxx-opt+bumproot/osh mut
28 23 5 32.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 26 12 26.3 osh-native mut+alloc
38 27 11 26.6 osh-native mut+alloc+free
29 27 2 8.0 osh-native mut+alloc+free+gc
29 25 4 8.0 osh-native mut+alloc+free+gc+exit
54 41 13 36.1 _bin/cxx-opt+nopool/osh mut+alloc
38 35 3 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 22 8 26.1 osh-native-souffle mut+alloc
31 21 10 26.2 osh-native-souffle mut+alloc+free
21 19 2 7.6 osh-native-souffle mut+alloc+free+gc
22 20 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
72 71 1 3.3 bash -
167 99 69 56.8 bumpleak/osh mut
180 121 59 57.5 _bin/cxx-opt+bumproot/osh mut
198 131 67 57.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
216 143 73 49.0 osh-native mut+alloc
220 148 72 51.0 osh-native mut+alloc+free
182 131 51 8.8 osh-native mut+alloc+free+gc
184 131 53 8.9 osh-native mut+alloc+free+gc+exit
233 157 76 64.6 _bin/cxx-opt+nopool/osh mut+alloc
211 151 60 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
207 147 60 48.5 osh-native-souffle mut+alloc
210 142 69 50.4 osh-native-souffle mut+alloc+free
174 120 54 8.4 osh-native-souffle mut+alloc+free+gc
174 111 62 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
9 4 5 3.4 dash -
19 9 10 4.5 bash -
17 6 12 3.4 zsh -
18 8 10 11.3 bumpleak/osh mut
19 10 10 12.3 _bin/cxx-opt+bumproot/osh mut
21 12 10 13.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 11 11 11.1 osh-native mut+alloc
22 9 14 11.1 osh-native mut+alloc+free
22 12 11 8.9 osh-native mut+alloc+free+gc
23 14 10 9.2 osh-native mut+alloc+free+gc+exit
24 11 14 12.7 _bin/cxx-opt+nopool/osh mut+alloc
26 13 13 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 6 14 10.6 osh-native-souffle mut+alloc
21 10 12 10.7 osh-native-souffle mut+alloc+free
21 13 9 8.5 osh-native-souffle mut+alloc+free+gc
21 12 10 8.7 osh-native-souffle mut+alloc+free+gc+exit