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 10 466 22 21 24.29 1.17
bin-true no-host 686 544 2,327 820 825 3.39 1.19
configure.cpython no-host 15,275 15,333 29,333 15,498 15,843 1.92 1.01
configure.ocaml no-host 3,872 3,790 4,760 3,854 3,874 1.23 1.00
configure.tcc no-host 48 42 204 49 49 4.25 1.02
configure.util-linux no-host 14,281 15,069 31,908 14,701 14,559 2.23 1.03
configure.yash no-host 1,829 1,775 2,523 1,851 1,869 1.38 1.01
hello-world no-host 2 1 56 3 3 35.00 1.78

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,548 1,122 23,716 3,170 3,103 9.31 1.24
bin-true no-host 105,442 65,497 772,427 126,217 126,217 7.33 1.20
configure.cpython no-host 2,231,067 2,241,855 6,190,260 2,219,376 2,213,615 2.77 0.99
configure.ocaml no-host 410,880 391,275 646,642 413,664 412,591 1.57 1.01
configure.tcc no-host 6,560 5,460 24,013 6,962 6,900 3.66 1.06
configure.util-linux no-host 2,099,767 2,264,374 5,391,546 1,997,103 1,992,694 2.57 0.95
configure.yash no-host 256,475 245,126 387,678 257,135 256,484 1.51 1.00
hello-world no-host 152 83 3,938 341 339 25.91 2.24

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.5 22.8 8.9 8.7 5.12 2.00
bin-true no-host 3.0 1.6 18.2 8.0 7.9 6.05 2.65
configure.cpython no-host 27.4 27.4 27.4 27.4 27.3 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.4 20.6 20.6 0.99 1.00
configure.tcc no-host 19.3 19.3 19.3 19.4 19.3 1.00 1.01
configure.util-linux no-host 30.3 30.1 30.3 30.3 30.3 1.00 1.00
configure.yash no-host 24.2 24.2 24.2 24.4 24.2 1.00 1.01
hello-world no-host 2.9 1.4 18.2 6.3 5.9 6.32 2.18

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,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 820 1 2 2.6 8.0 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,498 1 67 14.9 27.4 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,701 3 64 21.2 30.3 2,702,513 53,766 65,691 108,691 1,290,640 1,303,182 32,239 41 131,382 1
configure.ocaml no-host 3,854 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.4 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,851 1 2 2.5 24.4 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 8.9 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 825 1 2 2.6 7.9 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,843 1 66 14.9 27.3 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,559 3 64 21.2 30.3 2,702,513 53,693 65,629 108,693 1,290,640 1,303,180 32,239 41 131,258 1
configure.ocaml no-host 3,874 1 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 49 0 0 1.3 19.3 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,869 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.7 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 14 5 4.5 bash
15 no-host abuild-print-help 10 7 3 3.5 dash
23 no-host abuild-print-help 466 423 46 22.8 osh-cpython
31 no-host abuild-print-help 22 17 6 8.9 osh-native
39 no-host abuild-print-help 21 12 10 8.7 osh-native-souffle
1 no-host bin-true 686 498 216 3.0 bash
9 no-host bin-true 544 421 134 1.6 dash
17 no-host bin-true 2,327 1,547 1,036 18.2 osh-cpython
25 no-host bin-true 820 579 255 8.0 osh-native
33 no-host bin-true 825 579 260 7.9 osh-native-souffle
2 no-host configure.cpython 15,275 9,042 6,647 27.4 bash
10 no-host configure.cpython 15,333 9,035 6,732 27.4 dash
18 no-host configure.cpython 29,333 17,949 13,257 27.4 osh-cpython
26 no-host configure.cpython 15,498 9,158 6,617 27.4 osh-native
34 no-host configure.cpython 15,843 9,308 6,660 27.3 osh-native-souffle
4 no-host configure.ocaml 3,872 1,667 1,232 20.6 bash
12 no-host configure.ocaml 3,790 1,613 1,194 20.6 dash
20 no-host configure.ocaml 4,760 2,297 1,680 20.4 osh-cpython
28 no-host configure.ocaml 3,854 1,688 1,205 20.6 osh-native
36 no-host configure.ocaml 3,874 1,639 1,275 20.6 osh-native-souffle
5 no-host configure.tcc 48 26 22 19.3 bash
13 no-host configure.tcc 42 25 18 19.3 dash
21 no-host configure.tcc 204 138 69 19.3 osh-cpython
29 no-host configure.tcc 49 33 16 19.4 osh-native
37 no-host configure.tcc 49 20 29 19.3 osh-native-souffle
3 no-host configure.util-linux 14,281 8,945 5,823 30.3 bash
11 no-host configure.util-linux 15,069 9,247 6,326 30.1 dash
19 no-host configure.util-linux 31,908 21,243 11,767 30.3 osh-cpython
27 no-host configure.util-linux 14,701 8,901 6,004 30.3 osh-native
35 no-host configure.util-linux 14,559 8,825 5,926 30.3 osh-native-souffle
6 no-host configure.yash 1,829 1,054 778 24.2 bash
14 no-host configure.yash 1,775 1,077 702 24.2 dash
22 no-host configure.yash 2,523 1,573 991 24.2 osh-cpython
30 no-host configure.yash 1,851 1,122 733 24.4 osh-native
38 no-host configure.yash 1,869 1,092 780 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.4 dash
16 no-host hello-world 56 39 17 18.2 osh-cpython
24 no-host hello-world 3 3 0 6.3 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,548 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,122 0 0 0 8 0 39 2 dash
23 no-host abuild-print-help 23,716 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,170 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,103 0 0 0 16 0 38 1 osh-native-souffle
1 no-host bin-true 105,442 0 0 0 8 0 1,994 47 bash
9 no-host bin-true 65,497 0 0 0 8 0 1,982 38 dash
17 no-host bin-true 772,427 0 0 0 8 0 1,995 136 osh-cpython
25 no-host bin-true 126,217 0 0 0 16 0 1,986 46 osh-native
33 no-host bin-true 126,217 0 0 0 16 0 1,998 326 osh-native-souffle
2 no-host configure.cpython 2,231,067 0 0 0 32,928 0 14,520 1,117 bash
10 no-host configure.cpython 2,241,855 0 0 0 32,992 0 14,660 1,060 dash
18 no-host configure.cpython 6,190,260 0 0 0 27,512 0 13,260 1,226 osh-cpython
26 no-host configure.cpython 2,219,376 2 0 0 27,520 0 13,247 1,127 osh-native
34 no-host configure.cpython 2,213,615 0 0 0 27,520 0 13,292 948 osh-native-souffle
4 no-host configure.ocaml 410,880 0 0 0 5,120 0 1,959 160 bash
12 no-host configure.ocaml 391,275 0 0 0 5,112 0 1,909 158 dash
20 no-host configure.ocaml 646,642 0 0 0 5,112 0 1,858 175 osh-cpython
28 no-host configure.ocaml 413,664 0 0 0 5,120 0 1,927 173 osh-native
36 no-host configure.ocaml 412,591 0 0 0 5,120 0 1,928 144 osh-native-souffle
5 no-host configure.tcc 6,560 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,460 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 24,013 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,962 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,900 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,099,767 0 0 0 42,400 0 18,551 1,068 bash
11 no-host configure.util-linux 2,264,374 0 0 0 42,584 0 17,427 1,086 dash
19 no-host configure.util-linux 5,391,546 8 0 0 39,120 0 16,979 1,108 osh-cpython
27 no-host configure.util-linux 1,997,103 0 0 0 39,128 0 17,070 979 osh-native
35 no-host configure.util-linux 1,992,694 4 0 0 39,136 0 17,019 1,067 osh-native-souffle
6 no-host configure.yash 256,475 0 0 0 4,120 0 872 74 bash
14 no-host configure.yash 245,126 0 0 0 3,720 0 869 68 dash
22 no-host configure.yash 387,678 0 0 0 3,728 0 855 154 osh-cpython
30 no-host configure.yash 257,135 0 0 0 3,736 0 849 83 osh-native
38 no-host configure.yash 256,484 0 0 0 3,736 0 850 88 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,938 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 341 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 339 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-3e1ec5d2
dash dash-0ebcf347
osh-cpython osh-e545c84d
osh-native osh-05f7f978
osh-native-souffle osh-34f29dc4
host label host id
no-host no-host-556df3ee