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.0 476,760 1,282 6 406,606 5 203,303 osh-native
parse.configure-cpython 31 3 9 12.0 17.4 476,760 1,282 6 406,322 5 203,161 osh-native-souffle
parse.configure-coreutils 145 23 58 44.5 49.7 1,653,348 4,764 12 1,025,528 6 764,307 osh-native
parse.configure-coreutils 132 22 56 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.5 101,951 180 2 75,032 1 37,516 osh-native
parse.abuild 8 1 1 2.6 8.1 101,951 180 2 75,022 1 37,511 osh-native-souffle
ex.compute-fib 28 0 1 2.2 8.1 579,715 22,608 12 50,000 0 2,920 osh-native
ex.compute-fib 21 0 1 2.2 7.6 579,715 22,608 12 50,000 0 2,915 osh-native-souffle
ex.bashcomp-parse-help 182 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 21 1 2 2.8 8.9 116,334 277 3 85,250 1 42,625 osh-native
ex.abuild-print-help 20 1 2 2.8 8.8 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.4 dash -
23 22 1 3.0 bash -
99 52 53 3.4 zsh -
16 12 4 29.0 bumpleak/osh mut
19 15 4 29.6 _bin/cxx-opt+bumproot/osh mut
22 16 6 29.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 16 14 25.3 osh-native mut+alloc
31 24 8 25.7 osh-native mut+alloc+free
35 29 6 18.0 osh-native mut+alloc+free+gc
36 29 7 18.0 osh-native mut+alloc+free+gc+exit
42 26 16 32.4 _bin/cxx-opt+nopool/osh mut+alloc
48 35 13 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 15 11 24.8 osh-native-souffle mut+alloc
28 17 10 25.3 osh-native-souffle mut+alloc+free
31 25 6 17.4 osh-native-souffle mut+alloc+free+gc
33 28 4 17.6 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 21 0 1.4 dash -
78 75 3 3.1 bash -
362 192 190 3.5 zsh -
50 39 11 87.2 bumpleak/osh mut
61 51 10 85.0 _bin/cxx-opt+bumproot/osh mut
69 60 9 86.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 70 27 73.4 osh-native mut+alloc
109 72 37 75.4 osh-native mut+alloc+free
145 129 16 49.7 osh-native mut+alloc+free+gc
148 121 27 50.6 osh-native mut+alloc+free+gc+exit
136 90 46 99.0 _bin/cxx-opt+nopool/osh mut+alloc
195 164 31 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 56 31 73.1 osh-native-souffle mut+alloc
96 63 33 75.0 osh-native-souffle mut+alloc+free
132 107 25 49.4 osh-native-souffle mut+alloc+free+gc
135 123 12 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 1 1 1.3 dash -
5 4 2 2.9 bash -
7 3 4 3.3 zsh -
6 5 1 10.5 bumpleak/osh mut
6 3 4 12.7 _bin/cxx-opt+bumproot/osh mut
7 5 1 10.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 5 3 10.0 osh-native mut+alloc
8 5 3 10.1 osh-native mut+alloc+free
9 5 4 8.5 osh-native mut+alloc+free+gc
9 7 2 8.4 osh-native mut+alloc+free+gc+exit
11 7 5 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 7 5 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
7 5 2 9.7 osh-native-souffle mut+alloc
8 5 3 9.7 osh-native-souffle mut+alloc+free
8 5 3 8.1 osh-native-souffle mut+alloc+free+gc
8 6 2 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 28 0 3.0 bash -
24 19 5 3.3 zsh -
18 14 4 30.8 bumpleak/osh mut
26 22 4 32.0 _bin/cxx-opt+bumproot/osh mut
27 23 5 31.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 28 8 26.5 osh-native mut+alloc
38 25 13 26.7 osh-native mut+alloc+free
28 27 1 8.1 osh-native mut+alloc+free+gc
28 26 2 8.0 osh-native mut+alloc+free+gc+exit
53 41 12 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 18 12 26.0 osh-native-souffle mut+alloc
31 15 16 26.1 osh-native-souffle mut+alloc+free
21 21 0 7.6 osh-native-souffle mut+alloc+free+gc
21 16 6 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 67 5 3.3 bash -
164 104 60 56.2 bumpleak/osh mut
181 117 64 58.0 _bin/cxx-opt+bumproot/osh mut
194 132 62 57.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 150 62 49.0 osh-native mut+alloc
220 140 80 50.7 osh-native mut+alloc+free
182 111 71 8.8 osh-native mut+alloc+free+gc
185 130 55 8.9 osh-native mut+alloc+free+gc+exit
234 159 75 64.5 _bin/cxx-opt+nopool/osh mut+alloc
211 156 54 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
209 141 67 48.4 osh-native-souffle mut+alloc
213 136 76 50.4 osh-native-souffle mut+alloc+free
175 133 42 8.4 osh-native-souffle mut+alloc+free+gc
174 116 59 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 4 5 3.4 dash -
19 8 11 4.3 bash -
17 5 13 3.4 zsh -
19 7 12 12.5 bumpleak/osh mut
19 7 12 12.3 _bin/cxx-opt+bumproot/osh mut
19 7 13 12.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 8 13 11.0 osh-native mut+alloc
21 9 12 11.1 osh-native mut+alloc+free
21 10 12 8.9 osh-native mut+alloc+free+gc
22 13 10 9.2 osh-native mut+alloc+free+gc+exit
24 16 9 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 12 13 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 4 16 10.5 osh-native-souffle mut+alloc
21 9 13 10.7 osh-native-souffle mut+alloc+free
20 11 10 8.8 osh-native-souffle mut+alloc+free+gc
21 12 9 8.7 osh-native-souffle mut+alloc+free+gc+exit