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 32 3 9 12.0 17.6 476,760 1,282 6 406,322 5 203,161 osh-native-souffle
parse.configure-coreutils 162 27 73 44.5 49.7 1,653,348 4,764 12 1,025,528 6 764,307 osh-native
parse.configure-coreutils 153 26 76 44.5 49.3 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 1 2.2 8.1 579,715 22,608 12 50,000 0 2,920 osh-native
ex.compute-fib 22 0 2 2.2 7.3 579,715 22,608 12 50,000 0 2,915 osh-native-souffle
ex.bashcomp-parse-help 181 0 4 11.1 8.9 1,021,030 15,258 22 50,000 0 3,909 osh-native
ex.bashcomp-parse-help 174 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 21 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.1 bash -
102 54 54 3.4 zsh -
17 13 4 29.5 bumpleak/osh mut
19 15 4 29.1 _bin/cxx-opt+bumproot/osh mut
22 14 9 28.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 17 13 25.0 osh-native mut+alloc
31 18 13 25.6 osh-native mut+alloc+free
35 28 7 17.8 osh-native mut+alloc+free+gc
36 30 6 18.1 osh-native mut+alloc+free+gc+exit
42 23 19 32.4 _bin/cxx-opt+nopool/osh mut+alloc
49 36 13 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 18 8 24.8 osh-native-souffle mut+alloc
30 21 9 25.2 osh-native-souffle mut+alloc+free
32 26 7 17.6 osh-native-souffle mut+alloc+free+gc
35 27 8 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 18 3 1.6 dash -
77 77 0 3.1 bash -
369 194 197 3.5 zsh -
49 40 9 85.7 bumpleak/osh mut
62 53 9 85.7 _bin/cxx-opt+bumproot/osh mut
70 60 10 85.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 71 26 73.4 osh-native mut+alloc
106 72 35 75.4 osh-native mut+alloc+free
162 136 26 49.7 osh-native mut+alloc+free+gc
168 148 20 50.5 osh-native mut+alloc+free+gc+exit
137 94 43 98.9 _bin/cxx-opt+nopool/osh mut+alloc
222 186 36 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
89 59 30 73.1 osh-native-souffle mut+alloc
95 67 28 75.0 osh-native-souffle mut+alloc+free
153 130 23 49.3 osh-native-souffle mut+alloc+free+gc
162 142 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 5 0 2.8 bash -
7 4 3 3.3 zsh -
6 5 1 11.9 bumpleak/osh mut
6 4 3 12.3 _bin/cxx-opt+bumproot/osh mut
7 4 3 12.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 6 2 10.0 osh-native mut+alloc
9 6 3 10.1 osh-native mut+alloc+free
9 5 4 8.7 osh-native mut+alloc+free+gc
9 6 3 8.4 osh-native mut+alloc+free+gc+exit
12 9 3 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 7 5 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 3 5 9.7 osh-native-souffle mut+alloc
8 3 5 9.7 osh-native-souffle mut+alloc+free
8 7 1 8.1 osh-native-souffle mut+alloc+free+gc
9 6 3 8.0 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 -
29 27 2 3.0 bash -
23 19 4 3.4 zsh -
18 13 6 31.5 bumpleak/osh mut
26 22 4 32.4 _bin/cxx-opt+bumproot/osh mut
28 24 4 33.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 26 11 26.2 osh-native mut+alloc
38 32 6 26.7 osh-native mut+alloc+free
28 25 3 8.1 osh-native mut+alloc+free+gc
28 26 2 8.1 osh-native mut+alloc+free+gc+exit
53 33 20 35.8 _bin/cxx-opt+nopool/osh mut+alloc
38 32 6 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 19 10 25.8 osh-native-souffle mut+alloc
32 23 8 26.1 osh-native-souffle mut+alloc+free
22 18 4 7.3 osh-native-souffle mut+alloc+free+gc
22 21 1 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
74 71 3 3.1 bash -
167 121 45 56.8 bumpleak/osh mut
182 120 62 58.3 _bin/cxx-opt+bumproot/osh mut
196 134 62 57.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 138 75 48.8 osh-native mut+alloc
217 151 67 50.8 osh-native mut+alloc+free
181 131 50 8.9 osh-native mut+alloc+free+gc
182 137 45 8.9 osh-native mut+alloc+free+gc+exit
232 142 90 64.5 _bin/cxx-opt+nopool/osh mut+alloc
211 155 56 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 140 64 48.4 osh-native-souffle mut+alloc
212 146 66 50.3 osh-native-souffle mut+alloc+free
174 127 47 8.4 osh-native-souffle mut+alloc+free+gc
176 122 54 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.5 dash -
19 13 7 4.5 bash -
17 6 11 3.5 zsh -
19 8 12 12.5 bumpleak/osh mut
19 9 10 12.1 _bin/cxx-opt+bumproot/osh mut
20 8 12 12.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 9 12 10.9 osh-native mut+alloc
22 10 13 11.1 osh-native mut+alloc+free
22 17 6 9.0 osh-native mut+alloc+free+gc
22 13 11 9.0 osh-native mut+alloc+free+gc+exit
25 14 11 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 14 12 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 6 14 10.6 osh-native-souffle mut+alloc
21 10 12 10.7 osh-native-souffle mut+alloc+free
21 12 9 8.8 osh-native-souffle mut+alloc+free+gc
21 13 9 8.7 osh-native-souffle mut+alloc+free+gc+exit