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-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 20 9 451 22 21 22.15 1.10
bin-true no-host 674 549 2,236 808 812 3.32 1.20
configure.cpython no-host 14,931 15,281 28,743 15,209 15,309 1.92 1.02
configure.ocaml no-host 3,857 3,754 4,644 3,833 3,794 1.20 0.99
configure.tcc no-host 48 42 194 49 49 4.01 1.02
configure.util-linux no-host 14,057 15,021 31,172 14,288 14,250 2.22 1.02
configure.yash no-host 1,857 1,764 2,444 1,813 1,814 1.32 0.98
hello-world no-host 2 1 49 3 3 31.93 1.86

Minor Page Faults

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 2,529 1,097 23,234 3,220 3,132 9.19 1.27
bin-true no-host 106,384 66,402 755,900 123,078 126,839 7.11 1.16
configure.cpython no-host 2,222,886 2,240,143 6,220,810 2,234,936 2,212,875 2.80 1.01
configure.ocaml no-host 410,977 391,018 646,310 413,767 413,335 1.57 1.01
configure.tcc no-host 6,532 5,485 23,556 7,015 6,920 3.61 1.07
configure.util-linux no-host 2,103,075 2,259,766 5,337,607 2,005,844 1,994,634 2.54 0.95
configure.yash no-host 254,971 245,040 386,211 258,012 257,697 1.51 1.01
hello-world no-host 152 82 3,730 347 346 24.54 2.28

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-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 4.3 3.5 21.8 9.0 8.7 5.03 2.09
bin-true no-host 2.9 1.6 17.7 8.0 7.7 6.14 2.77
configure.cpython no-host 27.3 27.4 27.5 27.3 27.4 1.01 1.00
configure.ocaml no-host 20.6 20.4 20.4 20.6 20.4 0.99 1.00
configure.tcc no-host 19.3 19.4 19.3 19.3 19.4 1.00 1.00
configure.util-linux no-host 30.3 30.1 30.0 30.4 30.1 0.99 1.00
configure.yash no-host 24.4 24.4 24.4 24.4 24.5 1.00 1.00
hello-world no-host 2.8 1.4 17.7 6.3 6.0 6.43 2.29

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.2 6.3 3,775 3,775 0 694 1,852 1,229 2 0 50,000 0
bin-true no-host 808 1 2 2.6 8.0 154,740 13,220 2,877 9,744 78,321 66,675 3,008 3 50,000 0
configure.cpython no-host 15,209 1 59 15.0 27.3 1,772,722 49,854 28,587 86,397 908,073 778,252 22,694 60 50,000 0
configure.util-linux no-host 14,288 3 58 21.3 30.4 2,703,490 29,146 65,890 109,675 1,320,579 1,273,236 27,391 41 131,780 1
configure.ocaml no-host 3,833 1 2 2.6 20.6 150,096 11,051 5,221 7,531 71,606 70,959 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,581 30,581 0 1,520 14,776 14,285 226 0 50,000 0
configure.yash no-host 1,813 1 2 2.6 24.4 139,749 8,020 6,679 6,336 70,281 63,132 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,324 64,530 42,740 4,571 54,521 57,232 270 3 85,480 1
hello-world no-host 3 0 0 0.2 6.0 3,774 3,774 0 695 1,852 1,227 2 0 50,000 0
bin-true no-host 812 1 2 2.6 7.7 154,739 13,063 2,815 9,745 78,321 66,673 3,008 3 50,000 0
configure.cpython no-host 15,309 1 60 14.9 27.4 1,772,721 49,105 28,525 86,398 908,073 778,250 22,694 60 50,000 0
configure.util-linux no-host 14,250 3 60 21.3 30.1 2,703,490 42,741 65,828 109,677 1,320,579 1,273,234 27,391 41 131,656 1
configure.ocaml no-host 3,794 0 2 2.6 20.4 150,096 10,989 5,159 7,533 71,606 70,957 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,581 30,581 0 1,522 14,776 14,283 226 0 50,000 0
configure.yash no-host 1,814 1 2 2.6 24.5 139,749 7,958 6,617 6,338 70,281 63,130 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,323 64,468 42,678 4,572 54,521 57,230 270 3 85,356 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 20 16 4 4.3 bash
15 no-host abuild-print-help 9 6 3 3.5 dash
23 no-host abuild-print-help 451 405 50 21.8 osh-cpython
31 no-host abuild-print-help 22 12 11 9.0 osh-native
39 no-host abuild-print-help 21 19 2 8.7 osh-native-souffle
1 no-host bin-true 674 490 216 2.9 bash
9 no-host bin-true 549 414 142 1.6 dash
17 no-host bin-true 2,236 1,481 1,011 17.7 osh-cpython
25 no-host bin-true 808 580 245 8.0 osh-native
33 no-host bin-true 812 578 250 7.7 osh-native-souffle
2 no-host configure.cpython 14,931 9,257 6,072 27.3 bash
10 no-host configure.cpython 15,281 9,211 6,495 27.4 dash
18 no-host configure.cpython 28,743 17,046 13,544 27.5 osh-cpython
26 no-host configure.cpython 15,209 8,847 6,625 27.3 osh-native
34 no-host configure.cpython 15,309 8,961 6,424 27.4 osh-native-souffle
4 no-host configure.ocaml 3,857 1,576 1,319 20.6 bash
12 no-host configure.ocaml 3,754 1,601 1,170 20.4 dash
20 no-host configure.ocaml 4,644 2,257 1,596 20.4 osh-cpython
28 no-host configure.ocaml 3,833 1,587 1,285 20.6 osh-native
36 no-host configure.ocaml 3,794 1,609 1,224 20.4 osh-native-souffle
5 no-host configure.tcc 48 38 10 19.3 bash
13 no-host configure.tcc 42 25 17 19.4 dash
21 no-host configure.tcc 194 128 69 19.3 osh-cpython
29 no-host configure.tcc 49 29 20 19.3 osh-native
37 no-host configure.tcc 49 20 29 19.4 osh-native-souffle
3 no-host configure.util-linux 14,057 8,883 5,640 30.3 bash
11 no-host configure.util-linux 15,021 9,220 6,301 30.1 dash
19 no-host configure.util-linux 31,172 20,523 11,753 30.0 osh-cpython
27 no-host configure.util-linux 14,288 8,641 5,843 30.4 osh-native
35 no-host configure.util-linux 14,250 8,598 5,835 30.1 osh-native-souffle
6 no-host configure.yash 1,857 1,059 808 24.4 bash
14 no-host configure.yash 1,764 1,057 711 24.4 dash
22 no-host configure.yash 2,444 1,528 957 24.4 osh-cpython
30 no-host configure.yash 1,813 1,055 763 24.4 osh-native
38 no-host configure.yash 1,814 1,038 779 24.5 osh-native-souffle
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 49 37 12 17.7 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 0 3 6.0 osh-native-souffle

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,529 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,097 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,234 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,220 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,132 0 0 0 16 0 39 3 osh-native-souffle
1 no-host bin-true 106,384 0 0 0 8 0 1,994 72 bash
9 no-host bin-true 66,402 0 0 0 8 0 1,992 37 dash
17 no-host bin-true 755,900 0 0 0 8 0 1,995 110 osh-cpython
25 no-host bin-true 123,078 0 0 0 16 0 1,992 48 osh-native
33 no-host bin-true 126,839 0 0 0 16 0 1,995 167 osh-native-souffle
2 no-host configure.cpython 2,222,886 0 0 0 32,928 0 14,470 1,171 bash
10 no-host configure.cpython 2,240,143 0 0 0 32,992 0 14,665 1,173 dash
18 no-host configure.cpython 6,220,810 0 0 0 27,512 0 13,265 1,296 osh-cpython
26 no-host configure.cpython 2,234,936 0 0 0 27,520 0 13,275 1,133 osh-native
34 no-host configure.cpython 2,212,875 0 0 0 27,520 0 13,271 1,038 osh-native-souffle
4 no-host configure.ocaml 410,977 0 0 0 5,120 0 1,943 249 bash
12 no-host configure.ocaml 391,018 0 0 0 5,112 0 1,881 156 dash
20 no-host configure.ocaml 646,310 0 0 0 5,112 0 1,850 164 osh-cpython
28 no-host configure.ocaml 413,767 0 0 0 5,120 0 1,932 179 osh-native
36 no-host configure.ocaml 413,335 0 0 0 5,120 0 1,929 143 osh-native-souffle
5 no-host configure.tcc 6,532 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,485 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,556 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 7,015 0 0 0 104 0 46 2 osh-native
37 no-host configure.tcc 6,920 0 0 0 104 0 47 16 osh-native-souffle
3 no-host configure.util-linux 2,103,075 2 0 0 42,400 0 18,569 1,124 bash
11 no-host configure.util-linux 2,259,766 0 0 0 42,584 0 17,456 1,030 dash
19 no-host configure.util-linux 5,337,607 11 0 0 39,120 0 17,014 1,255 osh-cpython
27 no-host configure.util-linux 2,005,844 1 0 0 39,120 0 17,023 1,041 osh-native
35 no-host configure.util-linux 1,994,634 1 0 0 39,128 0 16,973 1,064 osh-native-souffle
6 no-host configure.yash 254,971 0 0 0 4,120 0 868 81 bash
14 no-host configure.yash 245,040 0 0 0 3,720 0 873 81 dash
22 no-host configure.yash 386,211 0 0 0 3,728 0 855 107 osh-cpython
30 no-host configure.yash 258,012 0 0 0 3,736 0 849 87 osh-native
38 no-host configure.yash 257,697 0 0 0 3,736 0 849 88 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,730 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 347 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 346 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-beb0404d
dash dash-0ebcf347
osh-cpython osh-cfde6fee
osh-native osh-44b21f73
osh-native-souffle osh-e5007332
host label host id
no-host no-host-556df3ee