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 106 18 44 44.5 49.8 1,653,367 4,764 12 1,025,556 6 764,321 osh-native
parse.configure-coreutils 97 17 41 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.6 101,970 180 2 75,060 1 37,530 osh-native
parse.abuild 6 0 1 2.6 8.2 101,970 180 2 75,050 1 37,525 osh-native-souffle
ex.compute-fib 20 0 1 2.2 8.2 579,730 22,608 12 50,000 0 2,930 osh-native
ex.compute-fib 16 0 1 2.2 7.8 579,730 22,608 12 50,000 0 2,925 osh-native-souffle
ex.bashcomp-parse-help 129 0 3 11.1 8.9 1,021,047 15,258 22 50,000 0 3,919 osh-native
ex.bashcomp-parse-help 124 0 2 11.1 8.5 1,021,046 15,258 22 50,000 0 3,910 osh-native-souffle
ex.abuild-print-help 25 1 2 2.8 9.3 116,366 277 3 85,272 1 42,636 osh-native
ex.abuild-print-help 24 0 1 2.8 8.8 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
4 4 0 1.7 dash -
16 16 0 3.2 bash -
113 82 37 3.5 zsh -
12 6 6 28.6 bumpleak/osh mut
15 11 4 28.7 _bin/cxx-opt+bumproot/osh mut
17 10 7 28.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
22 18 4 25.4 osh-native mut+alloc
24 16 8 25.5 osh-native mut+alloc+free
26 22 4 17.9 osh-native mut+alloc+free+gc
27 22 4 18.1 osh-native mut+alloc+free+gc+exit
33 18 15 33.2 _bin/cxx-opt+nopool/osh mut+alloc
37 29 8 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
21 12 8 24.9 osh-native-souffle mut+alloc
22 13 9 25.3 osh-native-souffle mut+alloc+free
24 16 8 17.5 osh-native-souffle mut+alloc+free+gc
24 16 8 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
26 26 0 1.7 dash -
55 55 0 3.4 bash -
312 170 158 3.6 zsh -
38 29 8 84.9 bumpleak/osh mut
45 37 8 85.6 _bin/cxx-opt+bumproot/osh mut
53 50 4 85.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
70 47 23 73.7 osh-native mut+alloc
78 43 35 75.4 osh-native mut+alloc+free
106 85 20 49.8 osh-native mut+alloc+free+gc
112 104 8 50.3 osh-native mut+alloc+free+gc+exit
127 86 41 98.2 _bin/cxx-opt+nopool/osh mut+alloc
152 124 28 67.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
64 36 28 73.1 osh-native-souffle mut+alloc
72 48 24 75.1 osh-native-souffle mut+alloc+free
97 78 19 49.5 osh-native-souffle mut+alloc+free+gc
102 86 16 50.0 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.7 dash -
4 4 0 2.9 bash -
6 1 5 3.5 zsh -
5 5 0 10.9 bumpleak/osh mut
5 3 3 11.8 _bin/cxx-opt+bumproot/osh mut
5 5 0 11.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
6 6 0 10.3 osh-native mut+alloc
6 0 6 10.2 osh-native mut+alloc+free
7 7 0 8.6 osh-native mut+alloc+free+gc
7 7 0 8.6 osh-native mut+alloc+free+gc+exit
9 4 4 11.6 _bin/cxx-opt+nopool/osh mut+alloc
9 8 0 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
6 3 3 9.7 osh-native-souffle mut+alloc
6 0 6 9.9 osh-native-souffle mut+alloc+free
6 6 0 8.2 osh-native-souffle mut+alloc+free+gc
6 0 6 8.3 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
7 7 0 1.7 dash -
20 20 0 3.1 bash -
17 8 8 3.3 zsh -
14 9 4 31.8 bumpleak/osh mut
18 18 0 32.1 _bin/cxx-opt+bumproot/osh mut
20 16 4 31.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
27 19 8 26.5 osh-native mut+alloc
28 16 12 26.7 osh-native mut+alloc+free
20 20 0 8.2 osh-native mut+alloc+free+gc
20 16 4 8.1 osh-native mut+alloc+free+gc+exit
41 33 8 36.3 _bin/cxx-opt+nopool/osh mut+alloc
27 19 8 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
22 13 9 26.1 osh-native-souffle mut+alloc
24 16 8 26.3 osh-native-souffle mut+alloc+free
16 16 0 7.8 osh-native-souffle mut+alloc+free+gc
15 11 4 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 43 8 3.2 bash -
119 87 32 55.9 bumpleak/osh mut
131 95 36 58.4 _bin/cxx-opt+bumproot/osh mut
143 99 44 57.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
153 97 56 49.1 osh-native mut+alloc
165 108 52 51.0 osh-native mut+alloc+free
129 78 51 8.9 osh-native mut+alloc+free+gc
130 75 55 8.9 osh-native mut+alloc+free+gc+exit
169 121 48 64.8 _bin/cxx-opt+nopool/osh mut+alloc
150 102 49 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
150 97 53 48.7 osh-native-souffle mut+alloc
155 92 64 50.5 osh-native-souffle mut+alloc+free
124 88 36 8.5 osh-native-souffle mut+alloc+free+gc
123 70 53 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
12 6 5 3.6 dash -
21 10 12 4.6 bash -
19 12 7 3.6 zsh -
21 17 5 11.7 bumpleak/osh mut
25 11 13 12.8 _bin/cxx-opt+bumproot/osh mut
25 14 12 14.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
24 17 7 11.2 osh-native mut+alloc
25 16 9 11.4 osh-native mut+alloc+free
25 19 6 9.3 osh-native mut+alloc+free+gc
25 16 10 9.2 osh-native mut+alloc+free+gc+exit
27 15 13 12.7 _bin/cxx-opt+nopool/osh mut+alloc
27 20 7 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
23 13 10 10.8 osh-native-souffle mut+alloc
24 17 7 10.9 osh-native-souffle mut+alloc+free
24 19 5 8.8 osh-native-souffle mut+alloc+free+gc
24 16 8 8.8 osh-native-souffle mut+alloc+free+gc+exit