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 36 4 10 12.0 17.8 476,752 1,282 6 406,326 5 203,163 osh-native
parse.configure-cpython 33 4 11 12.0 17.6 476,752 1,282 6 406,196 5 203,098 osh-native-souffle
parse.configure-coreutils 148 23 62 44.5 49.6 1,653,340 4,764 12 1,025,522 6 764,304 osh-native
parse.configure-coreutils 137 23 60 45.9 51.0 1,653,339 4,764 12 1,063,852 6 792,364 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,943 180 2 75,026 1 37,513 osh-native
parse.abuild 9 1 2 2.4 7.7 101,943 180 3 87,088 1 43,544 osh-native-souffle
ex.compute-fib 27 0 2 2.2 8.0 579,607 22,608 12 50,000 0 2,917 osh-native
ex.compute-fib 21 0 2 2.2 7.7 579,607 22,608 12 50,000 0 2,856 osh-native-souffle
ex.bashcomp-parse-help 180 0 4 10.3 8.7 995,289 15,258 21 50,000 0 3,899 osh-native
ex.bashcomp-parse-help 174 0 4 10.3 8.3 995,288 15,258 21 50,000 0 3,842 osh-native-souffle
ex.abuild-print-help 23 1 2 2.8 9.0 116,319 277 3 85,244 1 42,622 osh-native
ex.abuild-print-help 21 1 2 2.8 8.5 116,319 277 3 85,120 1 42,560 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.1 bash -
104 74 36 3.4 zsh -
16 12 4 28.8 bumpleak/osh mut
19 19 0 28.8 _bin/cxx-opt+bumproot/osh mut
22 15 7 29.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 18 11 25.3 osh-native mut+alloc
31 23 8 25.6 osh-native mut+alloc+free
36 32 4 17.8 osh-native mut+alloc+free+gc
37 36 0 18.0 osh-native mut+alloc+free+gc+exit
43 27 16 33.5 _bin/cxx-opt+nopool/osh mut+alloc
49 41 8 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 17 9 24.6 osh-native-souffle mut+alloc
29 24 4 25.3 osh-native-souffle mut+alloc+free
33 33 0 17.6 osh-native-souffle mut+alloc+free+gc
34 26 9 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.4 dash -
82 77 4 3.1 bash -
376 224 172 3.7 zsh -
49 36 12 84.7 bumpleak/osh mut
60 56 4 85.2 _bin/cxx-opt+bumproot/osh mut
69 45 24 85.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 64 32 73.7 osh-native mut+alloc
105 80 24 75.2 osh-native mut+alloc+free
148 119 28 49.6 osh-native mut+alloc+free+gc
153 133 20 50.5 osh-native mut+alloc+free+gc+exit
138 85 53 98.1 _bin/cxx-opt+nopool/osh mut+alloc
204 176 28 68.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 43 43 73.1 osh-native-souffle mut+alloc
95 52 44 74.8 osh-native-souffle mut+alloc+free
137 109 27 51.0 osh-native-souffle mut+alloc+free+gc
151 135 16 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.3 dash -
6 6 0 2.9 bash -
8 0 7 3.3 zsh -
7 6 0 11.6 bumpleak/osh mut
6 6 0 10.8 _bin/cxx-opt+bumproot/osh mut
7 7 0 13.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 4 4 10.0 osh-native mut+alloc
9 3 6 10.1 osh-native mut+alloc+free
9 9 0 8.5 osh-native mut+alloc+free+gc
9 6 3 8.7 osh-native mut+alloc+free+gc+exit
12 0 12 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 8 4 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 8 0 9.6 osh-native-souffle mut+alloc
8 4 4 9.7 osh-native-souffle mut+alloc+free
9 4 4 7.7 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 2.9 bash -
24 16 8 3.1 zsh -
19 11 7 32.4 bumpleak/osh mut
25 21 4 33.4 _bin/cxx-opt+bumproot/osh mut
27 27 0 32.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
35 23 12 26.5 osh-native mut+alloc
37 24 12 26.5 osh-native mut+alloc+free
27 27 0 8.0 osh-native mut+alloc+free+gc
27 27 0 8.0 osh-native mut+alloc+free+gc+exit
54 35 19 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 26 11 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 19 11 26.0 osh-native-souffle mut+alloc
31 23 8 26.2 osh-native-souffle mut+alloc+free
21 21 0 7.7 osh-native-souffle mut+alloc+free+gc
21 21 0 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 -
167 126 41 54.8 bumpleak/osh mut
181 128 52 55.2 _bin/cxx-opt+bumproot/osh mut
195 127 68 56.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 148 64 47.3 osh-native mut+alloc
215 131 83 49.1 osh-native mut+alloc+free
180 132 48 8.7 osh-native mut+alloc+free+gc
183 135 48 8.9 osh-native mut+alloc+free+gc+exit
232 140 92 64.3 _bin/cxx-opt+nopool/osh mut+alloc
211 151 60 10.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 152 52 46.9 osh-native-souffle mut+alloc
210 137 73 48.6 osh-native-souffle mut+alloc+free
174 103 71 8.3 osh-native-souffle mut+alloc+free+gc
174 130 45 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
10 8 2 3.4 dash -
19 13 7 4.3 bash -
18 10 8 3.4 zsh -
18 6 12 13.4 bumpleak/osh mut
19 18 2 12.5 _bin/cxx-opt+bumproot/osh mut
22 12 10 13.8 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 6 15 11.0 osh-native mut+alloc
22 17 5 11.1 osh-native mut+alloc+free
23 14 10 9.0 osh-native mut+alloc+free+gc
23 17 6 8.8 osh-native mut+alloc+free+gc+exit
25 13 12 12.8 _bin/cxx-opt+nopool/osh mut+alloc
25 22 3 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 13 8 10.5 osh-native-souffle mut+alloc
21 6 15 10.9 osh-native-souffle mut+alloc+free
21 15 7 8.5 osh-native-souffle mut+alloc+free+gc
22 14 9 8.5 osh-native-souffle mut+alloc+free+gc+exit