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 38 5 12 12.0 18.0 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 33 4 10 12.0 17.4 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 152 27 67 44.5 49.8 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 151 24 74 44.5 49.4 1,653,338 4,764 12 1,025,396 6 764,241 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,942 180 2 75,030 1 37,515 osh-native
parse.abuild 9 1 2 2.4 8.0 101,942 180 3 87,092 1 43,546 osh-native-souffle
ex.compute-fib 28 0 2 2.1 8.0 579,606 22,608 12 50,000 0 2,919 osh-native
ex.compute-fib 22 0 1 2.1 7.6 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 183 0 4 10.8 8.8 1,006,008 15,258 21 50,000 0 3,919 osh-native
ex.bashcomp-parse-help 176 0 3 10.8 8.4 1,006,007 15,258 21 50,000 0 3,842 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 9.0 116,318 277 3 85,248 1 42,624 osh-native
ex.abuild-print-help 21 1 2 2.8 8.5 116,318 277 3 85,124 1 42,562 osh-native-souffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
7 7 0 1.6 dash -
23 23 0 3.0 bash -
105 55 56 3.4 zsh -
16 12 4 29.2 bumpleak/osh mut
18 18 0 29.2 _bin/cxx-opt+bumproot/osh mut
22 18 4 29.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 12 16 25.0 osh-native mut+alloc
31 23 8 25.6 osh-native mut+alloc+free
38 19 19 18.0 osh-native mut+alloc+free+gc
37 29 7 18.0 osh-native mut+alloc+free+gc+exit
43 27 16 32.8 _bin/cxx-opt+nopool/osh mut+alloc
50 46 4 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 19 7 24.8 osh-native-souffle mut+alloc
29 25 4 25.3 osh-native-souffle mut+alloc+free
33 29 4 17.4 osh-native-souffle mut+alloc+free+gc
34 25 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 21 0 1.6 dash -
78 78 0 3.3 bash -
377 233 167 3.5 zsh -
47 43 4 85.6 bumpleak/osh mut
59 51 8 84.9 _bin/cxx-opt+bumproot/osh mut
70 57 12 85.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 68 28 73.4 osh-native mut+alloc
103 63 40 75.6 osh-native mut+alloc+free
152 112 40 49.8 osh-native mut+alloc+free+gc
162 138 24 50.5 osh-native mut+alloc+free+gc+exit
139 87 51 97.8 _bin/cxx-opt+nopool/osh mut+alloc
215 179 36 68.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 36 51 73.1 osh-native-souffle mut+alloc
96 56 40 75.0 osh-native-souffle mut+alloc+free
151 135 16 49.4 osh-native-souffle mut+alloc+free+gc
158 137 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.3 dash -
6 6 0 3.0 bash -
8 8 0 3.3 zsh -
6 6 0 10.5 bumpleak/osh mut
7 6 0 10.9 _bin/cxx-opt+bumproot/osh mut
8 4 4 11.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.0 osh-native mut+alloc
9 9 0 10.1 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
9 9 0 8.7 osh-native mut+alloc+free+gc+exit
12 4 8 11.3 _bin/cxx-opt+nopool/osh mut+alloc
11 8 4 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 4 4 9.7 osh-native-souffle mut+alloc
8 8 0 9.8 osh-native-souffle mut+alloc+free
9 3 6 8.0 osh-native-souffle mut+alloc+free+gc
9 9 0 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 7 3 1.3 dash -
29 29 0 2.9 bash -
24 16 8 3.3 zsh -
18 14 5 32.2 bumpleak/osh mut
26 23 4 32.8 _bin/cxx-opt+bumproot/osh mut
28 20 8 32.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 28 8 26.3 osh-native mut+alloc
38 34 4 26.3 osh-native mut+alloc+free
28 28 0 8.0 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
55 43 12 35.8 _bin/cxx-opt+nopool/osh mut+alloc
38 33 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 22 9 26.0 osh-native-souffle mut+alloc
32 20 12 26.1 osh-native-souffle mut+alloc+free
22 17 4 7.6 osh-native-souffle mut+alloc+free+gc
22 22 0 7.5 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 72 0 3.1 bash -
170 117 52 55.8 bumpleak/osh mut
181 137 44 56.9 _bin/cxx-opt+bumproot/osh mut
197 104 92 57.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 141 73 48.2 osh-native mut+alloc
220 148 72 50.0 osh-native mut+alloc+free
183 126 57 8.8 osh-native mut+alloc+free+gc
184 144 40 8.8 osh-native mut+alloc+free+gc+exit
236 136 100 64.5 _bin/cxx-opt+nopool/osh mut+alloc
214 149 64 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
208 140 68 47.6 osh-native-souffle mut+alloc
213 136 76 49.5 osh-native-souffle mut+alloc+free
176 115 60 8.4 osh-native-souffle mut+alloc+free+gc
176 123 52 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
10 6 4 3.4 dash -
20 17 3 4.3 bash -
18 9 10 3.4 zsh -
19 11 8 12.7 bumpleak/osh mut
19 18 2 13.8 _bin/cxx-opt+bumproot/osh mut
21 19 2 13.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 13 9 11.1 osh-native mut+alloc
22 14 8 11.1 osh-native mut+alloc+free
23 16 7 9.0 osh-native mut+alloc+free+gc
24 18 6 9.0 osh-native mut+alloc+free+gc+exit
26 17 9 12.5 _bin/cxx-opt+nopool/osh mut+alloc
25 19 7 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 15 5 10.6 osh-native-souffle mut+alloc
22 15 7 10.7 osh-native-souffle mut+alloc+free
21 14 7 8.5 osh-native-souffle mut+alloc+free+gc
21 21 1 8.7 osh-native-souffle mut+alloc+free+gc+exit