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.7 476,760 1,282 6 406,606 5 203,303 osh-native
parse.configure-cpython 32 3 9 12.0 17.6 476,760 1,282 6 406,322 5 203,161 osh-native-souffle
parse.configure-coreutils 149 22 63 44.5 49.7 1,653,348 4,764 12 1,025,528 6 764,307 osh-native
parse.configure-coreutils 137 23 60 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.7 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 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.7 1,021,030 15,258 22 50,000 0 3,909 osh-native
ex.bashcomp-parse-help 173 0 4 11.1 8.5 1,021,029 15,258 22 50,000 0 3,914 osh-native-souffle
ex.abuild-print-help 21 1 2 2.8 9.2 116,334 277 3 85,250 1 42,625 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 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 22 1 3.0 bash -
100 50 57 3.4 zsh -
16 13 3 29.3 bumpleak/osh mut
20 15 5 28.4 _bin/cxx-opt+bumproot/osh mut
22 16 6 29.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 20 9 25.3 osh-native mut+alloc
31 25 6 25.7 osh-native mut+alloc+free
35 29 6 17.7 osh-native mut+alloc+free+gc
36 26 10 18.0 osh-native mut+alloc+free+gc+exit
41 26 15 32.5 _bin/cxx-opt+nopool/osh mut+alloc
47 38 9 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 13 14 25.0 osh-native-souffle mut+alloc
29 13 16 25.3 osh-native-souffle mut+alloc+free
32 28 5 17.6 osh-native-souffle mut+alloc+free+gc
33 23 10 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 76 2 3.1 bash -
363 189 197 3.5 zsh -
50 40 10 84.6 bumpleak/osh mut
59 47 12 85.7 _bin/cxx-opt+bumproot/osh mut
71 59 12 84.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 68 29 73.5 osh-native mut+alloc
104 67 37 75.5 osh-native mut+alloc+free
149 127 22 49.7 osh-native mut+alloc+free+gc
150 132 17 50.3 osh-native mut+alloc+free+gc+exit
136 99 37 99.0 _bin/cxx-opt+nopool/osh mut+alloc
200 166 34 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 50 37 73.1 osh-native-souffle mut+alloc
96 65 31 75.0 osh-native-souffle mut+alloc+free
137 114 23 49.4 osh-native-souffle mut+alloc+free+gc
139 122 17 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.4 dash -
6 5 1 2.9 bash -
7 3 4 3.3 zsh -
6 3 3 10.8 bumpleak/osh mut
7 7 0 11.3 _bin/cxx-opt+bumproot/osh mut
7 4 3 12.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 2 6 10.0 osh-native mut+alloc
9 6 3 10.1 osh-native mut+alloc+free
9 7 2 8.7 osh-native mut+alloc+free+gc
9 6 3 8.7 osh-native mut+alloc+free+gc+exit
11 9 2 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 10 2 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 5 2 9.7 osh-native-souffle mut+alloc
8 6 2 9.8 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 27 1 3.0 bash -
23 14 9 3.3 zsh -
19 16 3 32.7 bumpleak/osh mut
26 23 3 33.0 _bin/cxx-opt+bumproot/osh mut
29 24 5 31.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 22 15 26.5 osh-native mut+alloc
37 27 10 26.6 osh-native mut+alloc+free
28 26 3 8.0 osh-native mut+alloc+free+gc
28 26 2 8.0 osh-native mut+alloc+free+gc+exit
53 37 16 35.8 _bin/cxx-opt+nopool/osh mut+alloc
37 34 3 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 18 12 26.0 osh-native-souffle mut+alloc
31 24 7 26.1 osh-native-souffle mut+alloc+free
21 19 2 7.6 osh-native-souffle mut+alloc+free+gc
21 18 3 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
71 66 5 3.1 bash -
168 119 49 56.7 bumpleak/osh mut
181 126 55 58.0 _bin/cxx-opt+bumproot/osh mut
196 135 61 56.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 139 75 49.0 osh-native mut+alloc
223 144 79 50.7 osh-native mut+alloc+free
182 131 51 8.7 osh-native mut+alloc+free+gc
182 130 52 8.8 osh-native mut+alloc+free+gc+exit
231 149 83 64.6 _bin/cxx-opt+nopool/osh mut+alloc
210 158 52 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 133 71 48.4 osh-native-souffle mut+alloc
213 137 76 50.4 osh-native-souffle mut+alloc+free
173 128 45 8.5 osh-native-souffle mut+alloc+free+gc
175 118 57 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 5 5 3.5 dash -
19 9 11 4.3 bash -
17 9 8 3.4 zsh -
18 7 11 12.0 bumpleak/osh mut
20 10 11 13.3 _bin/cxx-opt+bumproot/osh mut
21 9 13 13.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 13 9 11.0 osh-native mut+alloc
22 9 14 11.1 osh-native mut+alloc+free
21 10 12 9.2 osh-native mut+alloc+free+gc
22 10 13 9.2 osh-native mut+alloc+free+gc+exit
24 10 15 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 11 14 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 9 11 10.6 osh-native-souffle mut+alloc
21 13 8 10.7 osh-native-souffle mut+alloc+free
21 11 10 8.7 osh-native-souffle mut+alloc+free+gc
21 9 12 8.5 osh-native-souffle mut+alloc+free+gc+exit