OSH Parser Performance

We run $sh -n $file for various files under various shells. This means that shell startup time is included in the elapsed time measurements, but long files are chosen to minimize its effect.

Parse Time Summary

host label shell label total lines total ms lines per ms
flanders bash 118,863 486 244.8
flanders dash 111,674 86 1,292.5
flanders mksh 111,674 263 424.9
flanders osh-cpython 118,863 18,880 6.3
flanders osh-ovm 118,863 19,885 6.0
flanders zsh 118,863 3,172 37.5
lisa bash 118,863 204 584.1
lisa dash 111,674 39 2,841.6
lisa mksh 111,674 115 972.8
lisa osh-cpython 118,863 8,355 14.2
lisa osh-ovm 118,863 8,855 13.4
lisa zsh 118,863 1,198 99.3

Memory Used to Parse

Running under osh-ovm. Memory usage is measured in MB (powers of 10), not MiB (powers of 2).

host VmRSS MB VmPeak MB num lines filename
flanders 10.9 23.7 1,679 t4014-format-patch.sh
flanders 14.8 27.7 1,733 functions
flanders 15.8 28.4 2,029 configure-helper.sh
flanders 17.6 30.7 2,512 abuild
flanders 16.3 28.8 2,698 Build.sh
flanders 11.6 24.4 3,123 t9300-fast-import.sh
flanders 32.7 45.4 5,160 test-cmd-util.sh
flanders 33.2 45.9 9,661 ltmain.sh
flanders 62.1 75.1 20,489 configure
flanders 157.2 170.3 69,779 configure-coreutils
lisa 11.0 23.7 1,679 t4014-format-patch.sh
lisa 14.8 27.7 1,733 functions
lisa 15.6 28.4 2,029 configure-helper.sh
lisa 17.7 30.7 2,512 abuild
lisa 16.0 28.8 2,698 Build.sh
lisa 11.8 24.4 3,123 t9300-fast-import.sh
lisa 32.7 45.6 5,160 test-cmd-util.sh
lisa 33.1 45.9 9,661 ltmain.sh
lisa 62.2 75.1 20,489 configure
lisa 157.3 170.2 69,779 configure-coreutils

Shell and Host Details

shell label shell id
bash bash-d685a43c
dash dash-2887d9e6
mksh mksh-ae7d165b
zsh zsh-ca7b4198
osh-cpython osh-379d4d0c
osh-ovm osh-7b725d03
host label host id
flanders flanders-b43270f9
lisa lisa-b43270f9

Raw Data

filename
flanders.2018-08-14__21-10-02.times.csv
lisa.2018-08-14__21-11-04.times.csv

Parse Time Breakdown by File

Elasped Time in milliseconds

host label bash dash mksh zsh osh-ovm osh-cpython osh to bash ratio num lines filename
flanders 12 4 6 139 151 174 12.2 1,679 t4014-format-patch.sh
flanders 17 5 10 38 430 423 25.3 1,733 functions
flanders 21 NA NA 70 456 453 21.7 2,029 configure-helper.sh
flanders 21 5 14 53 644 621 31.0 2,512 abuild
flanders 19 4 14 138 464 476 24.7 2,698 Build.sh
flanders 17 4 7 166 177 199 10.2 3,123 t9300-fast-import.sh
flanders 42 NA NA 173 1,424 1,389 34.1 5,160 test-cmd-util.sh
flanders 49 10 30 198 1,596 1,541 32.6 9,661 ltmain.sh
flanders 84 17 52 490 3,977 3,774 47.2 20,489 configure
flanders 203 38 128 1,707 10,567 9,832 52.0 69,779 configure-coreutils
lisa 4 2 3 51 65 72 15.1 1,679 t4014-format-patch.sh
lisa 4 2 4 13 187 175 47.9 1,733 functions
lisa 6 NA NA 30 197 188 34.5 2,029 configure-helper.sh
lisa 7 2 5 21 297 316 41.2 2,512 abuild
lisa 5 2 3 43 197 243 37.2 2,698 Build.sh
lisa 5 1 3 57 72 90 15.3 3,123 t9300-fast-import.sh
lisa 21 NA NA 74 653 626 30.9 5,160 test-cmd-util.sh
lisa 21 4 11 78 687 708 32.9 9,661 ltmain.sh
lisa 45 9 25 189 1,733 1,564 38.2 20,489 configure
lisa 85 18 62 641 4,767 4,372 56.1 69,779 configure-coreutils

Parsing Rate in lines/millisecond

host label bash dash mksh zsh osh-ovm osh-cpython num lines filename
flanders 135.4 466.4 270.8 12.1 11.1 9.7 1,679 t4014-format-patch.sh
flanders 101.9 361.0 165.0 45.2 4.0 4.1 1,733 functions
flanders 96.6 NA NA 29.2 4.5 4.5 2,029 configure-helper.sh
flanders 120.8 492.5 178.2 47.8 3.9 4.0 2,512 abuild
flanders 143.5 658.0 194.1 19.5 5.8 5.7 2,698 Build.sh
flanders 179.5 867.5 466.1 18.8 17.6 15.7 3,123 t9300-fast-import.sh
flanders 123.4 NA NA 29.8 3.6 3.7 5,160 test-cmd-util.sh
flanders 197.2 938.0 317.8 48.7 6.1 6.3 9,661 ltmain.sh
flanders 243.0 1,205.2 390.3 41.8 5.2 5.4 20,489 configure
flanders 343.6 1,841.1 543.0 40.9 6.6 7.1 69,779 configure-coreutils
lisa 390.5 1,049.4 645.8 33.2 25.8 23.2 1,679 t4014-format-patch.sh
lisa 444.4 1,155.3 433.2 129.3 9.3 9.9 1,733 functions
lisa 356.0 NA NA 66.7 10.3 10.8 2,029 configure-helper.sh
lisa 348.9 1,256.0 546.1 118.5 8.5 7.9 2,512 abuild
lisa 509.1 1,498.9 817.6 63.0 13.7 11.1 2,698 Build.sh
lisa 664.5 2,230.7 1,201.2 54.5 43.3 34.7 3,123 t9300-fast-import.sh
lisa 244.5 NA NA 69.5 7.9 8.2 5,160 test-cmd-util.sh
lisa 462.2 2,300.2 894.5 123.9 14.1 13.6 9,661 ltmain.sh
lisa 451.3 2,251.5 826.2 108.4 11.8 13.1 20,489 configure
lisa 820.9 3,942.3 1,123.7 108.9 14.6 16.0 69,779 configure-coreutils