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 471 252.6
flanders dash 111,674 86 1,300.0
flanders mksh 111,674 250 446.2
flanders osh-cpython 118,863 17,852 6.7
flanders osh-ovm 118,863 19,521 6.1
flanders zsh 118,863 3,228 36.8
lisa bash 118,863 196 605.2
lisa dash 111,674 41 2,737.1
lisa mksh 111,674 111 1,007.0
lisa osh-cpython 118,863 8,199 14.5
lisa osh-ovm 118,863 8,898 13.4
lisa zsh 118,863 1,160 102.5

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.2 23.2 1,679 t4014-format-patch.sh
flanders 14.0 27.0 1,733 functions
flanders 14.9 27.8 2,029 configure-helper.sh
flanders 17.1 29.9 2,512 abuild
flanders 15.7 28.4 2,698 Build.sh
flanders 11.1 23.9 3,123 t9300-fast-import.sh
flanders 32.1 44.9 5,160 test-cmd-util.sh
flanders 32.6 45.4 9,661 ltmain.sh
flanders 62.2 75.2 20,489 configure
flanders 158.3 171.4 69,779 configure-coreutils
lisa 10.3 23.2 1,679 t4014-format-patch.sh
lisa 14.0 27.0 1,733 functions
lisa 14.8 27.8 2,029 configure-helper.sh
lisa 16.9 30.1 2,512 abuild
lisa 15.7 28.7 2,698 Build.sh
lisa 10.7 23.9 3,123 t9300-fast-import.sh
lisa 31.9 44.9 5,160 test-cmd-util.sh
lisa 32.6 45.4 9,661 ltmain.sh
lisa 62.2 75.2 20,489 configure
lisa 158.4 171.4 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-2d65ec88
osh-ovm osh-cd847e11
host label host id
flanders flanders-b43270f9
lisa lisa-b43270f9

Raw Data

filename
flanders.2018-08-30__09-05-09.times.csv
lisa.2018-08-30__09-18-22.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 11 4 5 143 154 163 13.6 1,679 t4014-format-patch.sh
flanders 14 4 11 40 451 414 32.0 1,733 functions
flanders 16 NA NA 69 487 443 31.2 2,029 configure-helper.sh
flanders 16 5 12 54 695 606 42.6 2,512 abuild
flanders 15 5 10 136 498 466 32.4 2,698 Build.sh
flanders 20 4 8 196 185 186 9.3 3,123 t9300-fast-import.sh
flanders 43 NA NA 171 1,489 1,367 34.9 5,160 test-cmd-util.sh
flanders 49 15 29 199 1,569 1,534 32.1 9,661 ltmain.sh
flanders 83 14 50 489 3,578 3,354 43.1 20,489 configure
flanders 204 36 124 1,732 10,417 9,320 51.2 69,779 configure-coreutils
lisa 3 1 2 50 62 74 18.4 1,679 t4014-format-patch.sh
lisa 5 2 4 16 180 192 39.2 1,733 functions
lisa 7 NA NA 26 188 185 26.2 2,029 configure-helper.sh
lisa 6 3 5 20 266 254 48.3 2,512 abuild
lisa 6 2 4 48 218 192 34.6 2,698 Build.sh
lisa 5 1 3 55 74 86 16.1 3,123 t9300-fast-import.sh
lisa 15 NA NA 70 620 598 40.2 5,160 test-cmd-util.sh
lisa 18 4 14 85 705 664 39.8 9,661 ltmain.sh
lisa 41 8 21 187 1,714 1,538 42.0 20,489 configure
lisa 91 21 58 602 4,870 4,416 53.6 69,779 configure-coreutils

Parsing Rate in lines/millisecond

host label bash dash mksh zsh osh-ovm osh-cpython num lines filename
flanders 148.6 430.5 316.8 11.8 10.9 10.3 1,679 t4014-format-patch.sh
flanders 122.9 468.4 160.5 43.1 3.8 4.2 1,733 functions
flanders 130.1 NA NA 29.4 4.2 4.6 2,029 configure-helper.sh
flanders 154.1 483.1 212.9 46.9 3.6 4.1 2,512 abuild
flanders 175.2 562.1 259.4 19.8 5.4 5.8 2,698 Build.sh
flanders 157.7 780.8 371.8 16.0 16.9 16.8 3,123 t9300-fast-import.sh
flanders 121.1 NA NA 30.1 3.5 3.8 5,160 test-cmd-util.sh
flanders 197.6 644.1 336.6 48.5 6.2 6.3 9,661 ltmain.sh
flanders 246.9 1,484.7 405.7 41.9 5.7 6.1 20,489 configure
flanders 342.7 1,965.6 560.9 40.3 6.7 7.5 69,779 configure-coreutils
lisa 493.8 1,291.5 883.7 33.6 26.9 22.8 1,679 t4014-format-patch.sh
lisa 376.7 1,155.3 422.7 110.4 9.6 9.0 1,733 functions
lisa 281.8 NA NA 77.1 10.8 11.0 2,029 configure-helper.sh
lisa 456.7 897.1 483.1 125.0 9.4 9.9 2,512 abuild
lisa 428.3 1,587.1 770.9 56.2 12.4 14.0 2,698 Build.sh
lisa 678.9 2,402.3 1,076.9 57.0 42.3 36.1 3,123 t9300-fast-import.sh
lisa 335.1 NA NA 73.8 8.3 8.6 5,160 test-cmd-util.sh
lisa 545.8 2,477.2 705.2 113.3 13.7 14.6 9,661 ltmain.sh
lisa 502.2 2,695.9 961.9 109.3 12.0 13.3 20,489 configure
lisa 767.6 3,371.0 1,196.9 115.8 14.3 15.8 69,779 configure-coreutils