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 3 9 12.0 17.8 476,751 1,282 6 406,604 5 203,302 osh-native
parse.configure-cpython 33 4 10 12.0 17.7 476,751 1,282 6 406,200 5 203,100 osh-native-souffle
parse.configure-coreutils 159 29 72 44.5 49.7 1,653,339 4,764 12 1,025,526 6 764,306 osh-native
parse.configure-coreutils 154 29 76 44.5 49.3 1,653,338 4,764 12 1,025,396 6 764,241 osh-native-souffle
parse.abuild 9 1 1 2.6 8.5 101,942 180 2 75,030 1 37,515 osh-native
parse.abuild 9 1 2 2.4 7.9 101,942 180 3 87,092 1 43,546 osh-native-souffle
ex.compute-fib 32 0 2 2.2 8.0 579,606 22,608 12 50,000 0 2,919 osh-native
ex.compute-fib 22 0 2 2.2 7.7 579,606 22,608 12 50,000 0 2,858 osh-native-souffle
ex.bashcomp-parse-help 184 0 4 10.9 8.9 1,017,204 15,258 21 50,000 0 3,900 osh-native
ex.bashcomp-parse-help 174 0 4 10.9 8.5 1,017,203 15,258 21 50,000 0 3,851 osh-native-souffle
ex.abuild-print-help 22 1 2 2.8 8.8 116,318 277 3 85,248 1 42,624 osh-native
ex.abuild-print-help 21 1 2 2.8 8.7 116,318 277 3 85,124 1 42,562 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 22 2 3.0 bash -
105 62 50 3.3 zsh -
17 12 5 28.2 bumpleak/osh mut
20 16 4 29.3 _bin/cxx-opt+bumproot/osh mut
23 17 6 30.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
30 20 10 25.3 osh-native mut+alloc
32 24 8 25.6 osh-native mut+alloc+free
36 28 8 17.8 osh-native mut+alloc+free+gc
36 29 7 18.0 osh-native mut+alloc+free+gc+exit
42 23 19 32.4 _bin/cxx-opt+nopool/osh mut+alloc
50 37 13 21.9 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 18 8 25.0 osh-native-souffle mut+alloc
29 18 11 25.3 osh-native-souffle mut+alloc+free
33 27 6 17.7 osh-native-souffle mut+alloc+free+gc
34 29 5 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 75 3 3.3 bash -
386 221 187 3.4 zsh -
49 37 12 85.5 bumpleak/osh mut
61 52 9 84.6 _bin/cxx-opt+bumproot/osh mut
71 64 7 86.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 66 31 73.4 osh-native mut+alloc
107 83 24 75.2 osh-native mut+alloc+free
159 131 28 49.7 osh-native mut+alloc+free+gc
169 144 25 50.5 osh-native mut+alloc+free+gc+exit
138 84 54 99.0 _bin/cxx-opt+nopool/osh mut+alloc
239 210 29 66.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
87 51 37 73.1 osh-native-souffle mut+alloc
99 52 46 75.0 osh-native-souffle mut+alloc+free
154 132 22 49.3 osh-native-souffle mut+alloc+free+gc
158 137 21 50.2 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 -
6 5 1 3.0 bash -
7 2 5 3.3 zsh -
6 5 1 10.4 bumpleak/osh mut
7 7 0 11.5 _bin/cxx-opt+bumproot/osh mut
8 6 2 12.5 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 7 2 10.0 osh-native mut+alloc
9 5 3 10.1 osh-native mut+alloc+free
9 6 3 8.5 osh-native mut+alloc+free+gc
9 5 4 8.4 osh-native mut+alloc+free+gc+exit
12 6 6 11.5 _bin/cxx-opt+nopool/osh mut+alloc
12 5 7 9.4 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 3 5 9.6 osh-native-souffle mut+alloc
8 5 3 9.8 osh-native-souffle mut+alloc+free
9 5 4 7.9 osh-native-souffle mut+alloc+free+gc
9 7 2 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 2.9 bash -
23 19 4 3.3 zsh -
19 15 4 30.9 bumpleak/osh mut
27 21 6 33.0 _bin/cxx-opt+bumproot/osh mut
28 25 3 33.3 _bin/cxx-opt+bumpsmall/osh mut+alloc
37 28 9 26.3 osh-native mut+alloc
38 26 12 26.6 osh-native mut+alloc+free
32 29 3 8.0 osh-native mut+alloc+free+gc
28 25 3 8.0 osh-native mut+alloc+free+gc+exit
54 36 17 35.9 _bin/cxx-opt+nopool/osh mut+alloc
37 33 4 9.5 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 14 16 26.0 osh-native-souffle mut+alloc
31 19 12 26.2 osh-native-souffle mut+alloc+free
22 19 3 7.7 osh-native-souffle mut+alloc+free+gc
22 20 2 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
74 67 7 3.1 bash -
166 113 53 57.4 bumpleak/osh mut
179 120 59 57.0 _bin/cxx-opt+bumproot/osh mut
197 126 71 57.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
212 133 79 48.7 osh-native mut+alloc
220 134 85 50.6 osh-native mut+alloc+free
184 124 60 8.9 osh-native mut+alloc+free+gc
184 122 61 8.8 osh-native mut+alloc+free+gc+exit
235 144 91 64.4 _bin/cxx-opt+nopool/osh mut+alloc
211 159 52 10.0 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
208 134 74 48.3 osh-native-souffle mut+alloc
212 154 58 50.0 osh-native-souffle mut+alloc+free
174 124 50 8.5 osh-native-souffle mut+alloc+free+gc
179 121 57 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 6 4 3.5 dash -
19 10 9 4.3 bash -
17 9 9 3.4 zsh -
19 5 14 12.3 bumpleak/osh mut
19 11 9 13.8 _bin/cxx-opt+bumproot/osh mut
20 9 12 11.9 _bin/cxx-opt+bumpsmall/osh mut+alloc
21 11 11 11.1 osh-native mut+alloc
22 13 9 11.3 osh-native mut+alloc+free
22 12 11 8.8 osh-native mut+alloc+free+gc
23 13 11 9.0 osh-native mut+alloc+free+gc+exit
25 15 10 12.7 _bin/cxx-opt+nopool/osh mut+alloc
25 15 11 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
20 11 10 10.7 osh-native-souffle mut+alloc
21 11 11 10.7 osh-native-souffle mut+alloc+free
21 12 10 8.7 osh-native-souffle mut+alloc+free+gc
22 8 14 8.7 osh-native-souffle mut+alloc+free+gc+exit