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 17.8 476,767 1,282 6 406,620 5 203,310 osh-native
parse.configure-cpython 32 3 9 12.0 17.4 476,767 1,282 6 406,610 5 203,305 osh-native-souffle
parse.configure-coreutils 148 23 60 44.5 49.7 1,653,355 4,764 12 1,025,542 6 764,314 osh-native
parse.configure-coreutils 137 23 59 44.5 49.4 1,653,354 4,764 12 1,025,532 6 764,309 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,958 180 2 75,046 1 37,523 osh-native
parse.abuild 8 1 1 2.6 8.3 101,958 180 2 75,036 1 37,518 osh-native-souffle
ex.compute-fib 28 0 1 2.2 8.0 579,722 22,608 12 50,000 0 2,927 osh-native
ex.compute-fib 22 0 1 2.2 7.6 579,722 22,608 12 50,000 0 2,922 osh-native-souffle
ex.bashcomp-parse-help 182 0 4 11.1 8.8 1,021,039 15,258 22 50,000 0 3,916 osh-native
ex.bashcomp-parse-help 173 0 4 11.1 8.5 1,021,038 15,258 22 50,000 0 3,916 osh-native-souffle
ex.abuild-print-help 21 1 2 2.8 8.9 116,357 277 3 85,264 1 42,632 osh-native
ex.abuild-print-help 20 1 2 2.8 8.7 116,357 277 3 85,254 1 42,627 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 -
100 53 54 3.4 zsh -
16 14 2 29.0 bumpleak/osh mut
20 18 2 30.5 _bin/cxx-opt+bumproot/osh mut
22 16 6 30.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 20 9 25.3 osh-native mut+alloc
31 21 10 25.6 osh-native mut+alloc+free
35 31 4 17.8 osh-native mut+alloc+free+gc
35 28 7 18.2 osh-native mut+alloc+free+gc+exit
43 29 14 32.5 _bin/cxx-opt+nopool/osh mut+alloc
47 41 6 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 20 6 24.9 osh-native-souffle mut+alloc
28 21 7 25.3 osh-native-souffle mut+alloc+free
32 26 6 17.4 osh-native-souffle mut+alloc+free+gc
32 27 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 20 1 1.4 dash -
78 75 3 3.1 bash -
368 195 194 3.7 zsh -
50 38 12 85.2 bumpleak/osh mut
61 50 11 84.7 _bin/cxx-opt+bumproot/osh mut
69 56 13 85.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
94 61 33 73.5 osh-native mut+alloc
105 70 35 75.4 osh-native mut+alloc+free
148 125 23 49.7 osh-native mut+alloc+free+gc
154 124 30 50.5 osh-native mut+alloc+free+gc+exit
140 94 46 98.9 _bin/cxx-opt+nopool/osh mut+alloc
201 174 27 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
89 56 33 73.3 osh-native-souffle mut+alloc
94 59 34 75.0 osh-native-souffle mut+alloc+free
137 114 23 49.4 osh-native-souffle mut+alloc+free+gc
139 123 16 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 4 4 3.3 zsh -
6 4 2 11.2 bumpleak/osh mut
7 6 1 11.4 _bin/cxx-opt+bumproot/osh mut
7 5 2 11.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 6 3 10.1 osh-native mut+alloc
8 5 4 10.1 osh-native mut+alloc+free
9 7 2 8.5 osh-native mut+alloc+free+gc
9 6 3 8.5 osh-native mut+alloc+free+gc+exit
11 7 5 11.5 _bin/cxx-opt+nopool/osh mut+alloc
11 9 2 9.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 3 5 9.6 osh-native-souffle mut+alloc
8 6 2 9.7 osh-native-souffle mut+alloc+free
8 2 6 8.3 osh-native-souffle mut+alloc+free+gc
8 7 1 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 10 0 1.4 dash -
28 28 0 3.0 bash -
23 21 2 3.1 zsh -
19 15 4 32.1 bumpleak/osh mut
26 21 5 32.0 _bin/cxx-opt+bumproot/osh mut
28 23 5 32.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 26 10 26.3 osh-native mut+alloc
37 26 12 26.6 osh-native mut+alloc+free
28 25 3 8.0 osh-native mut+alloc+free+gc
28 24 4 7.9 osh-native mut+alloc+free+gc+exit
55 34 21 36.1 _bin/cxx-opt+nopool/osh mut+alloc
39 35 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 19 11 26.0 osh-native-souffle mut+alloc
31 18 13 26.3 osh-native-souffle mut+alloc+free
22 20 2 7.6 osh-native-souffle mut+alloc+free+gc
21 17 4 7.5 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
73 66 7 3.1 bash -
170 115 55 56.6 bumpleak/osh mut
184 129 55 57.8 _bin/cxx-opt+bumproot/osh mut
196 136 60 58.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 132 80 48.9 osh-native mut+alloc
220 151 68 50.8 osh-native mut+alloc+free
182 136 46 8.8 osh-native mut+alloc+free+gc
184 132 52 8.9 osh-native mut+alloc+free+gc+exit
238 154 84 64.6 _bin/cxx-opt+nopool/osh mut+alloc
211 156 56 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 139 66 48.4 osh-native-souffle mut+alloc
210 141 69 50.3 osh-native-souffle mut+alloc+free
173 138 35 8.5 osh-native-souffle mut+alloc+free+gc
174 109 65 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 1 8 3.4 dash -
19 10 10 4.3 bash -
17 8 10 3.4 zsh -
19 10 9 12.9 bumpleak/osh mut
19 7 12 12.4 _bin/cxx-opt+bumproot/osh mut
19 8 11 12.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 9 11 11.0 osh-native mut+alloc
22 11 11 11.3 osh-native mut+alloc+free
21 10 12 8.9 osh-native mut+alloc+free+gc
22 14 9 8.9 osh-native mut+alloc+free+gc+exit
24 12 13 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 13 12 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 11 9 10.6 osh-native-souffle mut+alloc
21 9 13 10.6 osh-native-souffle mut+alloc+free
20 11 10 8.7 osh-native-souffle mut+alloc+free+gc
21 10 11 8.5 osh-native-souffle mut+alloc+free+gc+exit