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 17.8 476,752 1,282 6 406,606 5 203,303 osh-native
parse.configure-cpython 33 4 10 12.0 17.7 476,752 1,282 6 406,202 5 203,101 osh-native-souffle
parse.configure-coreutils 142 22 56 44.5 49.8 1,653,340 4,764 12 1,025,528 6 764,307 osh-native
parse.configure-coreutils 138 22 61 44.5 49.4 1,653,339 4,764 12 1,025,398 6 764,242 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,943 180 2 75,032 1 37,516 osh-native
parse.abuild 9 1 2 2.4 8.0 101,943 180 3 87,094 1 43,547 osh-native-souffle
ex.compute-fib 29 0 1 2.1 8.1 579,607 22,608 12 50,000 0 2,920 osh-native
ex.compute-fib 21 0 2 2.1 7.6 579,607 22,608 12 50,000 0 2,859 osh-native-souffle
ex.bashcomp-parse-help 180 0 3 10.3 8.9 995,289 15,258 21 50,000 0 3,902 osh-native
ex.bashcomp-parse-help 174 0 4 10.3 8.1 995,288 15,258 21 50,000 0 3,845 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.7 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
7 3 3 1.6 dash -
23 19 4 3.0 bash -
105 62 49 3.4 zsh -
16 12 4 29.8 bumpleak/osh mut
19 18 0 29.6 _bin/cxx-opt+bumproot/osh mut
22 11 11 29.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 24 4 25.3 osh-native mut+alloc
31 19 12 25.6 osh-native mut+alloc+free
35 34 0 17.8 osh-native mut+alloc+free+gc
36 28 8 18.0 osh-native mut+alloc+free+gc+exit
43 23 19 32.1 _bin/cxx-opt+nopool/osh mut+alloc
48 36 12 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 19 7 24.8 osh-native-souffle mut+alloc
28 20 8 25.4 osh-native-souffle mut+alloc+free
33 33 0 17.7 osh-native-souffle mut+alloc+free+gc
34 26 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
21 21 0 1.6 dash -
78 78 0 3.3 bash -
374 249 147 3.4 zsh -
49 48 0 84.2 bumpleak/osh mut
60 52 8 85.1 _bin/cxx-opt+bumproot/osh mut
71 54 17 86.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 72 24 73.4 osh-native mut+alloc
105 64 40 75.3 osh-native mut+alloc+free
142 113 28 49.8 osh-native mut+alloc+free+gc
148 132 16 50.3 osh-native mut+alloc+free+gc+exit
138 77 61 97.9 _bin/cxx-opt+nopool/osh mut+alloc
206 174 32 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
86 41 45 73.0 osh-native-souffle mut+alloc
95 61 33 75.0 osh-native-souffle mut+alloc+free
138 114 24 49.4 osh-native-souffle mut+alloc+free+gc
141 121 20 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 3 3 2.9 bash -
8 4 4 3.3 zsh -
6 0 6 11.4 bumpleak/osh mut
6 6 0 12.5 _bin/cxx-opt+bumproot/osh mut
7 7 0 11.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 8 0 10.0 osh-native mut+alloc
8 4 4 10.1 osh-native mut+alloc+free
9 4 4 8.5 osh-native mut+alloc+free+gc
9 4 4 8.8 osh-native mut+alloc+free+gc+exit
11 11 0 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 12 0 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
7 4 4 9.7 osh-native-souffle mut+alloc
8 4 4 9.7 osh-native-souffle mut+alloc+free
9 9 0 8.0 osh-native-souffle mut+alloc+free+gc
9 4 4 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 25 4 2.8 bash -
24 20 4 3.1 zsh -
19 19 0 32.6 bumpleak/osh mut
26 26 0 32.9 _bin/cxx-opt+bumproot/osh mut
27 27 0 31.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 20 16 26.3 osh-native mut+alloc
37 28 8 26.7 osh-native mut+alloc+free
29 22 7 8.1 osh-native mut+alloc+free+gc
28 24 4 7.9 osh-native mut+alloc+free+gc+exit
54 34 19 35.7 _bin/cxx-opt+nopool/osh mut+alloc
37 37 0 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
29 29 0 26.1 osh-native-souffle mut+alloc
31 15 15 26.1 osh-native-souffle mut+alloc+free
21 21 0 7.6 osh-native-souffle mut+alloc+free+gc
21 18 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
73 65 8 3.1 bash -
168 116 52 55.3 bumpleak/osh mut
181 124 56 56.4 _bin/cxx-opt+bumproot/osh mut
193 138 55 55.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 139 72 47.4 osh-native mut+alloc
217 160 56 49.1 osh-native mut+alloc+free
180 124 56 8.9 osh-native mut+alloc+free+gc
181 124 56 8.9 osh-native mut+alloc+free+gc+exit
232 148 84 63.8 _bin/cxx-opt+nopool/osh mut+alloc
210 145 64 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 134 71 46.8 osh-native-souffle mut+alloc
208 152 56 48.6 osh-native-souffle mut+alloc+free
174 111 63 8.1 osh-native-souffle mut+alloc+free+gc
175 107 68 8.3 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
9 8 1 3.5 dash -
20 12 8 4.3 bash -
18 10 8 3.4 zsh -
19 11 8 12.1 bumpleak/osh mut
21 13 8 13.2 _bin/cxx-opt+bumproot/osh mut
21 11 11 13.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 18 3 11.1 osh-native mut+alloc
22 15 8 11.1 osh-native mut+alloc+free
22 20 2 9.0 osh-native mut+alloc+free+gc
22 16 7 9.0 osh-native mut+alloc+free+gc+exit
24 23 2 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 15 10 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 12 8 10.5 osh-native-souffle mut+alloc
21 18 3 10.6 osh-native-souffle mut+alloc+free
21 19 2 8.7 osh-native-souffle mut+alloc+free+gc
22 15 7 8.4 osh-native-souffle mut+alloc+free+gc+exit