OSH Runtime Performance

Source code: benchmarks/osh-runtime.sh

Raw files

Elapsed Time by Shell (milliseconds)

Some benchmarks call many external tools, while some exercise the shell interpreter itself.

workload host name bash dash osh-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 17 9 23 23 20 1.33 1.15
bin-true no-host 648 452 860 860 689 1.33 1.06
configure.cpython no-host 15,327 15,086 14,536 15,053 14,400 0.95 0.94
configure.ocaml no-host 4,199 3,853 3,896 3,970 3,986 0.93 0.95
configure.tcc no-host 51 43 52 51 50 1.01 0.99
configure.util-linux no-host 13,857 14,920 13,979 13,771 13,869 1.01 1.00
configure.yash no-host 1,884 1,887 1,842 1,862 1,834 0.98 0.97
hello-world no-host 1 1 3 3 2 2.39 1.20

Minor Page Faults

workload host name bash dash osh-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 2,424 1,158 3,297 3,431 2,813 1.36 1.16
bin-true no-host 102,411 49,463 135,365 133,013 110,022 1.32 1.07
configure.cpython no-host 1,626,391 1,644,642 1,591,828 1,610,043 1,526,417 0.98 0.94
configure.ocaml no-host 299,249 281,107 305,638 306,150 300,659 1.02 1.00
configure.tcc no-host 5,219 4,229 5,593 5,652 5,150 1.07 0.99
configure.util-linux no-host 1,534,282 1,703,820 1,502,750 1,515,226 1,479,171 0.98 0.96
configure.yash no-host 173,300 159,545 176,871 177,397 172,985 1.02 1.00
hello-world no-host 151 86 390 396 181 2.58 1.20

Memory Usage (Max Resident Set Size in MB)

Memory usage is measured in MB (powers of 10), not MiB (powers of 2).

workload host name bash dash osh-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 4.7 3.8 9.4 10.1 6.4 2.00 1.36
bin-true no-host 3.1 1.6 8.7 9.0 5.2 2.75 1.67
configure.cpython no-host 34.7 34.5 34.4 34.5 34.6 0.99 1.00
configure.ocaml no-host 28.6 28.6 28.6 28.7 28.8 1.00 1.01
configure.tcc no-host 26.2 26.0 26.3 26.1 26.2 1.01 1.00
configure.util-linux no-host 39.7 39.6 39.6 39.7 39.9 1.00 1.00
configure.yash no-host 33.4 33.3 33.3 33.3 33.5 1.00 1.00
hello-world no-host 3.3 1.4 6.6 6.9 3.4 2.00 1.04

GC Stats

workload host name elapsed ms max gc millis total gc millis allocated MB max rss MB num allocated num live max survived num in heap num in pool 1 num in pool 2 num gc points num gc done gc threshold num growths
hello-world no-host 3 0 0 0.3 6.6 3,896 3,896 0 716 1,916 1,264 2 0 50,000 0
bin-true no-host 860 1 2 3.5 8.7 151,881 10,750 2,964 14,775 72,390 64,716 3,008 3 50,000 0
configure.cpython no-host 14,536 2 81 14.7 34.4 1,748,723 33,702 28,875 93,024 868,229 787,470 25,789 61 50,000 0
configure.util-linux no-host 13,979 4 78 21.6 39.6 2,704,182 37,442 66,279 119,707 1,291,076 1,293,399 32,527 42 132,558 1
configure.ocaml no-host 3,896 1 2 2.8 28.6 149,648 12,642 6,557 9,204 70,270 70,174 1,693 3 50,000 0
configure.tcc no-host 52 0 0 1.4 26.3 30,530 30,530 0 1,674 14,467 14,389 271 0 50,000 0
configure.yash no-host 1,842 1 2 2.6 33.3 142,907 10,675 6,604 7,119 70,187 65,601 2,095 3 50,000 0
abuild-print-help no-host 23 1 2 3.0 9.4 117,212 65,784 41,994 4,969 54,592 57,651 277 3 83,988 1
hello-world no-host 3 0 0 0.3 6.9 3,895 3,895 0 715 1,916 1,264 2 0 50,000 0
bin-true no-host 860 1 2 3.5 9.0 151,881 10,754 2,968 14,775 72,390 64,716 3,008 3 50,000 0
configure.cpython no-host 15,053 2 82 14.7 34.5 1,748,722 33,707 28,880 93,023 868,229 787,470 25,789 61 50,000 0
configure.util-linux no-host 13,771 3 79 21.6 39.7 2,704,182 37,448 66,285 119,707 1,291,076 1,293,399 32,527 42 132,570 1
configure.ocaml no-host 3,970 1 2 2.8 28.7 149,648 12,647 6,562 9,204 70,270 70,174 1,693 3 50,000 0
configure.tcc no-host 51 0 0 1.4 26.1 30,530 30,530 0 1,674 14,467 14,389 271 0 50,000 0
configure.yash no-host 1,862 1 2 2.6 33.3 142,907 10,679 6,608 7,119 70,187 65,601 2,095 3 50,000 0
abuild-print-help no-host 23 1 2 3.0 10.1 117,212 65,788 41,998 4,969 54,592 57,651 277 3 83,996 1

rusage Details

