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,760 1,282 6 406,606 5 203,303 osh-native
parse.configure-cpython 33 3 10 12.0 17.4 476,760 1,282 6 406,322 5 203,161 osh-native-souffle
parse.configure-coreutils 145 22 58 44.5 49.8 1,653,348 4,764 12 1,025,528 6 764,307 osh-native
parse.configure-coreutils 131 21 56 44.5 49.6 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.3 101,951 180 2 75,022 1 37,511 osh-native-souffle
ex.compute-fib 29 0 1 2.2 7.9 579,715 22,608 12 50,000 0 2,920 osh-native
ex.compute-fib 21 0 1 2.2 7.7 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 22 1 2 2.8 8.9 116,334 277 3 85,250 1 42,625 osh-native
ex.abuild-print-help 21 1 2 2.8 8.5 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 5 1 1.4 dash -
23 23 0 3.0 bash -
100 55 52 3.5 zsh -
16 10 6 29.2 bumpleak/osh mut
20 17 3 29.7 _bin/cxx-opt+bumproot/osh mut
22 15 7 28.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 20 9 25.2 osh-native mut+alloc
31 24 7 25.7 osh-native mut+alloc+free
35 28 7 17.8 osh-native mut+alloc+free+gc
36 32 4 18.0 osh-native mut+alloc+free+gc+exit
41 25 16 32.4 _bin/cxx-opt+nopool/osh mut+alloc
49 45 4 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 15 12 24.8 osh-native-souffle mut+alloc
29 20 9 25.2 osh-native-souffle mut+alloc+free
33 26 7 17.4 osh-native-souffle mut+alloc+free+gc
33 30 3 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.6 dash -
78 77 1 3.1 bash -
362 194 188 3.5 zsh -
50 39 11 84.6 bumpleak/osh mut
59 55 4 85.9 _bin/cxx-opt+bumproot/osh mut
71 56 15 85.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 75 23 73.3 osh-native mut+alloc
106 68 38 75.5 osh-native mut+alloc+free
145 118 27 49.8 osh-native mut+alloc+free+gc
151 134 17 50.3 osh-native mut+alloc+free+gc+exit
138 90 48 99.0 _bin/cxx-opt+nopool/osh mut+alloc
206 180 26 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
86 44 42 73.3 osh-native-souffle mut+alloc
95 63 32 75.0 osh-native-souffle mut+alloc+free
131 105 26 49.6 osh-native-souffle mut+alloc+free+gc
139 117 22 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.4 dash -
5 4 2 3.0 bash -
7 6 1 3.4 zsh -
6 2 3 10.4 bumpleak/osh mut
7 6 1 11.9 _bin/cxx-opt+bumproot/osh mut
8 4 3 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 2 7 10.0 osh-native mut+alloc
8 2 6 10.2 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
12 7 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 6 6 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 2 6 9.7 osh-native-souffle mut+alloc
8 6 2 9.7 osh-native-souffle mut+alloc+free
8 7 1 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 9 1 1.6 dash -
29 27 2 2.9 bash -
23 18 5 3.3 zsh -
19 17 2 32.3 bumpleak/osh mut
26 25 1 32.2 _bin/cxx-opt+bumproot/osh mut
28 24 4 33.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 26 11 26.3 osh-native mut+alloc
38 27 11 26.6 osh-native mut+alloc+free
29 25 4 7.9 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
53 37 16 36.1 _bin/cxx-opt+nopool/osh mut+alloc
38 31 7 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 22 8 26.0 osh-native-souffle mut+alloc
32 23 9 26.2 osh-native-souffle mut+alloc+free
21 19 3 7.7 osh-native-souffle mut+alloc+free+gc
22 18 4 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 73 1 3.1 bash -
167 109 58 57.0 bumpleak/osh mut
181 127 54 58.2 _bin/cxx-opt+bumproot/osh mut
195 133 62 58.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 150 64 48.8 osh-native mut+alloc
220 150 70 50.9 osh-native mut+alloc+free
182 143 40 8.8 osh-native mut+alloc+free+gc
182 130 52 8.8 osh-native mut+alloc+free+gc+exit
232 149 83 64.6 _bin/cxx-opt+nopool/osh mut+alloc
211 162 49 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
203 126 76 48.4 osh-native-souffle mut+alloc
211 142 69 50.4 osh-native-souffle mut+alloc+free
175 123 52 8.4 osh-native-souffle mut+alloc+free+gc
173 117 56 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.5 dash -
19 12 8 4.5 bash -
17 6 11 3.5 zsh -
18 8 10 12.0 bumpleak/osh mut
19 8 11 11.9 _bin/cxx-opt+bumproot/osh mut
20 14 6 12.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 12 9 11.0 osh-native mut+alloc
22 10 12 11.1 osh-native mut+alloc+free
22 16 7 8.9 osh-native mut+alloc+free+gc
22 12 10 9.0 osh-native mut+alloc+free+gc+exit
24 6 19 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 11 14 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 9 10 10.6 osh-native-souffle mut+alloc
21 10 11 10.7 osh-native-souffle mut+alloc+free
21 13 9 8.5 osh-native-souffle mut+alloc+free+gc
22 9 14 8.7 osh-native-souffle mut+alloc+free+gc+exit