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 41 7 14 12.0 18.0 476,752 1,282 6 406,606 5 203,303 osh-native
parse.configure-cpython 38 6 13 12.0 17.6 476,752 1,282 6 406,202 5 203,101 osh-native-souffle
parse.configure-coreutils 163 23 76 44.5 49.7 1,653,340 4,764 12 1,025,528 6 764,307 osh-native
parse.configure-coreutils 146 25 68 44.5 49.3 1,653,339 4,764 12 1,025,398 6 764,242 osh-native-souffle
parse.abuild 9 1 1 2.6 8.7 101,943 180 2 75,032 1 37,516 osh-native
parse.abuild 9 1 2 2.4 8.1 101,943 180 3 87,094 1 43,547 osh-native-souffle
ex.compute-fib 28 0 2 2.1 8.0 579,607 22,608 12 50,000 0 2,920 osh-native
ex.compute-fib 22 0 2 2.1 7.6 579,607 22,608 12 50,000 0 2,859 osh-native-souffle
ex.bashcomp-parse-help 187 0 5 10.3 8.7 995,289 15,258 21 50,000 0 3,902 osh-native
ex.bashcomp-parse-help 176 0 3 10.3 8.3 995,288 15,258 21 50,000 0 3,845 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 9.2 116,319 277 3 85,250 1 42,625 osh-native
ex.abuild-print-help 22 1 2 2.8 8.5 116,319 277 3 85,126 1 42,563 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 -
24 23 0 3.1 bash -
108 59 55 3.4 zsh -
17 16 0 29.3 bumpleak/osh mut
20 15 4 29.3 _bin/cxx-opt+bumproot/osh mut
24 12 12 30.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
31 11 19 25.2 osh-native mut+alloc
32 24 8 25.7 osh-native mut+alloc+free
41 32 8 18.0 osh-native mut+alloc+free+gc
39 31 8 18.1 osh-native mut+alloc+free+gc+exit
44 24 20 32.4 _bin/cxx-opt+nopool/osh mut+alloc
53 45 8 22.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
27 12 16 24.9 osh-native-souffle mut+alloc
30 26 4 25.3 osh-native-souffle mut+alloc+free
38 26 11 17.6 osh-native-souffle mut+alloc+free+gc
34 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
22 21 0 1.6 dash -
78 77 0 3.3 bash -
384 216 190 3.5 zsh -
49 40 8 84.7 bumpleak/osh mut
61 48 12 84.6 _bin/cxx-opt+bumproot/osh mut
72 36 36 85.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
98 59 39 73.4 osh-native mut+alloc
109 73 36 75.5 osh-native mut+alloc+free
163 135 28 49.7 osh-native mut+alloc+free+gc
156 148 8 50.3 osh-native mut+alloc+free+gc+exit
140 96 44 99.8 _bin/cxx-opt+nopool/osh mut+alloc
262 234 28 68.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
90 54 35 73.1 osh-native-souffle mut+alloc
98 54 43 74.8 osh-native-souffle mut+alloc+free
146 118 28 49.3 osh-native-souffle mut+alloc+free+gc
159 134 24 49.9 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.3 dash -
6 6 0 3.0 bash -
8 4 4 3.3 zsh -
6 6 0 11.9 bumpleak/osh mut
7 7 0 11.0 _bin/cxx-opt+bumproot/osh mut
7 4 4 12.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
9 4 4 10.1 osh-native mut+alloc
9 4 4 10.1 osh-native mut+alloc+free
9 9 0 8.7 osh-native mut+alloc+free+gc
10 10 0 8.7 osh-native mut+alloc+free+gc+exit
13 13 0 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 8 0 9.7 osh-native-souffle mut+alloc
9 4 4 9.6 osh-native-souffle mut+alloc+free
9 5 5 8.1 osh-native-souffle mut+alloc+free+gc
10 5 5 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
10 7 3 1.4 dash -
30 29 0 2.9 bash -
24 16 8 3.3 zsh -
20 12 8 32.7 bumpleak/osh mut
26 18 7 32.7 _bin/cxx-opt+bumproot/osh mut
28 23 4 32.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 20 16 26.3 osh-native mut+alloc
38 29 8 26.5 osh-native mut+alloc+free
28 28 0 8.0 osh-native mut+alloc+free+gc
29 29 0 8.0 osh-native mut+alloc+free+gc+exit
54 37 16 35.8 _bin/cxx-opt+nopool/osh mut+alloc
37 30 7 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
31 19 11 25.8 osh-native-souffle mut+alloc
32 16 16 26.2 osh-native-souffle mut+alloc+free
22 22 0 7.6 osh-native-souffle mut+alloc+free+gc
22 22 0 7.5 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 66 8 3.1 bash -
168 108 60 54.4 bumpleak/osh mut
183 132 52 54.6 _bin/cxx-opt+bumproot/osh mut
197 137 60 56.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
218 123 95 47.3 osh-native mut+alloc
224 128 96 49.0 osh-native mut+alloc+free
187 115 71 8.7 osh-native mut+alloc+free+gc
186 127 59 8.7 osh-native mut+alloc+free+gc+exit
237 160 76 63.6 _bin/cxx-opt+nopool/osh mut+alloc
238 206 32 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 122 83 46.9 osh-native-souffle mut+alloc
211 119 91 48.7 osh-native-souffle mut+alloc+free
176 116 60 8.3 osh-native-souffle mut+alloc+free+gc
175 118 57 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 9 2 3.4 dash -
20 11 10 4.3 bash -
18 10 9 3.4 zsh -
19 13 6 12.2 bumpleak/osh mut
23 21 2 12.8 _bin/cxx-opt+bumproot/osh mut
21 5 16 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 19 3 11.1 osh-native mut+alloc
23 14 10 11.1 osh-native mut+alloc+free
23 13 10 9.2 osh-native mut+alloc+free+gc
24 16 9 9.2 osh-native mut+alloc+free+gc+exit
25 24 2 12.8 _bin/cxx-opt+nopool/osh mut+alloc
26 20 6 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 20 1 10.6 osh-native-souffle mut+alloc
22 15 8 10.7 osh-native-souffle mut+alloc+free
22 14 8 8.5 osh-native-souffle mut+alloc+free+gc
23 16 6 8.7 osh-native-souffle mut+alloc+free+gc+exit