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 19 9 459 23 21 23.64 1.17
bin-true no-host 674 552 2,259 827 803 3.35 1.23
configure.cpython no-host 15,117 15,224 28,679 15,555 15,542 1.90 1.03
configure.ocaml no-host 3,817 3,737 4,631 3,861 3,912 1.21 1.01
configure.tcc no-host 48 42 193 50 50 4.02 1.04
configure.util-linux no-host 14,187 14,881 31,218 14,789 14,675 2.20 1.04
configure.yash no-host 1,821 1,776 2,464 1,864 1,882 1.35 1.02
hello-world no-host 1 1 50 3 3 34.15 1.95

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,541 1,132 23,448 3,202 3,069 9.23 1.26
bin-true no-host 105,335 67,370 776,792 126,217 123,154 7.37 1.20
configure.cpython no-host 2,218,881 2,245,165 6,214,945 2,234,094 2,212,283 2.80 1.01
configure.ocaml no-host 410,675 390,697 646,769 414,143 412,403 1.57 1.01
configure.tcc no-host 6,577 5,460 23,760 6,979 6,915 3.61 1.06
configure.util-linux no-host 2,100,777 2,258,737 5,369,083 2,010,621 1,994,802 2.56 0.96
configure.yash no-host 254,754 244,945 386,098 258,099 258,164 1.52 1.01
hello-world no-host 152 79 3,746 355 347 24.64 2.34

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.5 3.4 22.0 9.0 8.4 4.93 2.03
bin-true no-host 2.8 1.4 17.6 8.0 7.9 6.38 2.90
configure.cpython no-host 27.3 27.4 27.5 27.1 27.5 1.01 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.1 19.3 19.4 19.3 19.3 1.01 1.01
configure.util-linux no-host 30.3 30.1 30.1 30.1 30.0 1.00 1.00
configure.yash no-host 24.4 24.2 24.4 24.4 24.4 1.00 1.00
hello-world no-host 2.8 1.4 17.6 6.4 5.9 6.38 2.33

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.4 3,783 3,783 0 698 1,857 1,228 2 0 50,000 0
bin-true no-host 827 1 2 2.6 8.0 154,748 13,282 2,884 9,748 78,326 66,674 3,008 3 50,000 0
configure.cpython no-host 15,555 2 64 15.0 27.1 1,772,730 49,861 28,594 86,401 908,078 778,251 22,694 60 50,000 0
configure.util-linux no-host 14,789 3 63 21.3 30.1 2,703,498 29,752 65,877 109,679 1,320,584 1,273,235 27,391 41 131,754 1
configure.ocaml no-host 3,861 1 2 2.7 20.6 150,104 11,058 5,228 7,535 71,611 70,958 1,448 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,589 30,589 0 1,524 14,781 14,284 226 0 50,000 0
configure.yash no-host 1,864 1 2 2.6 24.4 139,757 8,027 6,686 6,340 70,286 63,131 1,803 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.0 116,332 64,537 42,747 4,575 54,526 57,231 270 3 85,494 1
hello-world no-host 3 0 0 0.3 5.9 3,782 3,782 0 699 1,857 1,226 2 0 50,000 0
bin-true no-host 803 1 2 2.6 7.9 154,747 13,070 2,822 9,749 78,326 66,672 3,008 3 50,000 0
configure.cpython no-host 15,542 1 63 14.9 27.5 1,772,729 49,112 28,532 86,402 908,078 778,249 22,694 60 50,000 0
configure.util-linux no-host 14,675 3 64 21.3 30.0 2,703,498 42,748 65,815 109,681 1,320,584 1,273,233 27,391 41 131,630 1
configure.ocaml no-host 3,912 1 2 2.6 20.6 150,104 10,996 5,166 7,537 71,611 70,956 1,448 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,589 30,589 0 1,526 14,781 14,282 226 0 50,000 0
configure.yash no-host 1,882 1 2 2.6 24.4 139,757 7,965 6,624 6,342 70,286 63,129 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.4 116,331 64,475 42,685 4,576 54,526 57,229 270 3 85,370 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 19 15 5 4.5 bash
15 no-host abuild-print-help 9 8 1 3.4 dash
23 no-host abuild-print-help 459 410 53 22.0 osh-cpython
31 no-host abuild-print-help 23 16 7 9.0 osh-native
39 no-host abuild-print-help 21 15 7 8.4 osh-native-souffle
1 no-host bin-true 674 504 201 2.8 bash
9 no-host bin-true 552 435 128 1.4 dash
17 no-host bin-true 2,259 1,470 1,048 17.6 osh-cpython
25 no-host bin-true 827 593 247 8.0 osh-native
33 no-host bin-true 803 568 250 7.9 osh-native-souffle
2 no-host configure.cpython 15,117 9,106 6,403 27.3 bash
10 no-host configure.cpython 15,224 9,126 6,525 27.4 dash
18 no-host configure.cpython 28,679 17,404 13,145 27.5 osh-cpython
26 no-host configure.cpython 15,555 9,228 6,596 27.1 osh-native
34 no-host configure.cpython 15,542 9,111 6,593 27.5 osh-native-souffle
4 no-host configure.ocaml 3,817 1,604 1,246 20.6 bash
12 no-host configure.ocaml 3,737 1,520 1,236 20.6 dash
20 no-host configure.ocaml 4,631 2,275 1,568 20.6 osh-cpython
28 no-host configure.ocaml 3,861 1,649 1,251 20.6 osh-native
36 no-host configure.ocaml 3,912 1,748 1,203 20.6 osh-native-souffle
5 no-host configure.tcc 48 39 10 19.1 bash
13 no-host configure.tcc 42 21 22 19.3 dash
21 no-host configure.tcc 193 147 49 19.4 osh-cpython
29 no-host configure.tcc 50 34 16 19.3 osh-native
37 no-host configure.tcc 50 27 23 19.3 osh-native-souffle
3 no-host configure.util-linux 14,187 8,910 5,776 30.3 bash
11 no-host configure.util-linux 14,881 9,221 6,159 30.1 dash
19 no-host configure.util-linux 31,218 20,863 11,440 30.1 osh-cpython
27 no-host configure.util-linux 14,789 8,796 6,197 30.1 osh-native
35 no-host configure.util-linux 14,675 8,810 6,059 30.0 osh-native-souffle
6 no-host configure.yash 1,821 1,134 696 24.4 bash
14 no-host configure.yash 1,776 1,050 729 24.2 dash
22 no-host configure.yash 2,464 1,525 982 24.4 osh-cpython
30 no-host configure.yash 1,864 1,035 833 24.4 osh-native
38 no-host configure.yash 1,882 1,100 786 24.4 osh-native-souffle
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 50 29 20 17.6 osh-cpython
24 no-host hello-world 3 0 3 6.4 osh-native
32 no-host hello-world 3 3 0 5.9 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,541 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,132 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,448 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,202 0 0 0 16 0 39 3 osh-native
39 no-host abuild-print-help 3,069 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 105,335 0 0 0 8 0 1,989 42 bash
9 no-host bin-true 67,370 0 0 0 8 0 1,984 95 dash
17 no-host bin-true 776,792 0 0 0 8 0 1,995 179 osh-cpython
25 no-host bin-true 126,217 0 0 0 16 0 1,995 355 osh-native
33 no-host bin-true 123,154 0 0 0 16 0 1,994 59 osh-native-souffle
2 no-host configure.cpython 2,218,881 0 0 0 32,928 0 14,491 1,203 bash
10 no-host configure.cpython 2,245,165 0 0 0 32,992 0 14,596 1,131 dash
18 no-host configure.cpython 6,214,945 0 0 0 27,512 0 13,274 1,342 osh-cpython
26 no-host configure.cpython 2,234,094 0 0 0 27,520 0 13,274 1,086 osh-native
34 no-host configure.cpython 2,212,283 1 0 0 27,520 0 13,276 1,072 osh-native-souffle
4 no-host configure.ocaml 410,675 0 0 0 5,120 0 1,953 180 bash
12 no-host configure.ocaml 390,697 0 0 0 5,112 0 1,891 179 dash
20 no-host configure.ocaml 646,769 0 0 0 5,112 0 1,860 180 osh-cpython
28 no-host configure.ocaml 414,143 0 0 0 5,120 0 1,933 166 osh-native
36 no-host configure.ocaml 412,403 0 0 0 5,120 0 1,932 146 osh-native-souffle
5 no-host configure.tcc 6,577 0 0 0 104 0 49 11 bash
13 no-host configure.tcc 5,460 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,760 0 0 0 96 0 53 13 osh-cpython
29 no-host configure.tcc 6,979 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,915 0 0 0 104 0 46 5 osh-native-souffle
3 no-host configure.util-linux 2,100,777 0 0 0 42,400 0 18,634 1,071 bash
11 no-host configure.util-linux 2,258,737 1 0 0 42,584 0 17,486 1,231 dash
19 no-host configure.util-linux 5,369,083 10 0 0 39,120 0 16,930 1,097 osh-cpython
27 no-host configure.util-linux 2,010,621 4 0 0 39,120 0 16,968 1,080 osh-native
35 no-host configure.util-linux 1,994,802 0 0 0 39,128 0 16,985 1,166 osh-native-souffle
6 no-host configure.yash 254,754 0 0 0 4,120 0 870 79 bash
14 no-host configure.yash 244,945 0 0 0 3,720 0 868 78 dash
22 no-host configure.yash 386,098 0 0 0 3,728 0 857 79 osh-cpython
30 no-host configure.yash 258,099 0 0 0 3,736 0 850 85 osh-native
38 no-host configure.yash 258,164 0 0 0 3,736 0 848 79 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 79 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,746 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 355 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 347 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-c74e153e
dash dash-0ebcf347
osh-cpython osh-8533235d
osh-native osh-693ac6d8
osh-native-souffle osh-8a87e38c
host label host id
no-host no-host-556df3ee