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,752 1,282 6 406,606 5 203,303 osh-native
parse.configure-cpython 32 3 9 12.0 17.4 476,752 1,282 6 406,202 5 203,101 osh-native-souffle
parse.configure-coreutils 146 23 60 44.5 49.8 1,653,340 4,764 12 1,025,528 6 764,307 osh-native
parse.configure-coreutils 134 23 58 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 8 1 2 2.4 8.0 101,943 180 3 87,094 1 43,547 osh-native-souffle
ex.compute-fib 29 0 2 2.1 7.7 579,607 22,608 12 50,000 0 2,920 osh-native
ex.compute-fib 22 0 1 2.1 7.6 579,607 22,608 12 50,000 0 2,859 osh-native-souffle
ex.bashcomp-parse-help 182 0 3 10.8 8.9 1,006,009 15,258 21 50,000 0 3,920 osh-native
ex.bashcomp-parse-help 175 0 3 10.8 8.4 1,006,008 15,258 21 50,000 0 3,843 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 9.0 116,319 277 3 85,250 1 42,625 osh-native
ex.abuild-print-help 21 1 2 2.8 8.4 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 -
23 23 0 3.0 bash -
105 50 62 3.3 zsh -
16 12 4 28.5 bumpleak/osh mut
20 12 8 28.5 _bin/cxx-opt+bumproot/osh mut
22 18 4 30.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 21 8 25.2 osh-native mut+alloc
31 17 13 25.8 osh-native mut+alloc+free
35 26 9 18.0 osh-native mut+alloc+free+gc
35 31 4 18.0 osh-native mut+alloc+free+gc+exit
43 31 12 32.2 _bin/cxx-opt+nopool/osh mut+alloc
47 43 4 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 9 17 24.8 osh-native-souffle mut+alloc
29 12 16 25.2 osh-native-souffle mut+alloc+free
32 20 12 17.4 osh-native-souffle mut+alloc+free+gc
33 24 8 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 22 0 1.6 dash -
78 78 0 3.3 bash -
378 221 179 3.5 zsh -
48 36 12 85.3 bumpleak/osh mut
59 51 8 84.9 _bin/cxx-opt+bumproot/osh mut
71 59 12 84.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 66 31 73.7 osh-native mut+alloc
105 66 39 75.4 osh-native mut+alloc+free
146 125 20 49.8 osh-native mut+alloc+free+gc
150 142 8 50.3 osh-native mut+alloc+free+gc+exit
139 114 24 99.4 _bin/cxx-opt+nopool/osh mut+alloc
203 167 36 68.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 55 31 73.1 osh-native-souffle mut+alloc
96 48 48 74.9 osh-native-souffle mut+alloc+free
134 113 20 49.3 osh-native-souffle mut+alloc+free+gc
138 126 12 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 3.0 bash -
8 0 7 3.3 zsh -
6 0 6 10.6 bumpleak/osh mut
7 0 7 11.7 _bin/cxx-opt+bumproot/osh mut
7 0 7 11.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.0 osh-native mut+alloc
8 0 8 10.2 osh-native mut+alloc+free
9 9 0 8.7 osh-native mut+alloc+free+gc
9 6 3 8.5 osh-native mut+alloc+free+gc+exit
11 4 8 11.4 _bin/cxx-opt+nopool/osh mut+alloc
11 7 4 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 7 0 9.7 osh-native-souffle mut+alloc
8 0 8 9.8 osh-native-souffle mut+alloc+free
8 0 8 8.0 osh-native-souffle mut+alloc+free+gc
9 9 0 8.0 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 -
29 28 0 3.0 bash -
24 23 0 3.4 zsh -
18 13 4 31.4 bumpleak/osh mut
25 17 8 32.7 _bin/cxx-opt+bumproot/osh mut
28 24 4 31.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
35 23 12 26.3 osh-native mut+alloc
37 24 12 26.5 osh-native mut+alloc+free
29 28 0 7.7 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
53 38 15 35.8 _bin/cxx-opt+nopool/osh mut+alloc
38 38 0 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 26 4 26.0 osh-native-souffle mut+alloc
31 26 4 26.2 osh-native-souffle mut+alloc+free
22 18 4 7.6 osh-native-souffle mut+alloc+free+gc
22 17 4 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 96 72 55.4 bumpleak/osh mut
181 114 67 57.2 _bin/cxx-opt+bumproot/osh mut
197 126 71 58.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
217 124 92 48.0 osh-native mut+alloc
218 151 67 50.0 osh-native mut+alloc+free
182 139 44 8.9 osh-native mut+alloc+free+gc
183 115 67 8.8 osh-native mut+alloc+free+gc+exit
235 171 64 65.1 _bin/cxx-opt+nopool/osh mut+alloc
211 135 76 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
207 130 77 47.6 osh-native-souffle mut+alloc
213 152 60 49.6 osh-native-souffle mut+alloc+free
175 119 55 8.4 osh-native-souffle mut+alloc+free+gc
176 123 52 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
10 9 1 3.5 dash -
20 17 3 4.3 bash -
18 10 8 3.5 zsh -
19 16 3 12.6 bumpleak/osh mut
19 13 7 12.3 _bin/cxx-opt+bumproot/osh mut
20 18 3 12.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 13 8 11.1 osh-native mut+alloc
22 16 6 11.1 osh-native mut+alloc+free
22 20 3 9.0 osh-native mut+alloc+free+gc
23 20 3 9.2 osh-native mut+alloc+free+gc+exit
25 15 10 12.8 _bin/cxx-opt+nopool/osh mut+alloc
24 19 6 9.8 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 14 6 10.6 osh-native-souffle mut+alloc
21 15 6 10.7 osh-native-souffle mut+alloc+free
21 19 2 8.4 osh-native-souffle mut+alloc+free+gc
22 19 3 8.8 osh-native-souffle mut+alloc+free+gc+exit