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.7 476,771 1,282 6 406,622 5 203,311 osh-native
parse.configure-cpython 32 3 9 12.0 17.6 476,771 1,282 6 406,612 5 203,306 osh-native-souffle
parse.configure-coreutils 141 21 55 44.5 49.7 1,653,359 4,764 12 1,025,544 6 764,315 osh-native
parse.configure-coreutils 133 22 57 44.5 49.4 1,653,358 4,764 12 1,025,534 6 764,310 osh-native-souffle
parse.abuild 9 1 1 2.6 8.4 101,962 180 2 75,048 1 37,524 osh-native
parse.abuild 8 1 1 2.6 8.1 101,962 180 2 75,038 1 37,519 osh-native-souffle
ex.compute-fib 29 0 1 2.2 8.0 579,725 22,608 12 50,000 0 2,927 osh-native
ex.compute-fib 21 0 1 2.2 7.6 579,725 22,608 12 50,000 0 2,922 osh-native-souffle
ex.bashcomp-parse-help 182 0 4 11.1 8.8 1,021,042 15,258 22 50,000 0 3,916 osh-native
ex.bashcomp-parse-help 174 0 4 11.1 8.4 1,021,041 15,258 22 50,000 0 3,916 osh-native-souffle
ex.abuild-print-help 21 1 2 2.8 8.9 116,360 277 3 85,264 1 42,632 osh-native
ex.abuild-print-help 20 1 2 2.8 8.8 116,360 277 3 85,254 1 42,627 osh-native-souffle

Resource Usage

parse.configure-cpython

elapsed ms user ms sys ms max rss MB shell label shell runtime opts
6 5 1 1.4 dash -
23 22 1 3.1 bash -
100 52 54 3.4 zsh -
17 13 4 28.4 bumpleak/osh mut
20 16 4 30.3 _bin/cxx-opt+bumproot/osh mut
22 17 5 30.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 20 10 25.0 osh-native mut+alloc
31 20 11 25.6 osh-native mut+alloc+free
35 31 4 17.7 osh-native mut+alloc+free+gc
36 32 4 18.0 osh-native mut+alloc+free+gc+exit
41 31 10 32.5 _bin/cxx-opt+nopool/osh mut+alloc
48 40 8 22.2 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
29 17 12 24.9 osh-native-souffle mut+alloc
29 20 9 25.2 osh-native-souffle mut+alloc+free
32 23 9 17.6 osh-native-souffle mut+alloc+free+gc
33 26 7 17.8 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.4 dash -
78 76 2 3.3 bash -
364 197 187 3.4 zsh -
49 43 6 85.4 bumpleak/osh mut
60 48 12 85.1 _bin/cxx-opt+bumproot/osh mut
71 62 9 86.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
96 71 25 73.5 osh-native mut+alloc
106 75 31 75.2 osh-native mut+alloc+free
141 117 23 49.7 osh-native mut+alloc+free+gc
145 119 26 50.4 osh-native mut+alloc+free+gc+exit
138 92 46 99.0 _bin/cxx-opt+nopool/osh mut+alloc
200 167 33 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
89 61 28 73.1 osh-native-souffle mut+alloc
98 62 36 75.0 osh-native-souffle mut+alloc+free
133 118 15 49.4 osh-native-souffle mut+alloc+free+gc
138 113 25 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 5 0 2.9 bash -
7 4 4 3.3 zsh -
6 1 5 10.7 bumpleak/osh mut
7 3 4 12.1 _bin/cxx-opt+bumproot/osh mut
8 5 2 12.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 5 3 10.1 osh-native mut+alloc
8 4 5 10.4 osh-native mut+alloc+free
9 5 4 8.4 osh-native mut+alloc+free+gc
9 8 1 8.8 osh-native mut+alloc+free+gc+exit
12 6 6 11.5 _bin/cxx-opt+nopool/osh mut+alloc
11 7 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
11 6 5 9.7 osh-native-souffle mut+alloc
8 4 4 9.7 osh-native-souffle mut+alloc+free
8 5 3 8.1 osh-native-souffle mut+alloc+free+gc
8 5 3 8.1 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 9 1 1.4 dash -
29 27 2 3.0 bash -
23 15 8 3.4 zsh -
19 17 2 32.0 bumpleak/osh mut
26 23 2 32.3 _bin/cxx-opt+bumproot/osh mut
28 25 3 33.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 26 10 26.5 osh-native mut+alloc
37 23 14 26.7 osh-native mut+alloc+free
29 29 0 8.0 osh-native mut+alloc+free+gc
28 24 4 8.0 osh-native mut+alloc+free+gc+exit
54 37 17 36.0 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
29 13 16 26.1 osh-native-souffle mut+alloc
31 16 15 26.2 osh-native-souffle mut+alloc+free
21 18 3 7.6 osh-native-souffle mut+alloc+free+gc
21 19 2 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
73 66 7 3.3 bash -
167 104 63 55.5 bumpleak/osh mut
180 125 56 57.2 _bin/cxx-opt+bumproot/osh mut
195 131 65 58.2 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 142 68 48.9 osh-native mut+alloc
220 144 74 51.0 osh-native mut+alloc+free
182 130 52 8.8 osh-native mut+alloc+free+gc
182 125 57 8.9 osh-native mut+alloc+free+gc+exit
235 154 80 64.7 _bin/cxx-opt+nopool/osh mut+alloc
214 168 46 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
204 126 78 48.5 osh-native-souffle mut+alloc
210 145 65 50.4 osh-native-souffle mut+alloc+free
174 122 52 8.4 osh-native-souffle mut+alloc+free+gc
174 129 45 8.4 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 3 7 3.4 dash -
19 13 7 4.5 bash -
17 7 10 3.4 zsh -
18 8 10 11.3 bumpleak/osh mut
21 11 10 13.2 _bin/cxx-opt+bumproot/osh mut
21 10 12 13.1 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 11 10 11.1 osh-native mut+alloc
21 10 12 11.3 osh-native mut+alloc+free
21 10 12 8.9 osh-native mut+alloc+free+gc
22 12 11 9.2 osh-native mut+alloc+free+gc+exit
24 13 12 12.8 _bin/cxx-opt+nopool/osh mut+alloc
24 12 13 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 11 9 10.6 osh-native-souffle mut+alloc
20 10 11 10.7 osh-native-souffle mut+alloc+free
20 10 11 8.8 osh-native-souffle mut+alloc+free+gc
21 8 13 8.7 osh-native-souffle mut+alloc+free+gc+exit