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,760 1,282 6 406,606 5 203,303 osh-native
parse.configure-cpython 32 3 9 12.0 17.4 476,760 1,282 6 406,322 5 203,161 osh-native-souffle
parse.configure-coreutils 144 23 59 44.5 49.7 1,653,348 4,764 12 1,025,528 6 764,307 osh-native
parse.configure-coreutils 135 22 60 44.5 49.5 1,653,347 4,764 12 1,025,518 6 764,302 osh-native-souffle
parse.abuild 9 1 1 2.6 8.8 101,951 180 2 75,032 1 37,516 osh-native
parse.abuild 8 1 1 2.6 8.1 101,951 180 2 75,022 1 37,511 osh-native-souffle
ex.compute-fib 28 0 1 2.2 8.1 579,715 22,608 12 50,000 0 2,920 osh-native
ex.compute-fib 21 0 1 2.2 7.6 579,715 22,608 12 50,000 0 2,915 osh-native-souffle
ex.bashcomp-parse-help 181 0 4 11.1 8.7 1,021,030 15,258 22 50,000 0 3,909 osh-native
ex.bashcomp-parse-help 174 0 4 11.1 8.4 1,021,029 15,258 22 50,000 0 3,914 osh-native-souffle
ex.abuild-print-help 21 1 2 2.8 9.2 116,334 277 3 85,250 1 42,625 osh-native
ex.abuild-print-help 20 1 2 2.8 8.7 116,334 277 3 85,240 1 42,620 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.4 dash -
23 22 1 2.9 bash -
100 55 51 3.4 zsh -
16 11 6 29.5 bumpleak/osh mut
19 14 6 28.5 _bin/cxx-opt+bumproot/osh mut
22 15 7 29.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
29 19 10 25.2 osh-native mut+alloc
31 20 11 25.7 osh-native mut+alloc+free
35 27 8 18.0 osh-native mut+alloc+free+gc
37 27 10 18.0 osh-native mut+alloc+free+gc+exit
42 29 12 32.4 _bin/cxx-opt+nopool/osh mut+alloc
47 38 9 22.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
26 17 10 24.9 osh-native-souffle mut+alloc
29 16 13 25.0 osh-native-souffle mut+alloc+free
32 26 6 17.4 osh-native-souffle mut+alloc+free+gc
33 27 6 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.4 dash -
78 77 1 3.1 bash -
359 191 189 3.7 zsh -
49 41 8 85.2 bumpleak/osh mut
60 52 8 85.9 _bin/cxx-opt+bumproot/osh mut
69 54 15 85.4 _bin/cxx-opt+bumpsmall/osh mut+alloc
97 69 27 73.7 osh-native mut+alloc
107 69 37 75.2 osh-native mut+alloc+free
144 124 20 49.7 osh-native mut+alloc+free+gc
149 121 27 50.6 osh-native mut+alloc+free+gc+exit
137 90 47 98.9 _bin/cxx-opt+nopool/osh mut+alloc
206 185 21 66.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
92 56 36 73.0 osh-native-souffle mut+alloc
96 66 30 75.0 osh-native-souffle mut+alloc+free
135 116 19 49.5 osh-native-souffle mut+alloc+free+gc
143 121 22 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 1 1 1.4 dash -
5 5 1 2.9 bash -
7 3 4 3.3 zsh -
7 5 2 11.1 bumpleak/osh mut
7 7 0 10.9 _bin/cxx-opt+bumproot/osh mut
7 5 2 11.6 _bin/cxx-opt+bumpsmall/osh mut+alloc
8 3 5 10.1 osh-native mut+alloc
8 4 5 10.1 osh-native mut+alloc+free
9 8 1 8.8 osh-native mut+alloc+free+gc
9 7 2 8.7 osh-native mut+alloc+free+gc+exit
11 9 2 11.4 _bin/cxx-opt+nopool/osh mut+alloc
12 8 3 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
8 3 5 9.8 osh-native-souffle mut+alloc
8 7 1 9.8 osh-native-souffle mut+alloc+free
8 7 1 8.1 osh-native-souffle mut+alloc+free+gc
8 3 5 8.3 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 -
28 28 0 3.0 bash -
23 16 7 3.1 zsh -
19 16 3 32.3 bumpleak/osh mut
25 21 4 31.5 _bin/cxx-opt+bumproot/osh mut
28 24 4 32.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
36 26 10 26.5 osh-native mut+alloc
37 29 8 26.5 osh-native mut+alloc+free
28 25 3 8.1 osh-native mut+alloc+free+gc
28 26 2 7.9 osh-native mut+alloc+free+gc+exit
53 41 12 35.8 _bin/cxx-opt+nopool/osh mut+alloc
38 33 5 9.6 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
30 21 9 25.8 osh-native-souffle mut+alloc
31 20 11 26.2 osh-native-souffle mut+alloc+free
21 19 2 7.6 osh-native-souffle mut+alloc+free+gc
21 19 3 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 72 2 3.1 bash -
167 108 59 55.7 bumpleak/osh mut
182 129 52 57.7 _bin/cxx-opt+bumproot/osh mut
193 137 56 58.7 _bin/cxx-opt+bumpsmall/osh mut+alloc
211 141 70 48.8 osh-native mut+alloc
220 149 71 50.7 osh-native mut+alloc+free
181 140 41 8.7 osh-native mut+alloc+free+gc
182 123 59 8.8 osh-native mut+alloc+free+gc+exit
234 156 78 64.5 _bin/cxx-opt+nopool/osh mut+alloc
212 153 59 10.3 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
205 136 69 48.6 osh-native-souffle mut+alloc
212 146 66 50.3 osh-native-souffle mut+alloc+free
174 116 58 8.4 osh-native-souffle mut+alloc+free+gc
174 113 61 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 4 5 3.5 dash -
19 7 12 4.5 bash -
16 5 12 3.5 zsh -
18 7 11 11.9 bumpleak/osh mut
19 11 8 13.7 _bin/cxx-opt+bumproot/osh mut
20 9 11 13.0 _bin/cxx-opt+bumpsmall/osh mut+alloc
20 9 12 11.1 osh-native mut+alloc
22 7 15 11.1 osh-native mut+alloc+free
21 13 9 9.2 osh-native mut+alloc+free+gc
22 11 11 9.2 osh-native mut+alloc+free+gc+exit
24 12 13 12.8 _bin/cxx-opt+nopool/osh mut+alloc
24 18 7 10.1 _bin/cxx-opt+nopool/osh mut+alloc+free+gc
19 8 11 10.6 osh-native-souffle mut+alloc
21 9 13 10.7 osh-native-souffle mut+alloc+free
20 12 9 8.7 osh-native-souffle mut+alloc+free+gc
21 13 8 8.7 osh-native-souffle mut+alloc+free+gc+exit