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 465 22 21 24.45 1.16
bin-true no-host 674 543 2,281 813 809 3.38 1.21
configure.cpython no-host 15,097 15,181 28,831 15,330 15,277 1.91 1.02
configure.ocaml no-host 3,805 3,745 4,640 3,828 3,817 1.22 1.01
configure.tcc no-host 48 42 194 49 49 4.06 1.01
configure.util-linux no-host 14,020 14,948 31,370 14,377 14,332 2.24 1.03
configure.yash no-host 1,849 1,771 2,472 1,834 1,822 1.34 0.99
hello-world no-host 1 1 50 3 3 33.49 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,534 1,132 23,365 3,136 3,129 9.22 1.24
bin-true no-host 104,349 66,434 773,853 125,908 123,843 7.42 1.21
configure.cpython no-host 2,222,168 2,242,572 6,234,472 2,229,106 2,207,199 2.81 1.00
configure.ocaml no-host 410,933 390,655 646,486 413,506 412,394 1.57 1.01
configure.tcc no-host 6,546 5,474 23,756 6,945 6,913 3.63 1.06
configure.util-linux no-host 2,098,878 2,259,399 5,356,770 2,000,569 1,993,592 2.55 0.95
configure.yash no-host 256,676 244,671 385,673 257,330 257,646 1.50 1.00
hello-world no-host 148 81 3,747 351 340 25.32 2.37

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.0 8.9 8.8 4.94 2.00
bin-true no-host 3.0 1.3 17.7 7.9 7.9 5.87 2.61
configure.cpython no-host 27.4 27.5 27.5 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.3 19.4 19.3 19.3 1.00 0.99
configure.util-linux no-host 30.0 30.3 30.1 30.1 30.4 1.00 1.00
configure.yash no-host 24.4 24.4 24.4 24.5 24.4 1.00 1.01
hello-world no-host 2.8 1.6 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,856 1,229 2 0 50,000 0
bin-true no-host 813 1 2 2.6 7.9 154,745 13,282 2,884 9,745 78,325 66,675 3,008 3 50,000 0
configure.cpython no-host 15,330 1 62 15.0 27.4 1,772,727 49,861 28,594 86,398 908,077 778,252 25,682 60 50,000 0
configure.util-linux no-host 14,377 3 61 21.3 30.1 2,703,495 29,153 65,897 109,676 1,320,583 1,273,236 32,167 41 131,794 1
configure.ocaml no-host 3,828 1 2 2.6 20.6 150,101 11,058 5,228 7,532 71,610 70,959 1,690 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,586 30,586 0 1,521 14,780 14,285 271 0 50,000 0
configure.yash no-host 1,834 1 2 2.6 24.5 139,754 8,027 6,686 6,337 70,285 63,132 2,084 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,329 64,537 42,747 4,572 54,525 57,232 276 3 85,494 1
hello-world no-host 3 0 0 0.2 5.8 3,779 3,779 0 696 1,856 1,227 2 0 50,000 0
bin-true no-host 809 1 2 2.6 7.9 154,744 13,070 2,822 9,746 78,325 66,673 3,008 3 50,000 0
configure.cpython no-host 15,277 1 61 14.9 27.4 1,772,726 49,112 28,532 86,399 908,077 778,250 25,682 60 50,000 0
configure.util-linux no-host 14,332 3 59 21.3 30.4 2,703,495 42,748 65,835 109,678 1,320,583 1,273,234 32,167 41 131,670 1
configure.ocaml no-host 3,817 1 2 2.6 20.6 150,101 10,996 5,166 7,534 71,610 70,957 1,690 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,586 30,586 0 1,523 14,780 14,283 271 0 50,000 0
configure.yash no-host 1,822 1 2 2.6 24.4 139,754 7,965 6,624 6,339 70,285 63,130 2,084 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.8 116,328 64,475 42,685 4,573 54,525 57,230 276 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 11 9 4.5 bash
15 no-host abuild-print-help 10 8 2 3.5 dash
23 no-host abuild-print-help 465 417 51 22.0 osh-cpython
31 no-host abuild-print-help 22 15 7 8.9 osh-native
39 no-host abuild-print-help 21 18 4 8.8 osh-native-souffle
1 no-host bin-true 674 494 211 3.0 bash
9 no-host bin-true 543 415 138 1.3 dash
17 no-host bin-true 2,281 1,439 1,107 17.7 osh-cpython
25 no-host bin-true 813 580 249 7.9 osh-native
33 no-host bin-true 809 566 258 7.9 osh-native-souffle
2 no-host configure.cpython 15,097 8,942 6,553 27.4 bash
10 no-host configure.cpython 15,181 9,252 6,349 27.5 dash
18 no-host configure.cpython 28,831 17,626 13,080 27.5 osh-cpython
26 no-host configure.cpython 15,330 9,040 6,556 27.4 osh-native
34 no-host configure.cpython 15,277 9,079 6,376 27.4 osh-native-souffle
4 no-host configure.ocaml 3,805 1,639 1,200 20.6 bash
12 no-host configure.ocaml 3,745 1,568 1,196 20.4 dash
20 no-host configure.ocaml 4,640 2,211 1,642 20.6 osh-cpython
28 no-host configure.ocaml 3,828 1,670 1,198 20.6 osh-native
36 no-host configure.ocaml 3,817 1,698 1,155 20.6 osh-native-souffle
5 no-host configure.tcc 48 27 21 19.4 bash
13 no-host configure.tcc 42 27 15 19.3 dash
21 no-host configure.tcc 194 154 44 19.4 osh-cpython
29 no-host configure.tcc 49 41 8 19.3 osh-native
37 no-host configure.tcc 49 32 17 19.3 osh-native-souffle
3 no-host configure.util-linux 14,020 8,985 5,500 30.0 bash
11 no-host configure.util-linux 14,948 9,063 6,369 30.3 dash
19 no-host configure.util-linux 31,370 21,000 11,445 30.1 osh-cpython
27 no-host configure.util-linux 14,377 8,702 5,875 30.1 osh-native
35 no-host configure.util-linux 14,332 8,682 5,841 30.4 osh-native-souffle
6 no-host configure.yash 1,849 1,081 778 24.4 bash
14 no-host configure.yash 1,771 1,107 667 24.4 dash
22 no-host configure.yash 2,472 1,593 922 24.4 osh-cpython
30 no-host configure.yash 1,834 1,007 831 24.5 osh-native
38 no-host configure.yash 1,822 1,068 758 24.4 osh-native-souffle
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 50 25 24 17.6 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 3 0 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,534 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,132 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,365 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,136 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,129 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 104,349 0 0 0 8 0 1,988 58 bash
9 no-host bin-true 66,434 0 0 0 8 0 1,991 44 dash
17 no-host bin-true 773,853 0 0 0 8 0 2,000 127 osh-cpython
25 no-host bin-true 125,908 0 0 0 16 0 1,987 40 osh-native
33 no-host bin-true 123,843 0 0 0 16 0 1,995 75 osh-native-souffle
2 no-host configure.cpython 2,222,168 0 0 0 32,928 0 14,440 1,025 bash
10 no-host configure.cpython 2,242,572 0 0 0 32,992 0 14,598 916 dash
18 no-host configure.cpython 6,234,472 0 0 0 27,512 0 13,251 1,258 osh-cpython
26 no-host configure.cpython 2,229,106 0 0 0 27,520 0 13,205 1,088 osh-native
34 no-host configure.cpython 2,207,199 0 0 0 27,520 0 13,267 1,034 osh-native-souffle
4 no-host configure.ocaml 410,933 0 0 0 5,120 0 1,950 163 bash
12 no-host configure.ocaml 390,655 0 0 0 5,112 0 1,919 187 dash
20 no-host configure.ocaml 646,486 1 0 0 5,112 0 1,870 195 osh-cpython
28 no-host configure.ocaml 413,506 0 0 0 5,120 0 1,925 175 osh-native
36 no-host configure.ocaml 412,394 0 0 0 5,120 0 1,935 149 osh-native-souffle
5 no-host configure.tcc 6,546 0 0 0 104 0 49 0 bash
13 no-host configure.tcc 5,474 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,756 0 0 0 96 0 53 12 osh-cpython
29 no-host configure.tcc 6,945 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,913 0 0 0 104 0 47 11 osh-native-souffle
3 no-host configure.util-linux 2,098,878 3 0 0 42,400 0 18,554 1,022 bash
11 no-host configure.util-linux 2,259,399 1 0 0 42,584 0 17,512 1,041 dash
19 no-host configure.util-linux 5,356,770 10 0 0 39,120 0 16,975 1,186 osh-cpython
27 no-host configure.util-linux 2,000,569 2 0 0 39,120 0 16,937 1,038 osh-native
35 no-host configure.util-linux 1,993,592 0 0 0 39,128 0 17,048 1,180 osh-native-souffle
6 no-host configure.yash 256,676 0 0 0 4,120 0 866 68 bash
14 no-host configure.yash 244,671 0 0 0 3,720 0 870 75 dash
22 no-host configure.yash 385,673 0 0 0 3,728 0 855 76 osh-cpython
30 no-host configure.yash 257,330 0 0 0 3,736 0 849 86 osh-native
38 no-host configure.yash 257,646 0 0 0 3,736 0 849 87 osh-native-souffle
0 no-host hello-world 148 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,747 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 351 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 340 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-cde245b6
dash dash-0ebcf347
osh-cpython osh-69f5750a
osh-native osh-749e523f
osh-native-souffle osh-3cbb1221
host label host id
no-host no-host-556df3ee