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 39 5 13 12.0 18.0 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 35 5 11 12.0 17.4 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 155 25 69 44.5 49.7 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 146 28 71 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.2 8.0 579,606 22,608 12 50,000 0 2,919 osh-native
ex.compute-fib 21 0 2 2.2 7.6 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 184 0 4 10.9 8.8 1,017,204 15,258 21 50,000 0 3,900 osh-native
ex.bashcomp-parse-help 175 0 4 10.9 8.4 1,017,203 15,258 21 50,000 0 3,851 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 8.9 116,318 277 3 85,248 1 42,624 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 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 5 1 1.6 dash -
23 20 3 3.1 bash -
103 49 61 3.4 zsh -
17 13 4 29.1 bumpleak/osh mut
21 16 6 29.0 _bin/cxx-opt+bumproot/osh mut
23 12 11 29.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 18 11 25.2 osh-native mut+alloc
31 21 10 25.6 osh-native mut+alloc+free
39 32 7 18.0 osh-native mut+alloc+free+gc
41 34 7 18.1 osh-native mut+alloc+free+gc+exit
43 31 12 32.4 _bin/cxx-opt+nopool/osh mut+alloc
56 45 11 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 17 10 24.9 osh-native-souffle mut+alloc
28 18 10 25.2 osh-native-souffle mut+alloc+free
35 27 8 17.4 osh-native-souffle mut+alloc+free+gc
38 30 7 17.8 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 -
78 74 4 3.3 bash -
370 188 204 3.5 zsh -
49 39 10 84.2 bumpleak/osh mut
62 57 5 85.1 _bin/cxx-opt+bumproot/osh mut
70 54 16 85.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
95 68 27 73.6 osh-native mut+alloc
103 73 30 75.2 osh-native mut+alloc+free
155 127 28 49.7 osh-native mut+alloc+free+gc
165 143 22 50.5 osh-native mut+alloc+free+gc+exit
136 96 40 98.9 _bin/cxx-opt+nopool/osh mut+alloc
211 180 31 66.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 56 31 73.3 osh-native-souffle mut+alloc
93 65 29 75.0 osh-native-souffle mut+alloc+free
146 118 28 49.4 osh-native-souffle mut+alloc+free+gc
156 135 21 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 1 1 1.4 dash -
6 4 1 3.0 bash -
7 3 4 3.3 zsh -
6 4 2 12.2 bumpleak/osh mut
6 3 4 12.3 _bin/cxx-opt+bumproot/osh mut
7 4 4 11.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 6 3 10.1 osh-native mut+alloc
9 5 4 10.1 osh-native mut+alloc+free
9 6 3 8.5 osh-native mut+alloc+free+gc
9 6 3 8.5 osh-native mut+alloc+free+gc+exit
12 6 6 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 10 2 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 7 1 9.6 osh-native-souffle mut+alloc
8 7 1 9.7 osh-native-souffle mut+alloc+free
9 6 3 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 9 1 1.4 dash -
29 28 2 2.9 bash -
23 18 5 3.3 zsh -
19 18 1 32.1 bumpleak/osh mut
26 24 2 32.7 _bin/cxx-opt+bumproot/osh mut
28 24 4 31.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 23 13 26.5 osh-native mut+alloc
38 30 8 26.5 osh-native mut+alloc+free
28 26 2 8.0 osh-native mut+alloc+free+gc
28 25 3 8.0 osh-native mut+alloc+free+gc+exit
54 35 19 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 32 5 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 19 11 26.0 osh-native-souffle mut+alloc
32 20 12 26.1 osh-native-souffle mut+alloc+free
21 18 4 7.6 osh-native-souffle mut+alloc+free+gc
21 18 3 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
74 69 4 3.1 bash -
165 117 48 56.5 bumpleak/osh mut
181 123 58 56.3 _bin/cxx-opt+bumproot/osh mut
194 132 62 58.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
214 141 73 48.7 osh-native mut+alloc
221 150 70 50.3 osh-native mut+alloc+free
184 133 51 8.8 osh-native mut+alloc+free+gc
183 123 61 8.8 osh-native mut+alloc+free+gc+exit
236 161 75 64.6 _bin/cxx-opt+nopool/osh mut+alloc
212 157 55 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
210 133 77 48.3 osh-native-souffle mut+alloc
212 134 79 50.0 osh-native-souffle mut+alloc+free
175 114 61 8.4 osh-native-souffle mut+alloc+free+gc
175 125 49 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 2 7 3.5 dash -
19 4 16 4.3 bash -
17 5 12 3.5 zsh -
19 8 11 11.9 bumpleak/osh mut
19 10 10 12.2 _bin/cxx-opt+bumproot/osh mut
20 7 13 12.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 9 12 11.0 osh-native mut+alloc
22 11 12 11.0 osh-native mut+alloc+free
22 13 9 8.9 osh-native mut+alloc+free+gc
23 12 11 9.2 osh-native mut+alloc+free+gc+exit
25 8 17 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 15 10 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 9 11 10.7 osh-native-souffle mut+alloc
21 10 11 10.6 osh-native-souffle mut+alloc+free
21 14 8 8.7 osh-native-souffle mut+alloc+free+gc
21 11 11 8.8 osh-native-souffle mut+alloc+free+gc+exit