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,755 1,282 6 406,612 5 203,306 osh-native
parse.configure-cpython 33 4 10 12.0 17.6 476,755 1,282 6 406,208 5 203,104 osh-native-souffle
parse.configure-coreutils 147 22 62 44.5 49.8 1,653,343 4,764 12 1,025,534 6 764,310 osh-native
parse.configure-coreutils 134 23 59 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.4 101,946 180 2 75,038 1 37,519 osh-native
parse.abuild 9 1 2 2.4 7.9 101,946 180 3 87,100 1 43,550 osh-native-souffle
ex.compute-fib 27 0 2 2.1 8.0 579,610 22,608 12 50,000 0 2,923 osh-native
ex.compute-fib 21 0 1 2.1 7.6 579,610 22,608 12 50,000 0 2,862 osh-native-souffle
ex.bashcomp-parse-help 182 0 4 10.3 8.9 995,292 15,258 21 50,000 0 3,905 osh-native
ex.bashcomp-parse-help 175 0 3 10.3 8.3 995,291 15,258 21 50,000 0 3,848 osh-native-souffle
ex.abuild-print-help 23 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.8 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.4 dash -
24 23 0 3.0 bash -
109 62 53 3.4 zsh -
16 16 0 29.9 bumpleak/osh mut
19 19 0 29.5 _bin/cxx-opt+bumproot/osh mut
23 11 11 30.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 21 8 25.2 osh-native mut+alloc
31 16 16 25.7 osh-native mut+alloc+free
36 28 8 18.0 osh-native mut+alloc+free+gc
38 33 4 18.0 osh-native mut+alloc+free+gc+exit
44 28 16 32.2 _bin/cxx-opt+nopool/osh mut+alloc
48 40 8 22.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 21 4 24.9 osh-native-souffle mut+alloc
28 20 8 25.3 osh-native-souffle mut+alloc+free
33 21 12 17.6 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
22 21 0 1.6 dash -
79 75 4 3.1 bash -
389 230 180 3.7 zsh -
49 38 11 85.0 bumpleak/osh mut
60 44 16 85.0 _bin/cxx-opt+bumproot/osh mut
71 62 8 85.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 68 28 73.4 osh-native mut+alloc
106 70 35 75.4 osh-native mut+alloc+free
147 135 12 49.8 osh-native mut+alloc+free+gc
155 134 20 50.6 osh-native mut+alloc+free+gc+exit
139 83 55 98.8 _bin/cxx-opt+nopool/osh mut+alloc
204 168 36 68.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 62 25 73.1 osh-native-souffle mut+alloc
95 67 28 74.8 osh-native-souffle mut+alloc+free
134 110 24 49.3 osh-native-souffle mut+alloc+free+gc
141 104 36 50.2 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 -
6 6 0 3.0 bash -
8 8 0 3.3 zsh -
6 3 3 11.0 bumpleak/osh mut
6 3 3 12.2 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 9 0 10.0 osh-native mut+alloc
9 9 0 10.4 osh-native mut+alloc+free
9 6 3 8.4 osh-native mut+alloc+free+gc
9 9 0 8.5 osh-native mut+alloc+free+gc+exit
12 0 12 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 0 8 9.7 osh-native-souffle mut+alloc
8 0 8 9.8 osh-native-souffle mut+alloc+free
9 9 0 7.9 osh-native-souffle mut+alloc+free+gc
9 9 0 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
11 10 0 1.4 dash -
29 28 0 2.9 bash -
23 19 4 3.1 zsh -
19 14 5 32.3 bumpleak/osh mut
26 26 0 33.1 _bin/cxx-opt+bumproot/osh mut
29 18 11 32.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 20 16 26.2 osh-native mut+alloc
37 25 12 26.3 osh-native mut+alloc+free
27 23 4 8.0 osh-native mut+alloc+free+gc
27 19 8 8.0 osh-native mut+alloc+free+gc+exit
53 41 12 36.0 _bin/cxx-opt+nopool/osh mut+alloc
36 36 0 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
29 18 11 26.0 osh-native-souffle mut+alloc
32 27 4 26.1 osh-native-souffle mut+alloc+free
21 21 0 7.6 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 70 4 3.0 bash -
170 93 77 54.9 bumpleak/osh mut
182 107 75 55.0 _bin/cxx-opt+bumproot/osh mut
196 108 88 56.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 144 68 47.3 osh-native mut+alloc
220 132 88 49.1 osh-native mut+alloc+free
182 138 45 8.9 osh-native mut+alloc+free+gc
181 125 56 8.8 osh-native mut+alloc+free+gc+exit
230 139 91 63.2 _bin/cxx-opt+nopool/osh mut+alloc
210 141 69 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 132 72 46.9 osh-native-souffle mut+alloc
211 154 57 48.7 osh-native-souffle mut+alloc+free
175 127 48 8.3 osh-native-souffle mut+alloc+free+gc
174 122 51 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
10 4 6 3.5 dash -
21 15 7 4.3 bash -
18 12 7 3.4 zsh -
18 16 3 11.3 bumpleak/osh mut
21 11 10 13.4 _bin/cxx-opt+bumproot/osh mut
22 16 6 13.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 17 5 11.0 osh-native mut+alloc
22 14 8 11.1 osh-native mut+alloc+free
23 16 7 9.0 osh-native mut+alloc+free+gc
23 13 10 9.2 osh-native mut+alloc+free+gc+exit
25 16 9 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 16 9 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 13 8 10.6 osh-native-souffle mut+alloc
21 12 10 10.7 osh-native-souffle mut+alloc+free
21 12 9 8.8 osh-native-souffle mut+alloc+free+gc
22 18 5 8.5 osh-native-souffle mut+alloc+free+gc+exit