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 26 2 7 12.0 17.9 476,779 1,282 6 406,634 5 203,317 osh-native
parse.configure-cpython 24 2 6 12.0 17.5 476,779 1,282 6 406,624 5 203,312 osh-native-souffle
parse.configure-coreutils 112 20 48 44.5 49.8 1,653,367 4,764 12 1,025,556 6 764,321 osh-native
parse.configure-coreutils 103 20 45 44.5 49.5 1,653,366 4,764 12 1,025,546 6 764,316 osh-native-souffle
parse.abuild 7 0 1 2.6 8.8 101,970 180 2 75,060 1 37,530 osh-native
parse.abuild 6 0 1 2.6 8.3 101,970 180 2 75,050 1 37,525 osh-native-souffle
ex.compute-fib 20 0 1 2.2 8.0 579,730 22,608 12 50,000 0 2,930 osh-native
ex.compute-fib 16 0 1 2.2 7.7 579,730 22,608 12 50,000 0 2,925 osh-native-souffle
ex.bashcomp-parse-help 128 0 3 11.1 8.9 1,021,047 15,258 22 50,000 0 3,919 osh-native
ex.bashcomp-parse-help 123 0 2 11.1 8.5 1,021,046 15,258 22 50,000 0 3,910 osh-native-souffle
ex.abuild-print-help 19 1 2 2.8 9.3 116,366 277 3 85,272 1 42,636 osh-native
ex.abuild-print-help 18 0 1 2.8 8.9 116,366 277 3 85,262 1 42,631 osh-native-souffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
5 5 0 1.6 dash -
16 12 4 3.2 bash -
88 55 39 3.5 zsh -
12 8 4 30.0 bumpleak/osh mut
14 5 9 28.3 _bin/cxx-opt+bumproot/osh mut
17 12 4 30.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 13 9 25.2 osh-native mut+alloc
24 8 16 25.7 osh-native mut+alloc+free
26 22 4 17.9 osh-native mut+alloc+free+gc
27 23 4 17.9 osh-native mut+alloc+free+gc+exit
33 24 8 32.0 _bin/cxx-opt+nopool/osh mut+alloc
36 32 4 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
21 14 7 24.8 osh-native-souffle mut+alloc
23 7 15 25.2 osh-native-souffle mut+alloc+free
24 20 4 17.5 osh-native-souffle mut+alloc+free+gc
25 24 0 17.6 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
15 15 0 1.7 dash -
54 54 0 3.3 bash -
304 183 137 3.5 zsh -
37 33 4 84.0 bumpleak/osh mut
45 37 7 85.6 _bin/cxx-opt+bumproot/osh mut
52 44 8 85.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
73 56 17 73.5 osh-native mut+alloc
83 47 35 75.6 osh-native mut+alloc+free
112 96 16 49.8 osh-native mut+alloc+free+gc
117 90 27 50.4 osh-native mut+alloc+free+gc+exit
105 60 44 99.6 _bin/cxx-opt+nopool/osh mut+alloc
168 128 40 66.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
69 44 24 73.2 osh-native-souffle mut+alloc
74 41 33 75.1 osh-native-souffle mut+alloc+free
103 82 21 49.5 osh-native-souffle mut+alloc+free+gc
109 90 19 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
1 1 0 1.6 dash -
4 0 4 3.0 bash -
6 5 0 3.4 zsh -
5 5 0 11.0 bumpleak/osh mut
5 5 0 12.6 _bin/cxx-opt+bumproot/osh mut
5 3 3 11.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.1 osh-native mut+alloc
6 0 6 10.2 osh-native mut+alloc+free
7 3 3 8.8 osh-native mut+alloc+free+gc
7 6 0 8.6 osh-native mut+alloc+free+gc+exit
9 4 4 11.6 _bin/cxx-opt+nopool/osh mut+alloc
8 4 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
7 7 0 9.8 osh-native-souffle mut+alloc
6 6 0 9.8 osh-native-souffle mut+alloc+free
6 3 3 8.3 osh-native-souffle mut+alloc+free+gc
6 3 3 8.4 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
8 8 0 1.7 dash -
20 20 0 3.0 bash -
16 12 4 3.3 zsh -
13 13 0 30.9 bumpleak/osh mut
19 19 0 33.0 _bin/cxx-opt+bumproot/osh mut
20 16 4 32.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
27 23 4 26.5 osh-native mut+alloc
28 20 8 26.7 osh-native mut+alloc+free
20 20 0 8.0 osh-native mut+alloc+free+gc
20 20 0 8.1 osh-native mut+alloc+free+gc+exit
40 28 12 36.4 _bin/cxx-opt+nopool/osh mut+alloc
27 26 0 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
23 19 4 26.1 osh-native-souffle mut+alloc
23 19 4 26.3 osh-native-souffle mut+alloc+free
16 15 0 7.7 osh-native-souffle mut+alloc+free+gc
15 15 0 7.7 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
51 51 0 3.3 bash -
118 82 37 57.3 bumpleak/osh mut
127 91 36 57.7 _bin/cxx-opt+bumproot/osh mut
140 104 36 57.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
154 123 32 49.0 osh-native mut+alloc
159 111 48 50.9 osh-native mut+alloc+free
128 100 28 8.9 osh-native mut+alloc+free+gc
130 90 39 8.9 osh-native mut+alloc+free+gc+exit
170 83 87 65.3 _bin/cxx-opt+nopool/osh mut+alloc
155 106 49 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
149 102 47 48.7 osh-native-souffle mut+alloc
157 110 47 50.6 osh-native-souffle mut+alloc+free
123 74 49 8.5 osh-native-souffle mut+alloc+free+gc
122 79 43 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
11 7 5 3.6 dash -
21 17 5 4.5 bash -
19 13 6 3.6 zsh -
23 8 15 12.5 bumpleak/osh mut
25 11 14 12.9 _bin/cxx-opt+bumproot/osh mut
23 13 10 14.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
24 19 6 11.3 osh-native mut+alloc
20 18 2 11.4 osh-native mut+alloc+free
19 13 7 9.3 osh-native mut+alloc+free+gc
19 12 8 9.3 osh-native mut+alloc+free+gc+exit
27 18 9 12.6 _bin/cxx-opt+nopool/osh mut+alloc
27 15 12 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
17 14 4 10.7 osh-native-souffle mut+alloc
18 16 3 10.9 osh-native-souffle mut+alloc+free
18 17 2 8.9 osh-native-souffle mut+alloc+free+gc
18 18 1 8.8 osh-native-souffle mut+alloc+free+gc+exit