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 36 4 10 12.0 18.0 476,771 1,282 6 406,622 5 203,311 osh-native
parse.configure-cpython 36 6 13 12.0 17.6 476,771 1,282 6 406,612 5 203,306 osh-native-souffle
parse.configure-coreutils 153 23 67 44.5 49.8 1,653,359 4,764 12 1,025,544 6 764,315 osh-native
parse.configure-coreutils 144 25 68 44.5 49.3 1,653,358 4,764 12 1,025,534 6 764,310 osh-native-souffle
parse.abuild 9 1 1 2.6 8.7 101,962 180 2 75,048 1 37,524 osh-native
parse.abuild 8 1 1 2.6 8.4 101,962 180 2 75,038 1 37,519 osh-native-souffle
ex.compute-fib 28 0 2 2.2 8.0 579,725 22,608 12 50,000 0 2,927 osh-native
ex.compute-fib 22 0 2 2.2 7.5 579,725 22,608 12 50,000 0 2,922 osh-native-souffle
ex.bashcomp-parse-help 184 0 4 11.1 8.8 1,021,042 15,258 22 50,000 0 3,916 osh-native
ex.bashcomp-parse-help 175 0 4 11.1 8.4 1,021,041 15,258 22 50,000 0 3,916 osh-native-souffle
ex.abuild-print-help 21 1 2 2.9 9.2 116,453 277 3 85,258 1 42,629 osh-native
ex.abuild-print-help 20 1 2 2.9 8.8 116,453 277 3 85,248 1 42,624 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 22 1 3.0 bash -
101 55 52 3.4 zsh -
17 15 2 28.0 bumpleak/osh mut
20 17 3 28.8 _bin/cxx-opt+bumproot/osh mut
23 15 8 30.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 17 12 25.4 osh-native mut+alloc
31 21 11 25.7 osh-native mut+alloc+free
36 31 5 18.0 osh-native mut+alloc+free+gc
36 31 5 18.1 osh-native mut+alloc+free+gc+exit
42 30 12 32.5 _bin/cxx-opt+nopool/osh mut+alloc
48 42 6 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 16 11 24.9 osh-native-souffle mut+alloc
28 16 13 25.3 osh-native-souffle mut+alloc+free
36 26 10 17.6 osh-native-souffle mut+alloc+free+gc
34 30 4 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 -
359 204 176 3.5 zsh -
48 42 6 84.2 bumpleak/osh mut
60 53 7 86.0 _bin/cxx-opt+bumproot/osh mut
72 64 8 85.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 58 39 73.3 osh-native mut+alloc
106 87 19 75.4 osh-native mut+alloc+free
153 128 24 49.8 osh-native mut+alloc+free+gc
152 132 20 50.6 osh-native mut+alloc+free+gc+exit
135 90 45 99.0 _bin/cxx-opt+nopool/osh mut+alloc
219 187 33 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
86 61 25 73.1 osh-native-souffle mut+alloc
94 53 41 75.0 osh-native-souffle mut+alloc+free
144 115 29 49.3 osh-native-souffle mut+alloc+free+gc
150 121 29 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 4 2 2.9 bash -
8 7 1 3.3 zsh -
6 1 5 11.5 bumpleak/osh mut
6 5 1 12.6 _bin/cxx-opt+bumproot/osh mut
7 5 2 11.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 5 3 10.1 osh-native mut+alloc
9 7 2 10.1 osh-native mut+alloc+free
9 6 3 8.7 osh-native mut+alloc+free+gc
9 6 3 8.5 osh-native mut+alloc+free+gc+exit
12 7 4 11.3 _bin/cxx-opt+nopool/osh mut+alloc
12 8 3 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 6 2 9.7 osh-native-souffle mut+alloc
8 3 5 9.8 osh-native-souffle mut+alloc+free
8 6 2 8.4 osh-native-souffle mut+alloc+free+gc
8 7 2 8.1 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.3 dash -
28 28 0 2.8 bash -
23 17 6 3.3 zsh -
19 14 5 31.0 bumpleak/osh mut
26 20 5 32.3 _bin/cxx-opt+bumproot/osh mut
28 24 4 33.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 27 9 26.5 osh-native mut+alloc
38 29 9 26.9 osh-native mut+alloc+free
28 23 5 8.0 osh-native mut+alloc+free+gc
28 27 1 8.0 osh-native mut+alloc+free+gc+exit
53 32 21 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 35 2 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 21 9 25.8 osh-native-souffle mut+alloc
31 21 10 26.2 osh-native-souffle mut+alloc+free
22 20 2 7.5 osh-native-souffle mut+alloc+free+gc
22 17 4 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
73 69 4 3.1 bash -
166 109 57 56.0 bumpleak/osh mut
182 138 44 56.2 _bin/cxx-opt+bumproot/osh mut
194 139 55 57.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 141 73 48.8 osh-native mut+alloc
220 151 69 50.8 osh-native mut+alloc+free
184 131 53 8.8 osh-native mut+alloc+free+gc
184 131 53 8.9 osh-native mut+alloc+free+gc+exit
233 166 67 64.5 _bin/cxx-opt+nopool/osh mut+alloc
212 159 53 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 126 79 48.5 osh-native-souffle mut+alloc
214 140 74 50.4 osh-native-souffle mut+alloc+free
175 121 53 8.4 osh-native-souffle mut+alloc+free+gc
174 119 55 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 5 5 3.5 dash -
19 11 8 4.3 bash -
17 8 9 3.4 zsh -
17 8 10 12.3 bumpleak/osh mut
18 8 10 12.2 _bin/cxx-opt+bumproot/osh mut
20 6 14 13.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
19 13 7 11.1 osh-native mut+alloc
20 10 11 11.4 osh-native mut+alloc+free
21 11 10 9.2 osh-native mut+alloc+free+gc
22 14 9 9.0 osh-native mut+alloc+free+gc+exit
23 12 12 12.7 _bin/cxx-opt+nopool/osh mut+alloc
24 13 11 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 11 8 10.9 osh-native-souffle mut+alloc
20 9 11 10.7 osh-native-souffle mut+alloc+free
20 10 10 8.8 osh-native-souffle mut+alloc+free+gc
20 12 9 8.8 osh-native-souffle mut+alloc+free+gc+exit