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 41 7 14 12.0 18.0 476,769 1,282 6 406,624 5 203,312 osh-native
parse.configure-cpython 33 4 10 12.0 17.4 476,769 1,282 6 406,614 5 203,307 osh-native-souffle
parse.configure-coreutils 162 28 76 44.5 50.0 1,653,357 4,764 12 1,025,546 6 764,316 osh-native
parse.configure-coreutils 154 26 76 44.5 49.4 1,653,356 4,764 12 1,025,536 6 764,311 osh-native-souffle
parse.abuild 10 1 1 2.6 8.5 101,960 180 2 75,050 1 37,525 osh-native
parse.abuild 8 1 1 2.6 8.3 101,960 180 2 75,040 1 37,520 osh-native-souffle
ex.compute-fib 28 0 1 2.2 8.0 579,724 22,608 12 50,000 0 2,929 osh-native
ex.compute-fib 22 0 2 2.2 7.6 579,724 22,608 12 50,000 0 2,924 osh-native-souffle
ex.bashcomp-parse-help 184 0 4 11.1 8.9 1,021,041 15,258 22 50,000 0 3,918 osh-native
ex.bashcomp-parse-help 174 0 4 11.1 8.3 1,021,040 15,258 22 50,000 0 3,909 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 8.9 116,359 277 3 85,268 1 42,634 osh-native
ex.abuild-print-help 21 1 2 2.8 8.8 116,359 277 3 85,258 1 42,629 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 -
101 60 48 3.4 zsh -
16 12 4 29.2 bumpleak/osh mut
20 17 3 29.4 _bin/cxx-opt+bumproot/osh mut
25 21 4 30.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 19 11 25.2 osh-native mut+alloc
31 25 6 25.6 osh-native mut+alloc+free
41 33 8 18.0 osh-native mut+alloc+free+gc
41 37 4 18.0 osh-native mut+alloc+free+gc+exit
42 25 17 32.4 _bin/cxx-opt+nopool/osh mut+alloc
51 44 7 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 17 10 24.8 osh-native-souffle mut+alloc
29 18 11 25.4 osh-native-souffle mut+alloc+free
33 25 8 17.4 osh-native-souffle mut+alloc+free+gc
35 25 9 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 -
78 77 1 3.3 bash -
365 198 190 3.7 zsh -
49 36 13 84.7 bumpleak/osh mut
62 54 8 85.0 _bin/cxx-opt+bumproot/osh mut
70 55 15 86.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 64 32 73.5 osh-native mut+alloc
107 77 29 75.4 osh-native mut+alloc+free
162 140 22 50.0 osh-native mut+alloc+free+gc
172 152 20 50.5 osh-native mut+alloc+free+gc+exit
142 100 43 98.9 _bin/cxx-opt+nopool/osh mut+alloc
239 210 29 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 44 44 73.1 osh-native-souffle mut+alloc
96 64 32 74.9 osh-native-souffle mut+alloc+free
154 131 23 49.4 osh-native-souffle mut+alloc+free+gc
158 136 22 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.3 dash -
6 4 1 2.9 bash -
7 4 3 3.3 zsh -
7 4 3 11.6 bumpleak/osh mut
7 6 1 11.5 _bin/cxx-opt+bumproot/osh mut
7 6 1 11.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 5 4 10.0 osh-native mut+alloc
9 7 2 10.0 osh-native mut+alloc+free
10 7 3 8.5 osh-native mut+alloc+free+gc
10 8 1 8.4 osh-native mut+alloc+free+gc+exit
12 6 5 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 5 7 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 5 3 9.7 osh-native-souffle mut+alloc
8 5 3 9.7 osh-native-souffle mut+alloc+free
8 6 2 8.3 osh-native-souffle mut+alloc+free+gc
9 5 4 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 27 2 3.0 bash -
23 18 5 3.3 zsh -
19 15 3 31.3 bumpleak/osh mut
27 24 3 32.5 _bin/cxx-opt+bumproot/osh mut
29 24 5 33.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 27 10 26.5 osh-native mut+alloc
38 28 10 26.6 osh-native mut+alloc+free
28 27 1 8.0 osh-native mut+alloc+free+gc
30 25 5 8.1 osh-native mut+alloc+free+gc+exit
54 35 18 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 35 2 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 22 8 26.0 osh-native-souffle mut+alloc
31 24 7 26.3 osh-native-souffle mut+alloc+free
22 19 3 7.6 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
72 66 6 3.0 bash -
167 109 57 55.8 bumpleak/osh mut
181 124 57 57.4 _bin/cxx-opt+bumproot/osh mut
196 138 58 58.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 129 85 49.0 osh-native mut+alloc
222 145 77 50.8 osh-native mut+alloc+free
184 135 49 8.9 osh-native mut+alloc+free+gc
183 126 57 8.8 osh-native mut+alloc+free+gc+exit
239 150 89 64.6 _bin/cxx-opt+nopool/osh mut+alloc
218 166 52 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 136 68 48.6 osh-native-souffle mut+alloc
214 122 92 50.3 osh-native-souffle mut+alloc+free
174 119 55 8.3 osh-native-souffle mut+alloc+free+gc
174 128 46 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 4 3.4 dash -
19 10 10 4.5 bash -
17 8 10 3.4 zsh -
18 8 11 13.2 bumpleak/osh mut
20 6 14 13.9 _bin/cxx-opt+bumproot/osh mut
21 6 16 14.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
23 9 15 11.1 osh-native mut+alloc
23 13 11 11.3 osh-native mut+alloc+free
22 11 12 8.9 osh-native mut+alloc+free+gc
23 12 12 9.2 osh-native mut+alloc+free+gc+exit
25 13 12 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 14 11 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 9 11 10.7 osh-native-souffle mut+alloc
21 5 17 10.6 osh-native-souffle mut+alloc+free
21 13 8 8.8 osh-native-souffle mut+alloc+free+gc
22 11 11 8.7 osh-native-souffle mut+alloc+free+gc+exit