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 35 3 9 12.0 18.1 476,755 1,282 6 406,612 5 203,306 osh-native
parse.configure-cpython 32 3 10 12.0 17.4 476,755 1,282 6 406,208 5 203,104 osh-native-souffle
parse.configure-coreutils 141 22 56 44.5 49.8 1,653,343 4,764 12 1,025,534 6 764,310 osh-native
parse.configure-coreutils 138 22 62 44.5 49.3 1,653,342 4,764 12 1,025,404 6 764,245 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,946 180 2 75,038 1 37,519 osh-native
parse.abuild 9 1 2 2.4 8.1 101,946 180 3 87,100 1 43,550 osh-native-souffle
ex.compute-fib 29 0 2 2.1 8.1 579,610 22,608 12 50,000 0 2,923 osh-native
ex.compute-fib 22 0 2 2.1 7.5 579,610 22,608 12 50,000 0 2,862 osh-native-souffle
ex.bashcomp-parse-help 180 0 3 10.3 8.5 995,292 15,258 21 50,000 0 3,905 osh-native
ex.bashcomp-parse-help 176 0 4 10.3 8.1 995,291 15,258 21 50,000 0 3,848 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.0 116,322 277 3 85,256 1 42,628 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 116,322 277 3 85,132 1 42,566 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 -
104 53 57 3.4 zsh -
16 12 4 29.3 bumpleak/osh mut
19 15 4 29.3 _bin/cxx-opt+bumproot/osh mut
23 18 4 29.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 20 8 25.2 osh-native mut+alloc
30 15 15 25.6 osh-native mut+alloc+free
35 23 12 18.1 osh-native mut+alloc+free+gc
35 35 0 18.0 osh-native mut+alloc+free+gc+exit
42 34 8 32.4 _bin/cxx-opt+nopool/osh mut+alloc
47 39 8 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
25 14 11 24.8 osh-native-souffle mut+alloc
27 19 8 25.2 osh-native-souffle mut+alloc+free
32 32 0 17.4 osh-native-souffle mut+alloc+free+gc
33 33 0 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 17 4 1.4 dash -
79 75 4 3.3 bash -
379 213 185 3.5 zsh -
48 40 8 85.8 bumpleak/osh mut
59 55 4 86.2 _bin/cxx-opt+bumproot/osh mut
69 50 19 84.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 64 32 73.4 osh-native mut+alloc
104 68 36 75.3 osh-native mut+alloc+free
141 121 20 49.8 osh-native mut+alloc+free+gc
147 123 24 50.5 osh-native mut+alloc+free+gc+exit
136 96 40 98.3 _bin/cxx-opt+nopool/osh mut+alloc
203 171 32 68.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 71 16 73.2 osh-native-souffle mut+alloc
94 74 20 75.0 osh-native-souffle mut+alloc+free
138 114 24 49.3 osh-native-souffle mut+alloc+free+gc
139 111 28 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 3 3 3.0 bash -
8 4 4 3.1 zsh -
6 0 6 11.4 bumpleak/osh mut
6 3 3 10.7 _bin/cxx-opt+bumproot/osh mut
7 3 3 11.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 10.0 osh-native mut+alloc
9 0 9 10.2 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
9 5 5 8.5 osh-native mut+alloc+free+gc+exit
11 7 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 11 0 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.7 osh-native-souffle mut+alloc
8 4 4 9.8 osh-native-souffle mut+alloc+free
9 9 0 8.1 osh-native-souffle mut+alloc+free+gc
9 6 3 8.0 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.6 dash -
28 28 0 3.0 bash -
24 8 16 3.3 zsh -
18 14 4 32.8 bumpleak/osh mut
25 21 4 31.6 _bin/cxx-opt+bumproot/osh mut
27 19 8 32.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 32 4 26.3 osh-native mut+alloc
37 33 4 26.5 osh-native mut+alloc+free
29 29 0 8.1 osh-native mut+alloc+free+gc
28 27 0 8.0 osh-native mut+alloc+free+gc+exit
54 37 17 35.7 _bin/cxx-opt+nopool/osh mut+alloc
37 36 0 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 21 8 26.0 osh-native-souffle mut+alloc
30 30 0 26.2 osh-native-souffle mut+alloc+free
22 22 0 7.5 osh-native-souffle mut+alloc+free+gc
21 21 0 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
74 69 4 3.1 bash -
168 112 56 55.8 bumpleak/osh mut
182 129 52 54.6 _bin/cxx-opt+bumproot/osh mut
192 144 48 55.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
210 145 64 47.4 osh-native mut+alloc
215 135 80 49.1 osh-native mut+alloc+free
180 132 48 8.5 osh-native mut+alloc+free+gc
181 132 48 8.9 osh-native mut+alloc+free+gc+exit
234 173 60 63.5 _bin/cxx-opt+nopool/osh mut+alloc
210 153 57 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 140 64 46.8 osh-native-souffle mut+alloc
211 115 95 48.7 osh-native-souffle mut+alloc+free
176 112 64 8.1 osh-native-souffle mut+alloc+free+gc
177 110 67 8.1 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 8 1 3.5 dash -
19 17 2 4.2 bash -
18 10 8 3.5 zsh -
19 11 8 12.3 bumpleak/osh mut
21 13 8 13.3 _bin/cxx-opt+bumproot/osh mut
21 19 3 13.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 7 15 11.1 osh-native mut+alloc
22 10 12 11.1 osh-native mut+alloc+free
22 19 3 9.0 osh-native mut+alloc+free+gc
22 12 11 9.2 osh-native mut+alloc+free+gc+exit
24 21 3 12.7 _bin/cxx-opt+nopool/osh mut+alloc
24 17 8 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 11 9 10.5 osh-native-souffle mut+alloc
21 17 5 10.7 osh-native-souffle mut+alloc+free
21 19 2 8.7 osh-native-souffle mut+alloc+free+gc
21 20 2 8.7 osh-native-souffle mut+alloc+free+gc+exit