Source code: oil/benchmarks/gc.sh
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 | 26 | 2 | 6 | 12.0 | 18.0 | 476,754 | 1,282 | 6 | 406,606 | 5 | 203,303 | osh-native |
parse.configure-cpython | 25 | 2 | 6 | 12.0 | 17.9 | 476,754 | 1,282 | 6 | 406,606 | 5 | 203,303 | osh-native-souffle |
parse.configure-coreutils | 108 | 18 | 44 | 44.5 | 49.9 | 1,653,342 | 4,764 | 12 | 1,025,528 | 6 | 764,307 | osh-native |
parse.configure-coreutils | 106 | 18 | 42 | 44.5 | 49.8 | 1,653,341 | 4,764 | 12 | 1,025,528 | 6 | 764,307 | osh-native-souffle |
parse.abuild | 6 | 0 | 1 | 2.6 | 8.6 | 101,945 | 180 | 2 | 75,032 | 1 | 37,516 | osh-native |
parse.abuild | 6 | 0 | 1 | 2.6 | 8.6 | 101,945 | 180 | 2 | 75,032 | 1 | 37,516 | osh-native-souffle |
ex.compute-fib | 19 | 0 | 1 | 2.1 | 7.9 | 579,612 | 22,608 | 12 | 50,000 | 0 | 2,920 | osh-native |
ex.compute-fib | 19 | 0 | 1 | 2.1 | 8.0 | 579,612 | 22,608 | 12 | 50,000 | 0 | 2,920 | osh-native-souffle |
ex.bashcomp-parse-help | 124 | 0 | 2 | 10.3 | 8.8 | 995,291 | 15,258 | 21 | 50,000 | 0 | 3,902 | osh-native |
ex.bashcomp-parse-help | 124 | 0 | 2 | 10.3 | 8.8 | 995,290 | 15,258 | 21 | 50,000 | 0 | 3,902 | osh-native-souffle |
ex.abuild-print-help | 17 | 0 | 1 | 2.8 | 9.0 | 116,321 | 277 | 3 | 85,250 | 1 | 42,625 | osh-native |
ex.abuild-print-help | 17 | 0 | 1 | 2.8 | 9.2 | 116,321 | 277 | 3 | 85,250 | 1 | 42,625 | osh-native-souffle |
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
5 | 2 | 2 | 1.6 | dash | - |
16 | 16 | 0 | 3.1 | bash | - |
112 | 68 | 51 | 3.5 | zsh | - |
11 | 7 | 4 | 28.7 | bumpleak/osh | mut |
13 | 13 | 0 | 29.4 | _bin/cxx-opt+bumproot/osh | mut |
16 | 12 | 4 | 28.8 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
43 | 25 | 18 | 25.2 | osh-native | mut+alloc |
25 | 13 | 12 | 25.5 | osh-native | mut+alloc+free |
26 | 22 | 4 | 18.0 | osh-native | mut+alloc+free+gc |
26 | 15 | 11 | 18.1 | osh-native | mut+alloc+free+gc+exit |
32 | 12 | 20 | 32.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
34 | 27 | 8 | 22.1 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
22 | 22 | 0 | 25.2 | osh-native-souffle | mut+alloc |
23 | 12 | 12 | 25.6 | osh-native-souffle | mut+alloc+free |
25 | 21 | 4 | 17.9 | osh-native-souffle | mut+alloc+free+gc |
26 | 26 | 0 | 17.9 | osh-native-souffle | mut+alloc+free+gc+exit |
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 |
15 | 15 | 0 | 1.7 | dash | - |
54 | 54 | 0 | 3.3 | bash | - |
318 | 180 | 155 | 3.6 | zsh | - |
36 | 31 | 4 | 84.8 | bumpleak/osh | mut |
43 | 35 | 8 | 84.8 | _bin/cxx-opt+bumproot/osh | mut |
51 | 43 | 8 | 85.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
72 | 48 | 24 | 73.5 | osh-native | mut+alloc |
80 | 36 | 44 | 75.5 | osh-native | mut+alloc+free |
108 | 96 | 12 | 49.9 | osh-native | mut+alloc+free+gc |
110 | 85 | 24 | 50.4 | osh-native | mut+alloc+free+gc+exit |
103 | 63 | 40 | 99.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
149 | 133 | 16 | 67.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
72 | 40 | 32 | 73.5 | osh-native-souffle | mut+alloc |
80 | 60 | 20 | 75.4 | osh-native-souffle | mut+alloc+free |
106 | 86 | 20 | 49.8 | osh-native-souffle | mut+alloc+free+gc |
112 | 87 | 24 | 50.4 | osh-native-souffle | mut+alloc+free+gc+exit |
Parsing abuild
from Alpine Linux.
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
1 | 1 | 0 | 1.6 | dash | - |
4 | 4 | 0 | 3.0 | bash | - |
5 | 0 | 5 | 3.3 | zsh | - |
5 | 5 | 0 | 11.3 | bumpleak/osh | mut |
7 | 7 | 0 | 12.4 | _bin/cxx-opt+bumproot/osh | mut |
5 | 5 | 0 | 11.2 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
6 | 3 | 3 | 10.1 | osh-native | mut+alloc |
6 | 6 | 0 | 10.3 | osh-native | mut+alloc+free |
6 | 6 | 0 | 8.6 | osh-native | mut+alloc+free+gc |
6 | 6 | 0 | 8.9 | osh-native | mut+alloc+free+gc+exit |
9 | 8 | 0 | 11.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
8 | 8 | 0 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
6 | 6 | 0 | 10.0 | osh-native-souffle | mut+alloc |
6 | 3 | 3 | 10.1 | osh-native-souffle | mut+alloc+free |
6 | 6 | 0 | 8.6 | osh-native-souffle | mut+alloc+free+gc |
6 | 6 | 0 | 8.6 | osh-native-souffle | mut+alloc+free+gc+exit |
A synthetic benchmark for POSIX shell arithmetic.
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
7 | 3 | 3 | 1.7 | dash | - |
20 | 20 | 0 | 3.0 | bash | - |
16 | 12 | 4 | 3.4 | zsh | - |
13 | 4 | 8 | 31.3 | bumpleak/osh | mut |
18 | 18 | 0 | 32.0 | _bin/cxx-opt+bumproot/osh | mut |
20 | 20 | 0 | 32.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
27 | 23 | 4 | 26.0 | osh-native | mut+alloc |
28 | 20 | 8 | 26.3 | osh-native | mut+alloc+free |
19 | 15 | 4 | 7.9 | osh-native | mut+alloc+free+gc |
19 | 15 | 4 | 8.0 | osh-native | mut+alloc+free+gc+exit |
40 | 32 | 8 | 35.7 | _bin/cxx-opt+nopool/osh | mut+alloc |
26 | 23 | 4 | 9.6 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
26 | 15 | 11 | 26.0 | osh-native-souffle | mut+alloc |
28 | 23 | 4 | 26.2 | osh-native-souffle | mut+alloc+free |
19 | 15 | 4 | 8.0 | osh-native-souffle | mut+alloc+free+gc |
19 | 15 | 4 | 8.0 | osh-native-souffle | mut+alloc+free+gc+exit |
A realistic bash-completion
workload.
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
51 | 46 | 4 | 3.2 | bash | - |
115 | 87 | 28 | 55.4 | bumpleak/osh | mut |
125 | 85 | 40 | 55.8 | _bin/cxx-opt+bumproot/osh | mut |
134 | 97 | 37 | 57.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
149 | 101 | 47 | 46.9 | osh-native | mut+alloc |
154 | 87 | 67 | 48.8 | osh-native | mut+alloc+free |
124 | 92 | 32 | 8.8 | osh-native | mut+alloc+free+gc |
123 | 99 | 24 | 8.7 | osh-native | mut+alloc+free+gc+exit |
165 | 104 | 60 | 64.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
144 | 119 | 24 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
149 | 84 | 64 | 47.0 | osh-native-souffle | mut+alloc |
154 | 107 | 47 | 48.8 | osh-native-souffle | mut+alloc+free |
124 | 104 | 20 | 8.8 | osh-native-souffle | mut+alloc+free+gc |
125 | 80 | 44 | 8.9 | osh-native-souffle | mut+alloc+free+gc+exit |
Running abuild -h
from Alpine Linux.
elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
8 | 7 | 1 | 3.6 | dash | - |
15 | 10 | 5 | 4.6 | bash | - |
13 | 6 | 8 | 3.7 | zsh | - |
14 | 13 | 2 | 11.8 | bumpleak/osh | mut |
15 | 13 | 2 | 13.5 | _bin/cxx-opt+bumproot/osh | mut |
17 | 10 | 8 | 13.6 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
17 | 12 | 5 | 11.2 | osh-native | mut+alloc |
17 | 13 | 4 | 11.3 | osh-native | mut+alloc+free |
17 | 11 | 7 | 9.0 | osh-native | mut+alloc+free+gc |
17 | 9 | 9 | 9.2 | osh-native | mut+alloc+free+gc+exit |
20 | 17 | 3 | 12.5 | _bin/cxx-opt+nopool/osh | mut+alloc |
19 | 18 | 1 | 9.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
16 | 15 | 2 | 11.2 | osh-native-souffle | mut+alloc |
17 | 11 | 7 | 11.3 | osh-native-souffle | mut+alloc+free |
17 | 16 | 1 | 9.2 | osh-native-souffle | mut+alloc+free+gc |
18 | 13 | 5 | 9.1 | osh-native-souffle | mut+alloc+free+gc+exit |