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 462 22 21 23.84 1.13
bin-true no-host 686 541 2,270 814 813 3.31 1.19
configure.cpython no-host 15,027 15,128 28,628 15,226 15,183 1.91 1.01
configure.ocaml no-host 3,805 3,724 4,612 3,821 3,804 1.21 1.00
configure.tcc no-host 48 42 196 49 50 4.08 1.01
configure.util-linux no-host 13,970 14,882 31,283 14,335 14,264 2.24 1.03
configure.yash no-host 1,827 1,757 2,442 1,809 1,815 1.34 0.99
hello-world no-host 1 1 48 3 3 32.78 1.93

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,550 1,095 23,443 3,133 3,099 9.19 1.23
bin-true no-host 106,399 65,404 779,021 125,886 125,883 7.32 1.18
configure.cpython no-host 2,220,114 2,246,970 6,244,622 2,223,475 2,202,117 2.81 1.00
configure.ocaml no-host 410,009 391,518 646,875 412,960 412,489 1.58 1.01
configure.tcc no-host 6,573 5,485 23,767 6,956 6,908 3.62 1.06
configure.util-linux no-host 2,099,073 2,262,507 5,371,831 2,004,678 1,989,308 2.56 0.96
configure.yash no-host 256,588 244,820 386,458 258,403 256,854 1.51 1.01
hello-world no-host 151 82 3,739 354 345 24.76 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.2 8.4 4.94 2.06
bin-true no-host 2.9 1.4 17.6 8.1 7.5 6.09 2.82
configure.cpython no-host 27.4 27.3 27.5 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.4 19.3 19.3 1.01 1.00
configure.util-linux no-host 30.1 30.3 30.4 30.3 30.1 1.01 1.00
configure.yash no-host 24.4 24.4 24.4 24.2 24.5 1.00 0.99
hello-world no-host 2.8 1.4 17.6 6.3 5.8 6.38 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,780 3,780 0 695 1,857 1,228 2 0 50,000 0
bin-true no-host 814 1 2 2.6 8.1 154,745 13,282 2,884 9,745 78,326 66,674 3,008 3 50,000 0
configure.cpython no-host 15,226 1 61 15.0 27.3 1,772,727 49,861 28,594 86,398 908,078 778,251 22,694 60 50,000 0
configure.util-linux no-host 14,335 3 59 21.3 30.3 2,703,495 29,153 65,897 109,676 1,320,584 1,273,235 27,391 41 131,794 1
configure.ocaml no-host 3,821 1 2 2.6 20.6 150,101 11,058 5,228 7,532 71,611 70,958 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,586 30,586 0 1,521 14,781 14,284 226 0 50,000 0
configure.yash no-host 1,809 1 2 2.6 24.2 139,754 8,027 6,686 6,337 70,286 63,131 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.2 116,329 64,537 42,747 4,572 54,526 57,231 270 3 85,494 1
hello-world no-host 3 0 0 0.2 5.8 3,779 3,779 0 696 1,857 1,226 2 0 50,000 0
bin-true no-host 813 1 2 2.6 7.5 154,744 13,070 2,822 9,746 78,326 66,672 3,008 3 50,000 0
configure.cpython no-host 15,183 1 62 14.9 27.4 1,772,726 49,112 28,532 86,399 908,078 778,249 22,694 60 50,000 0
configure.util-linux no-host 14,264 3 60 21.3 30.1 2,703,495 42,748 65,835 109,678 1,320,584 1,273,233 27,391 41 131,670 1
configure.ocaml no-host 3,804 1 2 2.6 20.6 150,101 10,996 5,166 7,534 71,611 70,956 1,448 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,586 30,586 0 1,523 14,781 14,282 226 0 50,000 0
configure.yash no-host 1,815 1 2 2.6 24.5 139,754 7,965 6,624 6,339 70,286 63,129 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.4 116,328 64,475 42,685 4,573 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 12 8 4.5 bash
15 no-host abuild-print-help 9 4 6 3.4 dash
23 no-host abuild-print-help 462 421 45 22.0 osh-cpython
31 no-host abuild-print-help 22 15 7 9.2 osh-native
39 no-host abuild-print-help 21 15 6 8.4 osh-native-souffle
1 no-host bin-true 686 527 192 2.9 bash
9 no-host bin-true 541 408 142 1.4 dash
17 no-host bin-true 2,270 1,511 1,018 17.6 osh-cpython
25 no-host bin-true 814 589 241 8.1 osh-native
33 no-host bin-true 813 579 251 7.5 osh-native-souffle
2 no-host configure.cpython 15,027 9,154 6,285 27.4 bash
10 no-host configure.cpython 15,128 9,278 6,267 27.3 dash
18 no-host configure.cpython 28,628 17,541 12,955 27.5 osh-cpython
26 no-host configure.cpython 15,226 8,931 6,566 27.3 osh-native
34 no-host configure.cpython 15,183 8,865 6,498 27.4 osh-native-souffle
4 no-host configure.ocaml 3,805 1,594 1,238 20.6 bash
12 no-host configure.ocaml 3,724 1,591 1,154 20.6 dash
20 no-host configure.ocaml 4,612 2,184 1,640 20.6 osh-cpython
28 no-host configure.ocaml 3,821 1,640 1,221 20.6 osh-native
36 no-host configure.ocaml 3,804 1,575 1,265 20.6 osh-native-souffle
5 no-host configure.tcc 48 29 20 19.3 bash
13 no-host configure.tcc 42 22 20 19.3 dash
21 no-host configure.tcc 196 148 51 19.4 osh-cpython
29 no-host configure.tcc 49 25 23 19.3 osh-native
37 no-host configure.tcc 50 35 16 19.3 osh-native-souffle
3 no-host configure.util-linux 13,970 8,754 5,707 30.1 bash
11 no-host configure.util-linux 14,882 8,963 6,417 30.3 dash
19 no-host configure.util-linux 31,283 20,766 11,604 30.4 osh-cpython
27 no-host configure.util-linux 14,335 8,631 5,905 30.3 osh-native
35 no-host configure.util-linux 14,264 8,613 5,840 30.1 osh-native-souffle
6 no-host configure.yash 1,827 1,089 748 24.4 bash
14 no-host configure.yash 1,757 1,051 710 24.4 dash
22 no-host configure.yash 2,442 1,535 945 24.4 osh-cpython
30 no-host configure.yash 1,809 1,021 792 24.2 osh-native
38 no-host configure.yash 1,815 1,117 701 24.5 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 48 18 30 17.6 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 0 3 5.8 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,550 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,095 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,443 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,133 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,099 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 106,399 0 0 0 8 0 1,992 111 bash
9 no-host bin-true 65,404 0 0 0 8 0 1,990 33 dash
17 no-host bin-true 779,021 0 0 0 8 0 1,995 168 osh-cpython
25 no-host bin-true 125,886 0 0 0 16 0 1,986 56 osh-native
33 no-host bin-true 125,883 0 0 0 16 0 1,993 95 osh-native-souffle
2 no-host configure.cpython 2,220,114 0 0 0 32,928 0 14,537 1,226 bash
10 no-host configure.cpython 2,246,970 0 0 0 32,992 0 14,614 1,087 dash
18 no-host configure.cpython 6,244,622 0 0 0 27,512 0 13,235 1,232 osh-cpython
26 no-host configure.cpython 2,223,475 0 0 0 27,520 0 13,253 1,045 osh-native
34 no-host configure.cpython 2,202,117 0 0 0 27,520 0 13,213 992 osh-native-souffle
4 no-host configure.ocaml 410,009 0 0 0 5,120 0 1,949 172 bash
12 no-host configure.ocaml 391,518 0 0 0 5,112 0 1,934 155 dash
20 no-host configure.ocaml 646,875 0 0 0 5,112 0 1,867 169 osh-cpython
28 no-host configure.ocaml 412,960 0 0 0 5,120 0 1,934 171 osh-native
36 no-host configure.ocaml 412,489 0 0 0 5,120 0 1,935 171 osh-native-souffle
5 no-host configure.tcc 6,573 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,485 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,767 0 0 0 96 0 53 14 osh-cpython
29 no-host configure.tcc 6,956 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,908 0 0 0 104 0 47 30 osh-native-souffle
3 no-host configure.util-linux 2,099,073 3 0 0 42,408 0 18,646 1,060 bash
11 no-host configure.util-linux 2,262,507 2 0 0 42,592 0 17,346 1,051 dash
19 no-host configure.util-linux 5,371,831 9 0 0 39,112 0 17,095 1,153 osh-cpython
27 no-host configure.util-linux 2,004,678 0 0 0 39,120 0 16,977 990 osh-native
35 no-host configure.util-linux 1,989,308 0 0 0 39,128 0 16,980 937 osh-native-souffle
6 no-host configure.yash 256,588 0 0 0 4,120 0 870 85 bash
14 no-host configure.yash 244,820 0 0 0 3,720 0 871 76 dash
22 no-host configure.yash 386,458 0 0 0 3,728 0 853 113 osh-cpython
30 no-host configure.yash 258,403 0 0 0 3,736 0 848 72 osh-native
38 no-host configure.yash 256,854 0 0 0 3,736 0 848 100 osh-native-souffle
0 no-host hello-world 151 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,739 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 354 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 345 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-de6064c3
dash dash-0ebcf347
osh-cpython osh-38cf8e17
osh-native osh-332e9305
osh-native-souffle osh-4f313fa9
host label host id
no-host no-host-556df3ee