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.7 476,760 1,282 6 406,322 5 203,161 osh-native-souffle
parse.configure-coreutils 167 26 78 44.5 49.8 1,653,348 4,764 12 1,025,528 6 764,307 osh-native
parse.configure-coreutils 160 28 81 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.4 101,951 180 2 75,022 1 37,511 osh-native-souffle
ex.compute-fib 28 0 1 2.2 8.0 579,715 22,608 12 50,000 0 2,920 osh-native
ex.compute-fib 22 0 1 2.2 7.6 579,715 22,608 12 50,000 0 2,915 osh-native-souffle
ex.bashcomp-parse-help 183 0 4 11.1 8.8 1,021,030 15,258 22 50,000 0 3,909 osh-native
ex.bashcomp-parse-help 175 0 4 11.1 8.4 1,021,029 15,258 22 50,000 0 3,914 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 9.0 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 6 0 1.6 dash -
23 21 2 3.0 bash -
101 54 54 3.4 zsh -
16 10 6 29.0 bumpleak/osh mut
20 16 4 28.7 _bin/cxx-opt+bumproot/osh mut
22 15 7 29.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 17 13 25.0 osh-native mut+alloc
32 20 12 25.7 osh-native mut+alloc+free
36 29 7 18.0 osh-native mut+alloc+free+gc
37 28 9 18.0 osh-native mut+alloc+free+gc+exit
42 32 9 32.4 _bin/cxx-opt+nopool/osh mut+alloc
51 42 9 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 18 9 24.8 osh-native-souffle mut+alloc
29 14 15 25.2 osh-native-souffle mut+alloc+free
33 28 5 17.7 osh-native-souffle mut+alloc+free+gc
36 30 6 17.8 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 -
77 76 1 3.3 bash -
367 212 175 3.5 zsh -
49 40 9 84.3 bumpleak/osh mut
61 53 8 84.7 _bin/cxx-opt+bumproot/osh mut
71 56 14 86.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 66 31 73.5 osh-native mut+alloc
105 80 25 75.5 osh-native mut+alloc+free
167 147 20 49.8 osh-native mut+alloc+free+gc
169 146 23 50.4 osh-native mut+alloc+free+gc+exit
135 94 41 98.9 _bin/cxx-opt+nopool/osh mut+alloc
227 192 35 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 54 34 73.1 osh-native-souffle mut+alloc
97 68 29 75.0 osh-native-souffle mut+alloc+free
160 137 23 49.4 osh-native-souffle mut+alloc+free+gc
165 138 27 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 -
5 4 2 3.0 bash -
7 5 2 3.3 zsh -
6 5 1 12.1 bumpleak/osh mut
7 4 3 11.6 _bin/cxx-opt+bumproot/osh mut
8 2 6 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 5 4 9.8 osh-native mut+alloc
9 7 2 10.2 osh-native mut+alloc+free
9 8 1 8.7 osh-native mut+alloc+free+gc
9 7 2 8.5 osh-native mut+alloc+free+gc+exit
12 9 3 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 9 3 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.7 osh-native-souffle mut+alloc
8 2 7 9.8 osh-native-souffle mut+alloc+free
8 7 1 8.4 osh-native-souffle mut+alloc+free+gc
8 6 3 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 16 3 31.7 bumpleak/osh mut
27 26 1 32.2 _bin/cxx-opt+bumproot/osh mut
29 23 5 31.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 26 11 26.5 osh-native mut+alloc
38 23 15 26.5 osh-native mut+alloc+free
28 27 2 8.0 osh-native mut+alloc+free+gc
28 25 3 8.0 osh-native mut+alloc+free+gc+exit
54 35 19 35.9 _bin/cxx-opt+nopool/osh mut+alloc
38 34 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 20 10 25.8 osh-native-souffle mut+alloc
31 23 9 26.3 osh-native-souffle mut+alloc+free
22 21 1 7.6 osh-native-souffle mut+alloc+free+gc
22 19 3 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
72 66 6 3.1 bash -
168 115 53 56.4 bumpleak/osh mut
182 128 54 56.9 _bin/cxx-opt+bumproot/osh mut
200 151 49 57.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 144 70 49.1 osh-native mut+alloc
224 151 69 50.8 osh-native mut+alloc+free
183 128 55 8.8 osh-native mut+alloc+free+gc
183 132 51 8.8 osh-native mut+alloc+free+gc+exit
235 159 76 64.6 _bin/cxx-opt+nopool/osh mut+alloc
214 155 59 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
206 134 72 48.6 osh-native-souffle mut+alloc
211 138 73 50.3 osh-native-souffle mut+alloc+free
175 123 52 8.4 osh-native-souffle mut+alloc+free+gc
174 111 63 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 7 2 3.5 dash -
19 12 8 4.3 bash -
17 7 11 3.4 zsh -
20 9 12 12.9 bumpleak/osh mut
21 8 13 13.0 _bin/cxx-opt+bumproot/osh mut
23 8 15 13.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 12 10 11.0 osh-native mut+alloc
24 10 14 11.3 osh-native mut+alloc+free
23 9 15 9.0 osh-native mut+alloc+free+gc
24 13 11 9.3 osh-native mut+alloc+free+gc+exit
24 8 17 12.6 _bin/cxx-opt+nopool/osh mut+alloc
25 16 9 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 8 12 10.7 osh-native-souffle mut+alloc
22 8 14 10.7 osh-native-souffle mut+alloc+free
21 12 9 8.5 osh-native-souffle mut+alloc+free+gc
22 11 12 8.7 osh-native-souffle mut+alloc+free+gc+exit