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 461 22 21 24.36 1.15
bin-true no-host 678 539 2,317 802 805 3.42 1.18
configure.cpython no-host 14,898 14,994 28,820 15,121 15,220 1.93 1.02
configure.ocaml no-host 3,769 3,705 4,646 3,802 3,774 1.23 1.01
configure.tcc no-host 47 41 202 49 48 4.26 1.03
configure.util-linux no-host 13,869 14,801 31,479 14,318 14,214 2.27 1.03
configure.yash no-host 1,819 1,753 2,458 1,812 1,825 1.35 1.00
hello-world no-host 2 1 57 3 3 37.74 1.89

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,567 1,139 23,656 3,217 3,090 9.22 1.25
bin-true no-host 106,260 65,390 776,655 124,200 126,221 7.31 1.17
configure.cpython no-host 2,221,895 2,241,519 6,217,578 2,215,245 2,203,808 2.80 1.00
configure.ocaml no-host 410,417 391,003 647,300 412,751 412,639 1.58 1.01
configure.tcc no-host 6,551 5,481 24,111 6,973 6,872 3.68 1.06
configure.util-linux no-host 2,107,917 2,267,041 5,386,774 1,996,016 1,996,228 2.56 0.95
configure.yash no-host 255,986 244,461 389,495 258,288 257,351 1.52 1.01
hello-world no-host 154 84 3,942 344 337 25.60 2.23

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.7 9.2 8.5 5.09 2.06
bin-true no-host 2.9 1.4 18.2 8.1 7.7 6.32 2.82
configure.cpython no-host 27.4 27.4 27.4 27.3 27.4 1.00 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.3 19.3 19.3 19.3 19.4 1.00 1.00
configure.util-linux no-host 30.3 30.3 30.1 30.3 30.1 1.00 1.00
configure.yash no-host 24.2 24.2 24.4 24.2 24.2 1.01 1.00
hello-world no-host 2.9 1.6 18.2 6.4 5.9 6.32 2.23

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.4 3,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 802 1 2 2.6 8.1 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,121 1 61 14.9 27.3 1,771,747 49,125 28,512 85,415 878,115 808,217 25,733 60 50,000 0
configure.util-linux no-host 14,318 3 60 21.2 30.3 2,702,513 45,898 65,711 108,691 1,290,640 1,303,182 32,239 41 131,422 1
configure.ocaml no-host 3,802 1 2 2.6 20.6 150,080 11,112 5,207 7,508 70,969 71,603 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,812 1 2 2.5 24.2 139,412 8,024 6,686 5,989 67,942 65,481 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.2 116,292 64,403 42,613 4,532 54,436 57,324 277 3 85,226 1
hello-world no-host 3 0 0 0.2 5.9 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 805 1 2 2.6 7.7 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,220 1 59 14.9 27.4 1,771,746 44,577 28,450 85,416 878,115 808,215 25,733 60 50,000 0
configure.util-linux no-host 14,214 3 59 21.2 30.1 2,702,513 53,693 65,649 108,693 1,290,640 1,303,180 32,239 41 131,298 1
configure.ocaml no-host 3,774 0 2 2.6 20.6 150,080 11,050 5,145 7,510 70,969 71,601 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,825 1 2 2.5 24.2 139,412 7,962 6,624 5,991 67,942 65,479 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.5 116,291 64,341 42,551 4,533 54,436 57,322 277 3 85,102 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 8 12 4.5 bash
15 no-host abuild-print-help 9 10 0 3.4 dash
23 no-host abuild-print-help 461 428 36 22.7 osh-cpython
31 no-host abuild-print-help 22 19 3 9.2 osh-native
39 no-host abuild-print-help 21 17 5 8.5 osh-native-souffle
1 no-host bin-true 678 477 231 2.9 bash
9 no-host bin-true 539 408 138 1.4 dash
17 no-host bin-true 2,317 1,501 1,079 18.2 osh-cpython
25 no-host bin-true 802 569 246 8.1 osh-native
33 no-host bin-true 805 569 254 7.7 osh-native-souffle
2 no-host configure.cpython 14,898 9,088 6,207 27.4 bash
10 no-host configure.cpython 14,994 8,979 6,440 27.4 dash
18 no-host configure.cpython 28,820 17,493 13,203 27.4 osh-cpython
26 no-host configure.cpython 15,121 8,817 6,575 27.3 osh-native
34 no-host configure.cpython 15,220 8,912 6,443 27.4 osh-native-souffle
4 no-host configure.ocaml 3,769 1,608 1,201 20.6 bash
12 no-host configure.ocaml 3,705 1,516 1,205 20.6 dash
20 no-host configure.ocaml 4,646 2,305 1,551 20.6 osh-cpython
28 no-host configure.ocaml 3,802 1,645 1,197 20.6 osh-native
36 no-host configure.ocaml 3,774 1,577 1,234 20.6 osh-native-souffle
5 no-host configure.tcc 47 33 15 19.3 bash
13 no-host configure.tcc 41 28 13 19.3 dash
21 no-host configure.tcc 202 127 78 19.3 osh-cpython
29 no-host configure.tcc 49 28 21 19.3 osh-native
37 no-host configure.tcc 48 30 18 19.4 osh-native-souffle
3 no-host configure.util-linux 13,869 8,798 5,545 30.3 bash
11 no-host configure.util-linux 14,801 8,935 6,353 30.3 dash
19 no-host configure.util-linux 31,479 21,038 11,548 30.1 osh-cpython
27 no-host configure.util-linux 14,318 8,495 6,021 30.3 osh-native
35 no-host configure.util-linux 14,214 8,662 5,743 30.1 osh-native-souffle
6 no-host configure.yash 1,819 1,104 718 24.2 bash
14 no-host configure.yash 1,753 1,054 702 24.2 dash
22 no-host configure.yash 2,458 1,523 977 24.4 osh-cpython
30 no-host configure.yash 1,812 1,034 782 24.2 osh-native
38 no-host configure.yash 1,825 1,043 786 24.2 osh-native-souffle
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 57 25 32 18.2 osh-cpython
24 no-host hello-world 3 3 0 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,567 0 0 0 16 0 41 5 bash
15 no-host abuild-print-help 1,139 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,656 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,217 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,090 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 106,260 0 0 0 8 0 1,988 99 bash
9 no-host bin-true 65,390 0 0 0 8 0 1,991 73 dash
17 no-host bin-true 776,655 0 0 0 8 0 1,992 357 osh-cpython
25 no-host bin-true 124,200 0 0 0 16 0 1,990 87 osh-native
33 no-host bin-true 126,221 0 0 0 16 0 1,995 64 osh-native-souffle
2 no-host configure.cpython 2,221,895 0 0 0 32,928 0 14,491 1,106 bash
10 no-host configure.cpython 2,241,519 0 0 0 32,992 0 14,580 927 dash
18 no-host configure.cpython 6,217,578 0 0 0 27,512 0 13,272 1,211 osh-cpython
26 no-host configure.cpython 2,215,245 0 0 0 27,520 0 13,365 1,109 osh-native
34 no-host configure.cpython 2,203,808 0 0 0 27,520 0 13,269 947 osh-native-souffle
4 no-host configure.ocaml 410,417 0 0 0 5,120 0 1,946 157 bash
12 no-host configure.ocaml 391,003 0 0 0 5,112 0 1,870 154 dash
20 no-host configure.ocaml 647,300 0 0 0 5,112 0 1,861 173 osh-cpython
28 no-host configure.ocaml 412,751 0 0 0 5,120 0 1,929 149 osh-native
36 no-host configure.ocaml 412,639 0 0 0 5,120 0 1,929 168 osh-native-souffle
5 no-host configure.tcc 6,551 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,481 0 0 0 96 0 46 1 dash
21 no-host configure.tcc 24,111 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 6,973 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,872 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,107,917 0 0 0 42,400 0 18,544 1,088 bash
11 no-host configure.util-linux 2,267,041 2 0 0 42,592 0 17,412 1,078 dash
19 no-host configure.util-linux 5,386,774 9 0 0 39,112 0 16,998 1,091 osh-cpython
27 no-host configure.util-linux 1,996,016 0 0 0 39,120 0 16,955 951 osh-native
35 no-host configure.util-linux 1,996,228 0 0 0 39,128 0 16,982 963 osh-native-souffle
6 no-host configure.yash 255,986 0 0 0 4,120 0 888 102 bash
14 no-host configure.yash 244,461 0 0 0 3,720 0 867 78 dash
22 no-host configure.yash 389,495 0 0 0 3,728 0 856 71 osh-cpython
30 no-host configure.yash 258,288 0 0 0 3,736 0 848 71 osh-native
38 no-host configure.yash 257,351 0 0 0 3,736 0 848 89 osh-native-souffle
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,942 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 337 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-c6eb84af
dash dash-0ebcf347
osh-cpython osh-019848bf
osh-native osh-3a0b60f7
osh-native-souffle osh-6b11bb60
host label host id
no-host no-host-556df3ee