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 18.0 476,760 1,282 6 406,606 5 203,303 osh-native
parse.configure-cpython 32 3 9 12.0 17.6 476,760 1,282 6 406,322 5 203,161 osh-native-souffle
parse.configure-coreutils 148 24 62 44.5 49.8 1,653,348 4,764 12 1,025,528 6 764,307 osh-native
parse.configure-coreutils 133 23 58 44.5 49.4 1,653,347 4,764 12 1,025,518 6 764,302 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,951 180 2 75,032 1 37,516 osh-native
parse.abuild 8 1 1 2.6 8.1 101,951 180 2 75,022 1 37,511 osh-native-souffle
ex.compute-fib 28 0 1 2.2 8.0 579,715 22,608 12 50,000 0 2,920 osh-native
ex.compute-fib 21 0 1 2.2 7.5 579,715 22,608 12 50,000 0 2,915 osh-native-souffle
ex.bashcomp-parse-help 184 0 4 11.1 8.8 1,021,030 15,258 22 50,000 0 3,909 osh-native
ex.bashcomp-parse-help 174 0 4 11.1 8.4 1,021,029 15,258 22 50,000 0 3,914 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.2 116,334 277 3 85,250 1 42,625 osh-native
ex.abuild-print-help 20 1 2 2.8 8.7 116,334 277 3 85,240 1 42,620 osh-native-souffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 6 0 1.6 dash -
23 21 2 3.0 bash -
100 56 50 3.4 zsh -
16 12 4 29.2 bumpleak/osh mut
20 17 3 30.0 _bin/cxx-opt+bumproot/osh mut
23 16 7 28.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 16 13 25.2 osh-native mut+alloc
31 19 12 25.7 osh-native mut+alloc+free
35 25 9 18.0 osh-native mut+alloc+free+gc
38 30 8 18.1 osh-native mut+alloc+free+gc+exit
41 28 13 32.5 _bin/cxx-opt+nopool/osh mut+alloc
47 36 11 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 14 13 24.9 osh-native-souffle mut+alloc
28 14 14 25.2 osh-native-souffle mut+alloc+free
32 26 6 17.6 osh-native-souffle mut+alloc+free+gc
33 26 7 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 -
79 78 1 3.3 bash -
363 194 189 3.7 zsh -
50 42 8 84.3 bumpleak/osh mut
61 52 10 85.3 _bin/cxx-opt+bumproot/osh mut
70 57 13 86.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 71 27 73.5 osh-native mut+alloc
104 76 28 75.2 osh-native mut+alloc+free
148 126 22 49.8 osh-native mut+alloc+free+gc
152 131 21 50.5 osh-native mut+alloc+free+gc+exit
138 91 47 98.9 _bin/cxx-opt+nopool/osh mut+alloc
201 168 33 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
88 64 24 73.1 osh-native-souffle mut+alloc
94 59 35 75.0 osh-native-souffle mut+alloc+free
133 111 22 49.4 osh-native-souffle mut+alloc+free+gc
141 112 29 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 2 0 1.4 dash -
5 4 1 2.9 bash -
7 4 3 3.4 zsh -
6 4 1 11.6 bumpleak/osh mut
7 3 4 11.7 _bin/cxx-opt+bumproot/osh mut
7 5 2 12.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 6 3 10.0 osh-native mut+alloc
9 5 3 10.1 osh-native mut+alloc+free
9 7 2 8.5 osh-native mut+alloc+free+gc
9 6 3 8.5 osh-native mut+alloc+free+gc+exit
12 5 6 11.3 _bin/cxx-opt+nopool/osh mut+alloc
11 9 2 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 2 6 9.6 osh-native-souffle mut+alloc
8 5 3 9.7 osh-native-souffle mut+alloc+free
8 6 2 8.1 osh-native-souffle mut+alloc+free+gc
9 4 5 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
10 10 0 1.4 dash -
28 25 3 3.0 bash -
23 18 5 3.3 zsh -
18 17 1 31.0 bumpleak/osh mut
25 23 2 31.5 _bin/cxx-opt+bumproot/osh mut
28 23 5 31.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 26 11 26.3 osh-native mut+alloc
38 26 11 26.7 osh-native mut+alloc+free
28 24 4 8.0 osh-native mut+alloc+free+gc
28 26 2 8.0 osh-native mut+alloc+free+gc+exit
53 35 18 35.9 _bin/cxx-opt+nopool/osh mut+alloc
38 35 3 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
29 17 12 25.8 osh-native-souffle mut+alloc
31 21 9 26.1 osh-native-souffle mut+alloc+free
21 18 3 7.5 osh-native-souffle mut+alloc+free+gc
21 20 1 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
72 68 4 3.0 bash -
168 113 55 56.4 bumpleak/osh mut
179 129 50 57.1 _bin/cxx-opt+bumproot/osh mut
194 129 65 58.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 146 66 49.0 osh-native mut+alloc
220 137 83 50.8 osh-native mut+alloc+free
184 139 45 8.8 osh-native mut+alloc+free+gc
181 136 46 8.8 osh-native mut+alloc+free+gc+exit
233 159 73 64.5 _bin/cxx-opt+nopool/osh mut+alloc
208 155 54 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
206 131 75 48.4 osh-native-souffle mut+alloc
213 145 68 50.4 osh-native-souffle mut+alloc+free
174 130 44 8.4 osh-native-souffle mut+alloc+free+gc
176 115 61 8.1 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 4 6 3.4 dash -
19 10 10 4.5 bash -
17 7 10 3.4 zsh -
18 7 11 11.6 bumpleak/osh mut
20 8 12 12.9 _bin/cxx-opt+bumproot/osh mut
19 10 10 12.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 9 12 11.0 osh-native mut+alloc
22 12 10 11.3 osh-native mut+alloc+free
22 12 10 9.2 osh-native mut+alloc+free+gc
22 12 10 9.2 osh-native mut+alloc+free+gc+exit
24 12 12 12.8 _bin/cxx-opt+nopool/osh mut+alloc
24 14 11 9.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 10 10 10.7 osh-native-souffle mut+alloc
21 7 14 10.7 osh-native-souffle mut+alloc+free
20 11 10 8.7 osh-native-souffle mut+alloc+free+gc
21 14 7 8.7 osh-native-souffle mut+alloc+free+gc+exit