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 479 23 21 24.78 1.17
bin-true no-host 688 544 2,294 821 812 3.33 1.19
configure.cpython no-host 15,042 15,120 28,767 15,484 15,650 1.91 1.03
configure.ocaml no-host 3,829 3,767 4,709 3,860 3,855 1.23 1.01
configure.tcc no-host 48 41 207 49 48 4.34 1.04
configure.util-linux no-host 14,034 14,952 31,645 14,632 14,547 2.25 1.04
configure.yash no-host 1,827 1,769 2,501 1,842 1,853 1.37 1.01
hello-world no-host 1 1 56 3 3 38.15 1.94

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,563 1,105 23,410 3,232 3,080 9.13 1.26
bin-true no-host 108,280 66,424 758,889 124,195 124,204 7.01 1.15
configure.cpython no-host 2,220,028 2,247,082 6,192,167 2,221,032 2,209,688 2.79 1.00
configure.ocaml no-host 410,376 391,418 643,679 412,964 412,921 1.57 1.01
configure.tcc no-host 6,579 5,465 23,902 6,986 6,892 3.63 1.06
configure.util-linux no-host 2,098,983 2,262,694 5,351,700 2,001,888 1,991,352 2.55 0.95
configure.yash no-host 256,740 245,155 386,173 257,506 256,558 1.50 1.00
hello-world no-host 150 83 3,956 344 341 26.37 2.29

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.5 9.2 8.7 5.04 2.06
bin-true no-host 2.9 1.6 18.6 7.9 7.6 6.47 2.73
configure.cpython no-host 27.4 27.4 27.5 27.5 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.4 20.6 20.4 0.99 1.00
configure.tcc no-host 19.3 19.1 19.3 19.4 19.3 1.00 1.01
configure.util-linux no-host 30.1 30.1 30.1 30.0 30.3 1.00 1.00
configure.yash no-host 24.5 24.4 24.5 24.5 24.2 1.00 1.00
hello-world no-host 2.8 1.4 18.3 6.4 5.9 6.63 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,793 3,793 0 694 1,865 1,234 2 0 50,000 0
bin-true no-host 821 1 2 2.6 7.9 153,757 12,333 2,898 8,743 76,329 68,685 3,008 3 50,000 0
configure.cpython no-host 15,484 1 65 14.9 27.5 1,771,804 49,616 28,523 85,427 878,138 808,239 25,736 60 50,000 0
configure.util-linux no-host 14,632 3 64 21.2 30.0 2,702,550 53,777 65,702 108,699 1,290,655 1,303,196 32,241 41 131,404 1
configure.ocaml no-host 3,860 1 2 2.6 20.6 150,091 11,123 5,218 7,508 70,976 71,607 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,597 30,597 0 1,518 14,648 14,431 271 0 50,000 0
configure.yash no-host 1,842 1 2 2.5 24.5 139,423 8,035 6,697 5,989 67,949 65,485 2,095 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.2 116,303 64,414 42,624 4,532 54,443 57,328 277 3 85,248 1
hello-world no-host 3 0 0 0.2 5.9 3,792 3,792 0 695 1,865 1,232 2 0 50,000 0
bin-true no-host 812 1 2 2.6 7.6 153,756 12,122 2,836 8,744 76,329 68,683 3,008 3 50,000 0
configure.cpython no-host 15,650 1 62 14.9 27.4 1,771,803 49,074 28,461 85,428 878,138 808,237 25,736 60 50,000 0
configure.util-linux no-host 14,547 3 62 21.2 30.3 2,702,550 53,704 65,640 108,701 1,290,655 1,303,194 32,241 41 131,280 1
configure.ocaml no-host 3,855 1 2 2.6 20.4 150,091 11,061 5,156 7,510 70,976 71,605 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,597 30,597 0 1,520 14,648 14,429 271 0 50,000 0
configure.yash no-host 1,853 1 2 2.5 24.2 139,423 7,973 6,635 5,991 67,949 65,483 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,302 64,352 42,562 4,533 54,443 57,326 277 3 85,124 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 17 3 4.5 bash
15 no-host abuild-print-help 9 7 3 3.4 dash
23 no-host abuild-print-help 479 430 53 22.5 osh-cpython
31 no-host abuild-print-help 23 19 4 9.2 osh-native
39 no-host abuild-print-help 21 19 2 8.7 osh-native-souffle
1 no-host bin-true 688 516 203 2.9 bash
9 no-host bin-true 544 417 136 1.6 dash
17 no-host bin-true 2,294 1,481 1,071 18.6 osh-cpython
25 no-host bin-true 821 593 245 7.9 osh-native
33 no-host bin-true 812 577 251 7.6 osh-native-souffle
2 no-host configure.cpython 15,042 9,161 6,276 27.4 bash
10 no-host configure.cpython 15,120 9,143 6,402 27.4 dash
18 no-host configure.cpython 28,767 18,051 12,543 27.5 osh-cpython
26 no-host configure.cpython 15,484 9,065 6,690 27.5 osh-native
34 no-host configure.cpython 15,650 9,027 6,750 27.4 osh-native-souffle
4 no-host configure.ocaml 3,829 1,693 1,167 20.6 bash
12 no-host configure.ocaml 3,767 1,636 1,149 20.6 dash
20 no-host configure.ocaml 4,709 2,208 1,715 20.4 osh-cpython
28 no-host configure.ocaml 3,860 1,669 1,231 20.6 osh-native
36 no-host configure.ocaml 3,855 1,628 1,262 20.4 osh-native-souffle
5 no-host configure.tcc 48 34 14 19.3 bash
13 no-host configure.tcc 41 21 21 19.1 dash
21 no-host configure.tcc 207 144 67 19.3 osh-cpython
29 no-host configure.tcc 49 36 14 19.4 osh-native
37 no-host configure.tcc 48 29 20 19.3 osh-native-souffle
3 no-host configure.util-linux 14,034 8,894 5,616 30.1 bash
11 no-host configure.util-linux 14,952 9,161 6,291 30.1 dash
19 no-host configure.util-linux 31,645 21,224 11,480 30.1 osh-cpython
27 no-host configure.util-linux 14,632 8,867 5,953 30.0 osh-native
35 no-host configure.util-linux 14,547 8,917 5,828 30.3 osh-native-souffle
6 no-host configure.yash 1,827 1,089 747 24.5 bash
14 no-host configure.yash 1,769 969 804 24.4 dash
22 no-host configure.yash 2,501 1,612 933 24.5 osh-cpython
30 no-host configure.yash 1,842 1,056 790 24.5 osh-native
38 no-host configure.yash 1,853 1,016 841 24.2 osh-native-souffle
0 no-host hello-world 1 0 1 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 34 22 18.3 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,563 0 0 0 16 0 40 1 bash
15 no-host abuild-print-help 1,105 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,410 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,232 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,080 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 108,280 0 0 0 8 0 1,987 71 bash
9 no-host bin-true 66,424 0 0 0 8 0 1,987 40 dash
17 no-host bin-true 758,889 0 0 0 8 0 1,997 285 osh-cpython
25 no-host bin-true 124,195 0 0 0 16 0 1,986 139 osh-native
33 no-host bin-true 124,204 0 0 0 16 0 1,988 48 osh-native-souffle
2 no-host configure.cpython 2,220,028 0 0 0 32,928 0 14,525 1,231 bash
10 no-host configure.cpython 2,247,082 0 0 0 32,992 0 14,620 1,017 dash
18 no-host configure.cpython 6,192,167 1 0 0 27,512 0 13,184 1,248 osh-cpython
26 no-host configure.cpython 2,221,032 0 0 0 27,520 0 13,236 1,091 osh-native
34 no-host configure.cpython 2,209,688 0 0 0 27,520 0 13,203 1,083 osh-native-souffle
4 no-host configure.ocaml 410,376 0 0 0 5,120 0 1,966 147 bash
12 no-host configure.ocaml 391,418 0 0 0 5,112 0 1,930 162 dash
20 no-host configure.ocaml 643,679 0 0 0 5,112 0 1,867 246 osh-cpython
28 no-host configure.ocaml 412,964 0 0 0 5,120 0 1,931 177 osh-native
36 no-host configure.ocaml 412,921 0 0 0 5,120 0 1,940 132 osh-native-souffle
5 no-host configure.tcc 6,579 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,465 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,902 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,986 0 0 0 104 0 47 4 osh-native
37 no-host configure.tcc 6,892 0 0 0 104 0 47 9 osh-native-souffle
3 no-host configure.util-linux 2,098,983 0 0 0 42,408 0 18,612 1,082 bash
11 no-host configure.util-linux 2,262,694 1 0 0 42,592 0 17,447 1,006 dash
19 no-host configure.util-linux 5,351,700 11 0 0 39,120 0 16,979 1,156 osh-cpython
27 no-host configure.util-linux 2,001,888 1 0 0 39,128 0 16,988 1,068 osh-native
35 no-host configure.util-linux 1,991,352 1 0 0 39,136 0 17,133 896 osh-native-souffle
6 no-host configure.yash 256,740 0 0 0 4,120 0 869 105 bash
14 no-host configure.yash 245,155 0 0 0 3,720 0 867 74 dash
22 no-host configure.yash 386,173 0 0 0 3,728 0 856 97 osh-cpython
30 no-host configure.yash 257,506 0 0 0 3,736 0 845 82 osh-native
38 no-host configure.yash 256,558 0 0 0 3,736 0 853 90 osh-native-souffle
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 2 0 dash
16 no-host hello-world 3,956 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 341 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-524bc4c0
dash dash-0ebcf347
osh-cpython osh-010bf2b4
osh-native osh-7f091bb3
osh-native-souffle osh-77d4a492
host label host id
no-host no-host-556df3ee