task id host name workload elapsed ms user ms sys ms max rss MB shell label
7 no-host abuild-print-help 17 9 8 4.7 bash
15 no-host abuild-print-help 9 5 5 3.8 dash
23 no-host abuild-print-help 23 13 10 9.4 osh-native
31 no-host abuild-print-help 23 14 10 10.1 osh-nosouffle
39 no-host abuild-print-help 20 8 12 6.4 osh-static
1 no-host bin-true 648 318 371 3.1 bash
9 no-host bin-true 452 282 176 1.6 dash
17 no-host bin-true 860 297 579 8.7 osh-native
25 no-host bin-true 860 310 567 9.0 osh-nosouffle
33 no-host bin-true 689 305 402 5.2 osh-static
2 no-host configure.cpython 15,327 8,249 7,259 34.7 bash
10 no-host configure.cpython 15,086 8,118 7,410 34.5 dash
18 no-host configure.cpython 14,536 7,854 6,957 34.4 osh-native
26 no-host configure.cpython 15,053 7,843 7,333 34.5 osh-nosouffle
34 no-host configure.cpython 14,400 7,937 6,726 34.6 osh-static
4 no-host configure.ocaml 4,199 1,662 1,374 28.6 bash
12 no-host configure.ocaml 3,853 1,561 1,265 28.6 dash
20 no-host configure.ocaml 3,896 1,556 1,386 28.6 osh-native
28 no-host configure.ocaml 3,970 1,605 1,388 28.7 osh-nosouffle
36 no-host configure.ocaml 3,986 1,654 1,333 28.8 osh-static
5 no-host configure.tcc 51 23 29 26.2 bash
13 no-host configure.tcc 43 27 17 26.0 dash
21 no-host configure.tcc 52 30 22 26.3 osh-native
29 no-host configure.tcc 51 26 25 26.1 osh-nosouffle
37 no-host configure.tcc 50 34 17 26.2 osh-static
3 no-host configure.util-linux 13,857 7,129 7,100 39.7 bash
11 no-host configure.util-linux 14,920 7,042 8,026 39.6 dash
19 no-host configure.util-linux 13,979 6,633 7,160 39.6 osh-native
27 no-host configure.util-linux 13,771 6,856 7,163 39.7 osh-nosouffle
35 no-host configure.util-linux 13,869 6,797 6,905 39.9 osh-static
6 no-host configure.yash 1,884 1,023 850 33.4 bash
14 no-host configure.yash 1,887 1,042 750 33.3 dash
22 no-host configure.yash 1,842 1,080 765 33.3 osh-native
30 no-host configure.yash 1,862 1,030 833 33.3 osh-nosouffle
38 no-host configure.yash 1,834 1,085 751 33.5 osh-static
0 no-host hello-world 1 1 0 3.3 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 3 1 2 6.6 osh-native
24 no-host hello-world 3 1 2 6.9 osh-nosouffle
32 no-host hello-world 2 0 2 3.4 osh-static

More Details

task id host name workload minor faults major faults swaps in block out block signals voluntary ctx involuntary ctx shell label
7 no-host abuild-print-help 2,424 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,158 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,297 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,431 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,813 0 0 0 8 0 38 0 osh-static
1 no-host bin-true 102,411 0 0 0 8 0 1,999 83 bash
9 no-host bin-true 49,463 0 0 0 8 0 2,996 49 dash
17 no-host bin-true 135,365 0 0 0 16 0 1,999 86 osh-native
25 no-host bin-true 133,013 0 0 0 16 0 1,999 83 osh-nosouffle
33 no-host bin-true 110,022 0 0 0 8 0 2,000 73 osh-static
2 no-host configure.cpython 1,626,391 1 0 0 25,272 0 14,112 1,139 bash
10 no-host configure.cpython 1,644,642 0 0 0 25,272 0 14,145 1,043 dash
18 no-host configure.cpython 1,591,828 0 0 0 25,280 0 11,348 867 osh-native
26 no-host configure.cpython 1,610,043 0 0 0 25,280 0 11,366 851 osh-nosouffle
34 no-host configure.cpython 1,526,417 1 0 0 25,272 0 11,295 857 osh-static
4 no-host configure.ocaml 299,249 0 0 0 4,432 0 2,041 169 bash
12 no-host configure.ocaml 281,107 0 0 0 4,432 0 2,114 204 dash
20 no-host configure.ocaml 305,638 0 0 0 4,440 0 2,002 194 osh-native
28 no-host configure.ocaml 306,150 0 0 0 4,440 0 2,004 205 osh-nosouffle
36 no-host configure.ocaml 300,659 0 0 0 4,432 0 2,011 202 osh-static
5 no-host configure.tcc 5,219 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,229 0 0 0 88 0 51 3 dash
21 no-host configure.tcc 5,593 0 0 0 96 0 45 4 osh-native
29 no-host configure.tcc 5,652 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,150 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,534,282 1 0 232 35,944 0 19,075 1,117 bash
11 no-host configure.util-linux 1,703,820 1 0 0 35,936 0 17,167 1,192 dash
19 no-host configure.util-linux 1,502,750 1 0 0 35,960 0 16,136 974 osh-native
27 no-host configure.util-linux 1,515,226 0 0 0 35,952 0 16,209 959 osh-nosouffle
35 no-host configure.util-linux 1,479,171 1 0 0 35,944 0 16,229 849 osh-static
6 no-host configure.yash 173,300 0 0 0 3,616 0 882 94 bash
14 no-host configure.yash 159,545 0 0 0 3,616 0 1,011 102 dash
22 no-host configure.yash 176,871 0 0 0 3,624 0 851 100 osh-native
30 no-host configure.yash 177,397 0 0 0 3,624 0 856 105 osh-nosouffle
38 no-host configure.yash 172,985 0 0 0 3,616 0 857 109 osh-static
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 86 0 0 0 8 0 1 0 dash
16 no-host hello-world 390 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 396 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 181 0 0 0 8 0 1 0 osh-static

Shell and Host

shell label shell id
bash bash-36833674
dash dash-cea41b3e
osh-native osh-b3ce1790
osh-nosouffle osh-5dbe9bcd
osh-static osh-static-76ff7df4
host label host id
no-host no-host-9c670df1