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.7 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 144 23 59 44.5 49.7 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 142 24 64 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.7 101,942 180 2 75,030 1 37,515 osh-native
parse.abuild 9 1 2 2.4 7.9 101,942 180 3 87,092 1 43,546 osh-native-souffle
ex.compute-fib 28 0 1 2.1 8.0 579,606 22,608 12 50,000 0 2,919 osh-native
ex.compute-fib 21 0 2 2.1 7.6 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 182 0 3 10.8 8.8 1,006,008 15,258 21 50,000 0 3,919 osh-native
ex.bashcomp-parse-help 177 0 4 10.8 8.4 1,006,007 15,258 21 50,000 0 3,842 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.4 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 19 4 3.0 bash -
105 72 39 3.4 zsh -
16 12 4 28.8 bumpleak/osh mut
19 15 4 29.6 _bin/cxx-opt+bumproot/osh mut
22 17 4 29.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 17 12 25.2 osh-native mut+alloc
31 19 11 25.6 osh-native mut+alloc+free
35 27 8 17.7 osh-native mut+alloc+free+gc
35 31 4 17.8 osh-native mut+alloc+free+gc+exit
43 27 16 33.1 _bin/cxx-opt+nopool/osh mut+alloc
48 40 8 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 18 9 24.8 osh-native-souffle mut+alloc
28 12 16 25.2 osh-native-souffle mut+alloc+free
33 18 14 17.4 osh-native-souffle mut+alloc+free+gc
34 29 4 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
22 21 0 1.4 dash -
77 73 4 3.0 bash -
376 215 182 3.4 zsh -
48 48 0 85.7 bumpleak/osh mut
59 51 8 85.1 _bin/cxx-opt+bumproot/osh mut
70 51 19 86.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 60 36 73.7 osh-native mut+alloc
106 63 43 75.2 osh-native mut+alloc+free
144 112 32 49.7 osh-native mut+alloc+free+gc
149 120 28 50.3 osh-native mut+alloc+free+gc+exit
138 87 51 98.3 _bin/cxx-opt+nopool/osh mut+alloc
201 168 32 67.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 58 29 73.1 osh-native-souffle mut+alloc
97 61 36 75.1 osh-native-souffle mut+alloc+free
142 118 24 49.4 osh-native-souffle mut+alloc+free+gc
144 100 44 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.8 bash -
8 8 0 3.3 zsh -
5 0 5 12.0 bumpleak/osh mut
7 0 7 11.8 _bin/cxx-opt+bumproot/osh mut
7 0 7 10.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 0 9 10.0 osh-native mut+alloc
8 3 6 10.2 osh-native mut+alloc+free
9 9 0 8.7 osh-native mut+alloc+free+gc
9 6 3 8.4 osh-native mut+alloc+free+gc+exit
11 8 4 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 7 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 8 0 9.7 osh-native-souffle mut+alloc
8 4 4 9.7 osh-native-souffle mut+alloc+free
9 4 4 7.9 osh-native-souffle mut+alloc+free+gc
9 9 0 7.9 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
11 10 0 1.4 dash -
28 28 0 3.0 bash -
24 20 4 3.4 zsh -
19 11 7 31.2 bumpleak/osh mut
25 18 7 33.1 _bin/cxx-opt+bumproot/osh mut
27 23 4 31.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 32 4 26.5 osh-native mut+alloc
37 20 16 26.5 osh-native mut+alloc+free
28 27 0 8.0 osh-native mut+alloc+free+gc
27 27 0 7.9 osh-native mut+alloc+free+gc+exit
54 37 17 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 28 8 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
29 7 22 26.0 osh-native-souffle mut+alloc
30 19 11 26.1 osh-native-souffle mut+alloc+free
21 21 0 7.6 osh-native-souffle mut+alloc+free+gc
21 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 65 8 3.1 bash -
171 119 52 56.4 bumpleak/osh mut
181 129 52 57.3 _bin/cxx-opt+bumproot/osh mut
197 136 60 57.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
213 153 60 48.0 osh-native mut+alloc
218 146 71 49.9 osh-native mut+alloc+free
182 138 45 8.8 osh-native mut+alloc+free+gc
183 101 81 8.8 osh-native mut+alloc+free+gc+exit
236 160 76 64.9 _bin/cxx-opt+nopool/osh mut+alloc
211 171 40 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
206 117 89 47.6 osh-native-souffle mut+alloc
213 108 104 49.6 osh-native-souffle mut+alloc+free
177 124 52 8.4 osh-native-souffle mut+alloc+free+gc
176 112 64 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 8 2 3.5 dash -
20 15 5 4.5 bash -
18 8 10 3.4 zsh -
20 12 7 12.0 bumpleak/osh mut
20 20 0 12.8 _bin/cxx-opt+bumproot/osh mut
21 16 6 13.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 11 10 10.9 osh-native mut+alloc
22 21 2 11.1 osh-native mut+alloc+free
22 20 3 8.9 osh-native mut+alloc+free+gc
22 22 0 9.2 osh-native mut+alloc+free+gc+exit
25 13 12 12.7 _bin/cxx-opt+nopool/osh mut+alloc
24 20 4 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 6 14 10.6 osh-native-souffle mut+alloc
21 14 8 10.6 osh-native-souffle mut+alloc+free
21 15 7 8.4 osh-native-souffle mut+alloc+free+gc
21 16 6 8.5 osh-native-souffle mut+alloc+free+gc+exit