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,760 1,282 6 406,606 5 203,303 osh-native
parse.configure-cpython 32 3 9 12.0 17.4 476,760 1,282 6 406,322 5 203,161 osh-native-souffle
parse.configure-coreutils 148 24 63 44.5 49.7 1,653,348 4,764 12 1,025,528 6 764,307 osh-native
parse.configure-coreutils 138 24 61 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 2 2.2 8.0 579,715 22,608 12 50,000 0 2,920 osh-native
ex.compute-fib 22 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 9.0 1,021,030 15,258 22 50,000 0 3,909 osh-native
ex.bashcomp-parse-help 176 0 4 11.1 8.4 1,021,029 15,258 22 50,000 0 3,914 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.0 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.6 dash -
23 23 0 3.0 bash -
100 51 55 3.4 zsh -
16 13 3 28.9 bumpleak/osh mut
20 17 3 29.0 _bin/cxx-opt+bumproot/osh mut
22 19 3 30.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 19 10 25.2 osh-native mut+alloc
31 15 16 25.7 osh-native mut+alloc+free
36 24 12 18.0 osh-native mut+alloc+free+gc
37 32 5 18.1 osh-native mut+alloc+free+gc+exit
42 24 18 32.5 _bin/cxx-opt+nopool/osh mut+alloc
48 40 8 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 19 8 24.8 osh-native-souffle mut+alloc
29 19 10 25.4 osh-native-souffle mut+alloc+free
32 26 6 17.4 osh-native-souffle mut+alloc+free+gc
33 28 5 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 20 1 1.4 dash -
85 82 3 3.1 bash -
362 188 194 3.7 zsh -
47 36 11 85.6 bumpleak/osh mut
60 50 11 85.9 _bin/cxx-opt+bumproot/osh mut
70 55 15 86.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
95 63 31 73.5 osh-native mut+alloc
106 72 34 75.2 osh-native mut+alloc+free
148 125 22 49.7 osh-native mut+alloc+free+gc
164 144 20 50.5 osh-native mut+alloc+free+gc+exit
138 84 54 98.9 _bin/cxx-opt+nopool/osh mut+alloc
212 180 31 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
89 63 26 73.1 osh-native-souffle mut+alloc
94 61 33 75.0 osh-native-souffle mut+alloc+free
138 118 19 49.4 osh-native-souffle mut+alloc+free+gc
143 122 21 49.9 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 3.0 bash -
7 5 2 3.3 zsh -
5 3 2 11.7 bumpleak/osh mut
7 5 2 11.7 _bin/cxx-opt+bumproot/osh mut
8 6 2 12.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 5 3 10.0 osh-native mut+alloc
9 6 2 10.0 osh-native mut+alloc+free
9 8 1 8.5 osh-native mut+alloc+free+gc
9 5 4 8.5 osh-native mut+alloc+free+gc+exit
11 7 5 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 7 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.6 osh-native-souffle mut+alloc
8 6 2 9.8 osh-native-souffle mut+alloc+free
8 7 1 8.1 osh-native-souffle mut+alloc+free+gc
8 6 3 8.1 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 27 1 2.9 bash -
23 15 8 3.4 zsh -
19 15 4 32.5 bumpleak/osh mut
26 22 4 31.6 _bin/cxx-opt+bumproot/osh mut
28 22 6 32.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 28 8 26.3 osh-native mut+alloc
37 32 6 26.6 osh-native mut+alloc+free
28 25 3 8.0 osh-native mut+alloc+free+gc
30 26 4 8.0 osh-native mut+alloc+free+gc+exit
53 35 18 35.9 _bin/cxx-opt+nopool/osh mut+alloc
38 35 3 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 19 11 26.0 osh-native-souffle mut+alloc
31 23 7 26.2 osh-native-souffle mut+alloc+free
22 20 2 7.6 osh-native-souffle mut+alloc+free+gc
22 20 2 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 70 3 3.1 bash -
166 117 49 56.8 bumpleak/osh mut
184 131 53 56.8 _bin/cxx-opt+bumproot/osh mut
195 137 58 57.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 138 74 49.0 osh-native mut+alloc
220 153 67 50.7 osh-native mut+alloc+free
182 113 69 9.0 osh-native mut+alloc+free+gc
181 121 60 8.9 osh-native mut+alloc+free+gc+exit
232 152 80 64.6 _bin/cxx-opt+nopool/osh mut+alloc
209 158 51 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 131 74 48.4 osh-native-souffle mut+alloc
211 132 79 50.2 osh-native-souffle mut+alloc+free
176 131 44 8.4 osh-native-souffle mut+alloc+free+gc
174 126 48 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 6 3.4 dash -
19 11 8 4.3 bash -
17 9 8 3.5 zsh -
17 5 13 12.8 bumpleak/osh mut
19 9 10 13.8 _bin/cxx-opt+bumproot/osh mut
19 9 11 12.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 10 11 11.0 osh-native mut+alloc
22 10 12 11.1 osh-native mut+alloc+free
22 11 12 9.0 osh-native mut+alloc+free+gc
22 14 9 9.0 osh-native mut+alloc+free+gc+exit
25 17 9 12.6 _bin/cxx-opt+nopool/osh mut+alloc
24 17 8 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 7 13 10.5 osh-native-souffle mut+alloc
21 8 13 10.7 osh-native-souffle mut+alloc+free
20 9 12 8.8 osh-native-souffle mut+alloc+free+gc
21 11 11 8.5 osh-native-souffle mut+alloc+free+gc+exit