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 21 9 471 22 21 22.81 1.06
bin-true no-host 681 551 2,307 816 806 3.39 1.20
configure.cpython no-host 15,253 15,288 29,257 15,322 15,363 1.92 1.00
configure.ocaml no-host 3,829 3,791 4,710 3,812 3,821 1.23 1.00
configure.tcc no-host 49 42 207 49 49 4.20 0.99
configure.util-linux no-host 14,156 15,050 31,728 14,424 14,256 2.24 1.02
configure.yash no-host 1,838 1,814 2,518 1,814 1,827 1.37 0.99
hello-world no-host 2 1 57 3 3 33.93 1.75

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,522 1,083 23,901 3,216 3,102 9.48 1.28
bin-true no-host 107,315 65,400 765,109 126,316 125,216 7.13 1.18
configure.cpython no-host 2,220,466 2,241,161 6,233,114 2,223,863 2,214,806 2.81 1.00
configure.ocaml no-host 410,668 390,862 647,250 412,717 412,743 1.58 1.00
configure.tcc no-host 6,552 5,491 24,072 6,972 6,896 3.67 1.06
configure.util-linux no-host 2,102,418 2,260,349 5,392,669 2,000,718 1,991,276 2.56 0.95
configure.yash no-host 256,691 244,519 387,667 256,698 257,183 1.51 1.00
hello-world no-host 150 84 3,922 345 335 26.15 2.30

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.0 8.4 5.09 2.03
bin-true no-host 2.9 1.4 18.4 8.0 7.6 6.37 2.77
configure.cpython no-host 27.1 28.4 27.5 27.4 27.5 1.01 1.01
configure.ocaml no-host 20.6 20.6 20.4 20.6 20.6 0.99 1.00
configure.tcc no-host 19.1 19.4 19.3 19.3 19.4 1.01 1.01
configure.util-linux no-host 30.1 30.1 30.1 30.0 29.9 1.00 1.00
configure.yash no-host 24.2 24.4 24.4 24.4 24.4 1.01 1.01
hello-world no-host 2.8 1.6 18.2 6.4 5.9 6.62 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.2 6.4 3,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 816 1 2 2.6 8.0 153,746 12,267 2,887 8,743 78,327 66,676 3,008 3 50,000 0
configure.cpython no-host 15,322 1 65 14.9 27.4 1,771,747 49,125 28,512 85,415 908,079 778,253 25,733 60 50,000 0
configure.util-linux no-host 14,424 3 64 21.2 30.0 2,702,513 45,898 65,711 108,691 1,320,585 1,273,237 32,239 41 131,422 1
configure.ocaml no-host 3,812 1 2 2.6 20.6 150,080 11,112 5,207 7,508 71,612 70,960 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,782 14,286 271 0 50,000 0
configure.yash no-host 1,814 1 2 2.5 24.4 139,412 8,024 6,686 5,989 70,287 63,136 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,292 64,403 42,613 4,532 54,527 57,233 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 806 1 2 2.6 7.6 153,745 12,111 2,825 8,744 78,327 66,674 3,008 3 50,000 0
configure.cpython no-host 15,363 2 64 14.9 27.5 1,771,746 44,577 28,450 85,416 908,079 778,251 25,733 60 50,000 0
configure.util-linux no-host 14,256 3 62 21.2 29.9 2,702,513 53,693 65,649 108,693 1,320,585 1,273,235 32,239 41 131,298 1
configure.ocaml no-host 3,821 1 2 2.6 20.6 150,080 11,050 5,145 7,510 71,612 70,958 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,586 30,586 0 1,520 14,782 14,284 271 0 50,000 0
configure.yash no-host 1,827 1 2 2.5 24.4 139,412 7,962 6,624 5,991 70,287 63,134 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.4 116,291 64,341 42,551 4,533 54,527 57,231 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 21 14 7 4.5 bash
15 no-host abuild-print-help 9 7 3 3.4 dash
23 no-host abuild-print-help 471 439 35 22.7 osh-cpython
31 no-host abuild-print-help 22 15 7 9.0 osh-native
39 no-host abuild-print-help 21 11 11 8.4 osh-native-souffle
1 no-host bin-true 681 524 191 2.9 bash
9 no-host bin-true 551 430 128 1.4 dash
17 no-host bin-true 2,307 1,487 1,087 18.4 osh-cpython
25 no-host bin-true 816 573 259 8.0 osh-native
33 no-host bin-true 806 569 251 7.6 osh-native-souffle
2 no-host configure.cpython 15,253 9,297 6,366 27.1 bash
10 no-host configure.cpython 15,288 9,309 6,408 28.4 dash
18 no-host configure.cpython 29,257 17,798 13,368 27.5 osh-cpython
26 no-host configure.cpython 15,322 9,228 6,374 27.4 osh-native
34 no-host configure.cpython 15,363 9,056 6,439 27.5 osh-native-souffle
4 no-host configure.ocaml 3,829 1,641 1,230 20.6 bash
12 no-host configure.ocaml 3,791 1,638 1,171 20.6 dash
20 no-host configure.ocaml 4,710 2,236 1,688 20.4 osh-cpython
28 no-host configure.ocaml 3,812 1,580 1,270 20.6 osh-native
36 no-host configure.ocaml 3,821 1,591 1,266 20.6 osh-native-souffle
5 no-host configure.tcc 49 38 12 19.1 bash
13 no-host configure.tcc 42 28 14 19.4 dash
21 no-host configure.tcc 207 143 68 19.3 osh-cpython
29 no-host configure.tcc 49 31 19 19.3 osh-native
37 no-host configure.tcc 49 33 16 19.4 osh-native-souffle
3 no-host configure.util-linux 14,156 9,034 5,610 30.1 bash
11 no-host configure.util-linux 15,050 9,357 6,196 30.1 dash
19 no-host configure.util-linux 31,728 21,053 11,769 30.1 osh-cpython
27 no-host configure.util-linux 14,424 8,805 5,819 30.0 osh-native
35 no-host configure.util-linux 14,256 8,568 5,883 29.9 osh-native-souffle
6 no-host configure.yash 1,838 1,069 778 24.2 bash
14 no-host configure.yash 1,814 1,021 795 24.4 dash
22 no-host configure.yash 2,518 1,561 1,001 24.4 osh-cpython
30 no-host configure.yash 1,814 1,092 727 24.4 osh-native
38 no-host configure.yash 1,827 1,047 784 24.4 osh-native-souffle
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 57 33 24 18.2 osh-cpython
24 no-host hello-world 3 0 3 6.4 osh-native
32 no-host hello-world 3 0 3 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,522 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,083 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,901 0 0 0 8 0 45 13 osh-cpython
31 no-host abuild-print-help 3,216 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,102 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 107,315 0 0 0 8 0 1,996 47 bash
9 no-host bin-true 65,400 0 0 0 8 0 1,994 53 dash
17 no-host bin-true 765,109 0 0 0 8 0 1,999 143 osh-cpython
25 no-host bin-true 126,316 0 0 0 16 0 1,992 141 osh-native
33 no-host bin-true 125,216 0 0 0 16 0 1,991 79 osh-native-souffle
2 no-host configure.cpython 2,220,466 0 0 0 32,928 0 14,535 1,166 bash
10 no-host configure.cpython 2,241,161 0 0 0 32,992 0 14,647 1,002 dash
18 no-host configure.cpython 6,233,114 2 0 0 27,512 0 13,243 1,081 osh-cpython
26 no-host configure.cpython 2,223,863 0 0 0 27,520 0 13,211 1,057 osh-native
34 no-host configure.cpython 2,214,806 0 0 0 27,520 0 13,267 1,229 osh-native-souffle
4 no-host configure.ocaml 410,668 0 0 0 5,120 0 1,939 226 bash
12 no-host configure.ocaml 390,862 0 0 0 5,112 0 1,892 153 dash
20 no-host configure.ocaml 647,250 0 0 0 5,112 0 1,854 156 osh-cpython
28 no-host configure.ocaml 412,717 0 0 0 5,120 0 1,929 168 osh-native
36 no-host configure.ocaml 412,743 0 0 0 5,120 0 1,931 148 osh-native-souffle
5 no-host configure.tcc 6,552 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,491 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 24,072 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,972 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,896 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,102,418 1 0 0 42,400 0 18,287 1,070 bash
11 no-host configure.util-linux 2,260,349 0 0 0 42,584 0 17,396 972 dash
19 no-host configure.util-linux 5,392,669 2 0 0 39,144 0 16,974 1,194 osh-cpython
27 no-host configure.util-linux 2,000,718 0 0 0 39,128 0 16,929 993 osh-native
35 no-host configure.util-linux 1,991,276 0 0 0 39,136 0 16,911 967 osh-native-souffle
6 no-host configure.yash 256,691 0 0 0 4,120 0 873 91 bash
14 no-host configure.yash 244,519 0 0 0 3,720 0 865 102 dash
22 no-host configure.yash 387,667 0 0 0 3,728 0 854 90 osh-cpython
30 no-host configure.yash 256,698 0 0 0 3,736 0 850 89 osh-native
38 no-host configure.yash 257,183 0 0 0 3,736 0 848 93 osh-native-souffle
0 no-host hello-world 150 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,922 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 345 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 335 0 0 0 16 0 0 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-96c85102
dash dash-0ebcf347
osh-cpython osh-8ecb8c87
osh-native osh-4c91a741
osh-native-souffle osh-dc92f544
host label host id
no-host no-host-556df3ee