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 10 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.7 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 147 24 61 44.5 49.8 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 139 22 63 44.5 49.5 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 7.7 101,942 180 3 87,092 1 43,546 osh-native-souffle
ex.compute-fib 28 0 1 2.1 8.1 579,606 22,608 12 50,000 0 2,919 osh-native
ex.compute-fib 22 0 2 2.1 7.6 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 183 0 3 10.8 8.7 1,006,008 15,258 21 50,000 0 3,919 osh-native
ex.bashcomp-parse-help 176 0 4 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
6 6 0 1.4 dash -
23 19 4 3.1 bash -
104 59 51 3.4 zsh -
17 8 8 28.3 bumpleak/osh mut
23 15 8 29.0 _bin/cxx-opt+bumproot/osh mut
22 7 14 29.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 22 7 25.2 osh-native mut+alloc
31 19 12 25.8 osh-native mut+alloc+free
35 27 8 18.0 osh-native mut+alloc+free+gc
36 32 4 18.0 osh-native mut+alloc+free+gc+exit
44 20 24 32.1 _bin/cxx-opt+nopool/osh mut+alloc
48 40 8 22.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 19 7 24.8 osh-native-souffle mut+alloc
29 14 14 25.3 osh-native-souffle mut+alloc+free
33 29 4 17.7 osh-native-souffle mut+alloc+free+gc
34 34 0 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.4 dash -
78 74 4 3.1 bash -
377 199 200 3.8 zsh -
48 36 12 85.5 bumpleak/osh mut
60 40 20 85.4 _bin/cxx-opt+bumproot/osh mut
70 57 12 84.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 76 20 73.7 osh-native mut+alloc
105 81 24 75.3 osh-native mut+alloc+free
147 127 20 49.8 osh-native mut+alloc+free+gc
155 131 24 50.3 osh-native mut+alloc+free+gc+exit
137 113 24 97.7 _bin/cxx-opt+nopool/osh mut+alloc
201 165 36 67.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 52 36 73.1 osh-native-souffle mut+alloc
95 55 40 74.9 osh-native-souffle mut+alloc+free
139 114 25 49.5 osh-native-souffle mut+alloc+free+gc
144 123 20 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 0 2 1.4 dash -
6 6 0 2.9 bash -
8 0 7 3.3 zsh -
6 6 0 11.1 bumpleak/osh mut
7 7 0 11.3 _bin/cxx-opt+bumproot/osh mut
7 4 4 11.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 10.0 osh-native mut+alloc
9 8 0 10.2 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 8 4 11.5 _bin/cxx-opt+nopool/osh mut+alloc
11 11 0 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 0 8 9.6 osh-native-souffle mut+alloc
8 4 4 9.7 osh-native-souffle mut+alloc+free
9 6 3 7.7 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.4 dash -
28 28 0 2.9 bash -
24 16 8 3.1 zsh -
18 18 0 31.5 bumpleak/osh mut
26 17 9 33.0 _bin/cxx-opt+bumproot/osh mut
27 27 0 32.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 28 8 26.5 osh-native mut+alloc
37 20 16 26.6 osh-native mut+alloc+free
28 28 0 8.1 osh-native mut+alloc+free+gc
28 23 4 8.1 osh-native mut+alloc+free+gc+exit
54 30 23 36.0 _bin/cxx-opt+nopool/osh mut+alloc
38 33 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
29 13 17 26.0 osh-native-souffle mut+alloc
31 13 17 26.2 osh-native-souffle mut+alloc+free
22 22 0 7.6 osh-native-souffle mut+alloc+free+gc
22 21 0 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 69 4 3.0 bash -
170 110 59 55.4 bumpleak/osh mut
183 119 64 56.3 _bin/cxx-opt+bumproot/osh mut
197 124 72 57.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 149 64 48.1 osh-native mut+alloc
220 116 104 49.9 osh-native mut+alloc+free
183 135 48 8.7 osh-native mut+alloc+free+gc
182 131 51 8.8 osh-native mut+alloc+free+gc+exit
235 175 60 63.9 _bin/cxx-opt+nopool/osh mut+alloc
214 146 67 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 148 56 47.6 osh-native-souffle mut+alloc
212 120 92 49.5 osh-native-souffle mut+alloc+free
176 128 48 8.4 osh-native-souffle mut+alloc+free+gc
177 128 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
10 5 5 3.5 dash -
20 17 4 4.5 bash -
18 5 13 3.5 zsh -
18 7 12 12.0 bumpleak/osh mut
20 17 3 12.5 _bin/cxx-opt+bumproot/osh mut
22 14 8 13.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 19 3 11.0 osh-native mut+alloc
23 12 11 11.0 osh-native mut+alloc+free
23 10 14 9.0 osh-native mut+alloc+free+gc
23 15 8 9.2 osh-native mut+alloc+free+gc+exit
24 13 12 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 23 2 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 10 10 10.7 osh-native-souffle mut+alloc
22 20 2 10.7 osh-native-souffle mut+alloc+free
21 20 2 8.5 osh-native-souffle mut+alloc+free+gc
22 15 7 8.5 osh-native-souffle mut+alloc+free+gc+exit