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 | 37 | 3 | 10 | 12.0 | 17.8 | 476,689 | 1,282 | 6 | 408,756 | 5 | 204,378 | osh-native |
| parse.configure-coreutils | 163 | 26 | 74 | 46.1 | 51.7 | 1,653,277 | 4,764 | 12 | 1,069,122 | 6 | 798,642 | osh-native |
| parse.abuild | 9 | 1 | 1 | 2.6 | 8.4 | 101,880 | 180 | 2 | 75,098 | 1 | 37,549 | osh-native |
| ex.compute-fib | 29 | 0 | 2 | 2.4 | 8.0 | 584,145 | 31,810 | 12 | 50,000 | 0 | 2,826 | osh-native |
| ex.bashcomp-parse-help | 183 | 0 | 3 | 10.3 | 8.7 | 995,222 | 27,376 | 21 | 50,000 | 0 | 3,821 | osh-native |
| ex.abuild-print-help | 23 | 1 | 2 | 2.8 | 9.0 | 116,289 | 478 | 3 | 85,334 | 1 | 42,667 | osh-native |
| 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 | - |
| 105 | 51 | 61 | 3.4 | zsh | - |
| 17 | 13 | 4 | 29.9 | bumpleak/osh | mut |
| 20 | 12 | 8 | 29.2 | _bin/cxx-opt+bumproot/osh | mut |
| 23 | 11 | 11 | 28.9 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 31 | 23 | 8 | 25.2 | osh-native | mut+alloc |
| 32 | 16 | 16 | 25.7 | osh-native | mut+alloc+free |
| 37 | 33 | 4 | 17.8 | osh-native | mut+alloc+free+gc |
| 42 | 34 | 7 | 17.8 | osh-native | mut+alloc+free+gc+exit |
| 46 | 33 | 12 | 32.2 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 51 | 39 | 12 | 22.0 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
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 | - |
| 77 | 77 | 0 | 3.0 | bash | - |
| 380 | 200 | 201 | 3.5 | zsh | - |
| 50 | 41 | 8 | 84.4 | bumpleak/osh | mut |
| 60 | 48 | 12 | 86.1 | _bin/cxx-opt+bumproot/osh | mut |
| 71 | 66 | 4 | 86.5 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 99 | 59 | 40 | 73.4 | osh-native | mut+alloc |
| 108 | 64 | 44 | 75.3 | osh-native | mut+alloc+free |
| 163 | 130 | 33 | 51.7 | osh-native | mut+alloc+free+gc |
| 180 | 156 | 24 | 52.2 | osh-native | mut+alloc+free+gc+exit |
| 141 | 76 | 64 | 99.0 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 229 | 193 | 36 | 73.8 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
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 | 6 | 0 | 3.0 | bash | - |
| 8 | 0 | 8 | 3.4 | zsh | - |
| 6 | 0 | 6 | 10.8 | bumpleak/osh | mut |
| 7 | 3 | 3 | 12.5 | _bin/cxx-opt+bumproot/osh | mut |
| 7 | 7 | 0 | 10.7 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 9 | 3 | 6 | 10.1 | osh-native | mut+alloc |
| 9 | 5 | 5 | 10.1 | osh-native | mut+alloc+free |
| 9 | 9 | 0 | 8.4 | osh-native | mut+alloc+free+gc |
| 10 | 10 | 0 | 8.7 | osh-native | mut+alloc+free+gc+exit |
| 12 | 4 | 8 | 11.4 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 14 | 5 | 9 | 9.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
A synthetic benchmark for POSIX shell arithmetic.
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 10 | 7 | 3 | 1.4 | dash | - |
| 29 | 29 | 0 | 2.9 | bash | - |
| 24 | 16 | 8 | 3.1 | zsh | - |
| 20 | 4 | 16 | 32.1 | bumpleak/osh | mut |
| 26 | 22 | 4 | 32.1 | _bin/cxx-opt+bumproot/osh | mut |
| 28 | 16 | 12 | 32.4 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 37 | 29 | 8 | 26.2 | osh-native | mut+alloc |
| 40 | 24 | 16 | 26.3 | osh-native | mut+alloc+free |
| 29 | 28 | 0 | 8.0 | osh-native | mut+alloc+free+gc |
| 29 | 25 | 4 | 8.0 | osh-native | mut+alloc+free+gc+exit |
| 55 | 43 | 12 | 35.9 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 38 | 30 | 8 | 9.3 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
A realistic bash-completion workload.
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 74 | 66 | 8 | 3.1 | bash | - |
| 169 | 104 | 64 | 54.0 | bumpleak/osh | mut |
| 183 | 130 | 53 | 55.4 | _bin/cxx-opt+bumproot/osh | mut |
| 194 | 150 | 44 | 55.3 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 212 | 156 | 56 | 47.1 | osh-native | mut+alloc |
| 221 | 150 | 71 | 48.7 | osh-native | mut+alloc+free |
| 183 | 103 | 79 | 8.7 | osh-native | mut+alloc+free+gc |
| 184 | 128 | 56 | 8.8 | osh-native | mut+alloc+free+gc+exit |
| 235 | 151 | 83 | 63.1 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 211 | 155 | 56 | 10.2 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |
Running abuild -h from Alpine Linux.
| elapsed ms | user ms | sys ms | max rss MB | shell label | shell runtime opts |
| 10 | 7 | 4 | 3.4 | dash | - |
| 20 | 12 | 8 | 4.3 | bash | - |
| 18 | 11 | 8 | 3.4 | zsh | - |
| 20 | 11 | 10 | 12.0 | bumpleak/osh | mut |
| 22 | 13 | 10 | 12.7 | _bin/cxx-opt+bumproot/osh | mut |
| 22 | 20 | 2 | 13.0 | _bin/cxx-opt+bumpsmall/osh | mut+alloc |
| 22 | 14 | 9 | 11.0 | osh-native | mut+alloc |
| 23 | 22 | 2 | 11.0 | osh-native | mut+alloc+free |
| 23 | 18 | 5 | 9.0 | osh-native | mut+alloc+free+gc |
| 24 | 12 | 12 | 9.0 | osh-native | mut+alloc+free+gc+exit |
| 25 | 5 | 20 | 12.6 | _bin/cxx-opt+nopool/osh | mut+alloc |
| 26 | 20 | 6 | 9.7 | _bin/cxx-opt+nopool/osh | mut+alloc+free+gc |