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 37 4 10 12.0 17.8 476,768 1,282 6 406,620 5 203,310 osh-native
parse.configure-cpython 33 3 9 12.0 17.6 476,768 1,282 6 406,610 5 203,305 osh-native-souffle
parse.configure-coreutils 153 24 67 44.5 49.8 1,653,356 4,764 12 1,025,542 6 764,314 osh-native
parse.configure-coreutils 139 23 63 44.5 49.4 1,653,355 4,764 12 1,025,532 6 764,309 osh-native-souffle
parse.abuild 9 1 1 2.6 8.4 101,959 180 2 75,046 1 37,523 osh-native
parse.abuild 8 1 1 2.6 8.3 101,959 180 2 75,036 1 37,518 osh-native-souffle
ex.compute-fib 28 0 1 2.2 8.0 579,723 22,608 12 50,000 0 2,927 osh-native
ex.compute-fib 21 0 1 2.2 7.7 579,723 22,608 12 50,000 0 2,922 osh-native-souffle
ex.bashcomp-parse-help 184 0 4 11.1 8.9 1,021,040 15,258 22 50,000 0 3,916 osh-native
ex.bashcomp-parse-help 174 0 4 11.1 8.4 1,021,039 15,258 22 50,000 0 3,916 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.2 116,358 277 3 85,264 1 42,632 osh-native
ex.abuild-print-help 20 1 2 2.8 8.4 116,358 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 6 0 1.6 dash -
23 20 3 3.0 bash -
101 53 55 3.4 zsh -
16 12 4 28.6 bumpleak/osh mut
19 15 4 29.1 _bin/cxx-opt+bumproot/osh mut
23 12 10 29.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 18 11 25.0 osh-native mut+alloc
32 22 9 25.7 osh-native mut+alloc+free
37 26 11 17.8 osh-native mut+alloc+free+gc
37 28 9 18.2 osh-native mut+alloc+free+gc+exit
43 32 11 32.4 _bin/cxx-opt+nopool/osh mut+alloc
50 44 6 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 20 7 24.8 osh-native-souffle mut+alloc
29 17 11 25.3 osh-native-souffle mut+alloc+free
33 24 8 17.6 osh-native-souffle mut+alloc+free+gc
33 25 8 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.6 dash -
78 77 1 3.1 bash -
362 199 186 3.4 zsh -
50 38 12 85.1 bumpleak/osh mut
60 49 11 85.4 _bin/cxx-opt+bumproot/osh mut
71 54 17 85.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 61 35 73.5 osh-native mut+alloc
105 71 34 75.4 osh-native mut+alloc+free
153 130 23 49.8 osh-native mut+alloc+free+gc
157 127 30 50.4 osh-native mut+alloc+free+gc+exit
138 94 44 98.9 _bin/cxx-opt+nopool/osh mut+alloc
234 202 32 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 51 36 73.1 osh-native-souffle mut+alloc
94 62 32 74.9 osh-native-souffle mut+alloc+free
139 121 18 49.4 osh-native-souffle mut+alloc+free+gc
157 137 20 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 -
5 4 1 2.9 bash -
8 5 3 3.3 zsh -
6 3 4 11.3 bumpleak/osh mut
7 4 3 11.8 _bin/cxx-opt+bumproot/osh mut
7 4 3 10.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 6 2 10.1 osh-native mut+alloc
9 4 5 10.0 osh-native mut+alloc+free
9 6 3 8.4 osh-native mut+alloc+free+gc
10 6 4 8.7 osh-native mut+alloc+free+gc+exit
12 7 5 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 10 2 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 5 4 9.6 osh-native-souffle mut+alloc
8 4 4 9.8 osh-native-souffle mut+alloc+free
8 6 2 8.3 osh-native-souffle mut+alloc+free+gc
8 5 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 -
28 26 2 3.0 bash -
23 19 4 3.3 zsh -
18 15 4 31.2 bumpleak/osh mut
25 22 3 31.8 _bin/cxx-opt+bumproot/osh mut
28 21 7 33.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 23 14 26.3 osh-native mut+alloc
38 28 10 26.7 osh-native mut+alloc+free
28 26 2 8.0 osh-native mut+alloc+free+gc
28 25 3 7.9 osh-native mut+alloc+free+gc+exit
53 40 13 35.9 _bin/cxx-opt+nopool/osh mut+alloc
38 35 3 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 20 10 26.0 osh-native-souffle mut+alloc
31 20 11 26.2 osh-native-souffle mut+alloc+free
21 18 3 7.7 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
73 68 5 3.1 bash -
167 114 53 57.5 bumpleak/osh mut
182 127 55 56.9 _bin/cxx-opt+bumproot/osh mut
199 146 53 59.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
217 151 66 49.0 osh-native mut+alloc
221 135 83 50.8 osh-native mut+alloc+free
184 133 51 8.9 osh-native mut+alloc+free+gc
184 127 57 8.9 osh-native mut+alloc+free+gc+exit
234 158 76 64.7 _bin/cxx-opt+nopool/osh mut+alloc
214 154 60 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 134 71 48.3 osh-native-souffle mut+alloc
210 137 73 50.3 osh-native-souffle mut+alloc+free
174 128 46 8.4 osh-native-souffle mut+alloc+free+gc
179 120 59 8.5 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 4 5 3.4 dash -
19 12 8 4.3 bash -
17 6 12 3.5 zsh -
18 7 11 13.0 bumpleak/osh mut
21 7 15 13.6 _bin/cxx-opt+bumproot/osh mut
22 10 12 13.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 11 11 11.1 osh-native mut+alloc
22 10 13 11.1 osh-native mut+alloc+free
22 16 7 9.2 osh-native mut+alloc+free+gc
23 13 10 9.0 osh-native mut+alloc+free+gc+exit
24 12 13 12.9 _bin/cxx-opt+nopool/osh mut+alloc
25 13 12 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 8 13 10.6 osh-native-souffle mut+alloc
21 8 14 10.7 osh-native-souffle mut+alloc+free
20 9 12 8.4 osh-native-souffle mut+alloc+free+gc
21 8 14 8.7 osh-native-souffle mut+alloc+free+gc+exit