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 20 10 458 22 21 22.97 1.09
bin-true no-host 683 559 2,385 813 808 3.49 1.19
configure.cpython no-host 15,913 15,912 29,470 15,362 15,505 1.85 0.97
configure.ocaml no-host 3,977 3,907 4,636 3,855 3,809 1.17 0.97
configure.tcc no-host 50 43 195 49 48 3.92 0.98
configure.util-linux no-host 14,711 16,038 31,524 14,623 14,363 2.14 0.99
configure.yash no-host 1,907 1,880 2,455 1,854 1,826 1.29 0.97
hello-world no-host 2 1 54 3 3 34.93 1.84

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,530 1,121 23,470 3,146 3,091 9.28 1.24
bin-true no-host 105,343 67,472 762,868 127,721 125,854 7.24 1.21
configure.cpython no-host 2,225,745 2,239,660 6,245,900 2,218,333 2,209,649 2.81 1.00
configure.ocaml no-host 410,554 391,092 645,227 412,804 412,104 1.57 1.01
configure.tcc no-host 6,542 5,491 23,686 6,949 6,904 3.62 1.06
configure.util-linux no-host 2,104,750 2,258,528 5,352,116 1,995,296 1,990,161 2.54 0.95
configure.yash no-host 256,866 245,104 387,898 257,789 257,531 1.51 1.00
hello-world no-host 153 82 3,742 348 347 24.46 2.27

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 21.9 8.8 8.7 4.91 1.97
bin-true no-host 3.0 1.4 17.7 8.0 7.7 5.87 2.65
configure.cpython no-host 27.3 27.4 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.4 20.4 20.6 20.4 20.6 1.01 1.00
configure.tcc no-host 19.3 19.4 19.3 19.3 19.4 1.00 1.00
configure.util-linux no-host 30.1 30.3 30.3 30.3 30.0 1.00 1.00
configure.yash no-host 24.4 24.2 24.4 24.4 24.4 1.00 1.00
hello-world no-host 2.9 1.4 17.6 6.2 5.9 6.09 2.14

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.2 3,773 3,773 0 695 1,850 1,228 2 0 50,000 0
bin-true no-host 813 1 2 2.6 8.0 154,738 13,220 2,877 9,745 78,319 66,674 3,008 3 50,000 0
configure.cpython no-host 15,362 2 65 15.0 27.4 1,772,720 49,854 28,587 86,398 908,071 778,251 22,694 60 50,000 0
configure.util-linux no-host 14,623 2 64 21.3 30.3 2,703,488 29,745 65,870 109,676 1,320,577 1,273,235 27,391 41 131,740 1
configure.ocaml no-host 3,855 1 2 2.6 20.4 150,094 11,051 5,221 7,532 71,604 70,958 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,579 30,579 0 1,521 14,774 14,284 226 0 50,000 0
configure.yash no-host 1,854 1 2 2.6 24.4 139,747 8,020 6,679 6,337 70,279 63,131 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.8 116,322 64,530 42,740 4,572 54,519 57,231 270 3 85,480 1
hello-world no-host 3 0 0 0.2 5.9 3,772 3,772 0 696 1,850 1,226 2 0 50,000 0
bin-true no-host 808 1 2 2.6 7.7 154,737 13,063 2,815 9,746 78,319 66,672 3,008 3 50,000 0
configure.cpython no-host 15,505 1 62 14.9 27.4 1,772,719 49,105 28,525 86,399 908,071 778,249 22,694 60 50,000 0
configure.util-linux no-host 14,363 3 61 21.3 30.0 2,703,488 42,741 65,828 109,678 1,320,577 1,273,233 27,391 41 131,656 1
configure.ocaml no-host 3,809 1 2 2.6 20.6 150,094 10,989 5,159 7,534 71,604 70,956 1,448 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,579 30,579 0 1,523 14,774 14,282 226 0 50,000 0
configure.yash no-host 1,826 1 2 2.6 24.4 139,747 7,958 6,617 6,339 70,279 63,129 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,321 64,468 42,678 4,573 54,519 57,229 270 3 85,356 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 20 10 10 4.5 bash
15 no-host abuild-print-help 10 8 2 3.4 dash
23 no-host abuild-print-help 458 432 28 21.9 osh-cpython
31 no-host abuild-print-help 22 16 6 8.8 osh-native
39 no-host abuild-print-help 21 13 8 8.7 osh-native-souffle
1 no-host bin-true 683 499 217 3.0 bash
9 no-host bin-true 559 425 139 1.4 dash
17 no-host bin-true 2,385 1,538 1,141 17.7 osh-cpython
25 no-host bin-true 813 592 236 8.0 osh-native
33 no-host bin-true 808 578 245 7.7 osh-native-souffle
2 no-host configure.cpython 15,913 9,436 6,880 27.3 bash
10 no-host configure.cpython 15,912 9,499 6,850 27.4 dash
18 no-host configure.cpython 29,470 17,913 13,526 27.4 osh-cpython
26 no-host configure.cpython 15,362 8,973 6,647 27.4 osh-native
34 no-host configure.cpython 15,505 8,981 6,584 27.4 osh-native-souffle
4 no-host configure.ocaml 3,977 1,671 1,332 20.4 bash
12 no-host configure.ocaml 3,907 1,664 1,263 20.4 dash
20 no-host configure.ocaml 4,636 2,239 1,611 20.6 osh-cpython
28 no-host configure.ocaml 3,855 1,688 1,205 20.4 osh-native
36 no-host configure.ocaml 3,809 1,634 1,207 20.6 osh-native-souffle
5 no-host configure.tcc 50 34 17 19.3 bash
13 no-host configure.tcc 43 25 18 19.4 dash
21 no-host configure.tcc 195 138 60 19.3 osh-cpython
29 no-host configure.tcc 49 26 23 19.3 osh-native
37 no-host configure.tcc 48 25 24 19.4 osh-native-souffle
3 no-host configure.util-linux 14,711 9,076 6,123 30.1 bash
11 no-host configure.util-linux 16,038 9,537 6,698 30.3 dash
19 no-host configure.util-linux 31,524 21,012 11,626 30.3 osh-cpython
27 no-host configure.util-linux 14,623 8,837 5,986 30.3 osh-native
35 no-host configure.util-linux 14,363 8,789 5,739 30.0 osh-native-souffle
6 no-host configure.yash 1,907 1,132 785 24.4 bash
14 no-host configure.yash 1,880 1,094 785 24.2 dash
22 no-host configure.yash 2,455 1,544 955 24.4 osh-cpython
30 no-host configure.yash 1,854 1,053 805 24.4 osh-native
38 no-host configure.yash 1,826 1,049 781 24.4 osh-native-souffle
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 54 28 27 17.6 osh-cpython
24 no-host hello-world 3 0 3 6.2 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,530 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,121 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,470 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,146 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,091 0 0 0 16 0 39 3 osh-native-souffle
1 no-host bin-true 105,343 0 0 0 8 0 1,988 47 bash
9 no-host bin-true 67,472 0 0 0 8 0 1,983 74 dash
17 no-host bin-true 762,868 0 0 0 8 0 1,991 259 osh-cpython
25 no-host bin-true 127,721 0 0 0 16 0 1,996 85 osh-native
33 no-host bin-true 125,854 0 0 0 16 0 1,994 62 osh-native-souffle
2 no-host configure.cpython 2,225,745 0 0 0 32,928 0 14,486 1,216 bash
10 no-host configure.cpython 2,239,660 0 0 0 32,992 0 14,604 1,068 dash
18 no-host configure.cpython 6,245,900 0 0 0 27,512 0 13,308 1,241 osh-cpython
26 no-host configure.cpython 2,218,333 0 0 0 27,520 0 13,208 1,093 osh-native
34 no-host configure.cpython 2,209,649 0 0 0 27,520 0 13,234 1,005 osh-native-souffle
4 no-host configure.ocaml 410,554 0 0 0 5,120 0 1,962 158 bash
12 no-host configure.ocaml 391,092 0 0 0 5,112 0 1,888 158 dash
20 no-host configure.ocaml 645,227 0 0 0 5,112 0 1,846 181 osh-cpython
28 no-host configure.ocaml 412,804 0 0 0 5,120 0 1,919 156 osh-native
36 no-host configure.ocaml 412,104 0 0 0 5,120 0 1,927 133 osh-native-souffle
5 no-host configure.tcc 6,542 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,491 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,686 0 0 0 96 0 53 5 osh-cpython
29 no-host configure.tcc 6,949 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,904 0 0 0 104 0 48 1 osh-native-souffle
3 no-host configure.util-linux 2,104,750 2 0 0 42,400 0 18,568 1,098 bash
11 no-host configure.util-linux 2,258,528 1 0 0 42,584 0 17,485 1,243 dash
19 no-host configure.util-linux 5,352,116 15 0 0 39,112 0 16,966 1,279 osh-cpython
27 no-host configure.util-linux 1,995,296 2 0 0 39,128 0 16,974 1,067 osh-native
35 no-host configure.util-linux 1,990,161 0 0 0 39,136 0 16,974 966 osh-native-souffle
6 no-host configure.yash 256,866 0 0 0 4,120 0 865 88 bash
14 no-host configure.yash 245,104 0 0 0 3,720 0 867 107 dash
22 no-host configure.yash 387,898 0 0 0 3,728 0 855 77 osh-cpython
30 no-host configure.yash 257,789 0 0 0 3,736 0 845 122 osh-native
38 no-host configure.yash 257,531 0 0 0 3,736 0 850 82 osh-native-souffle
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 1 dash
16 no-host hello-world 3,742 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 347 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-2a0db748
dash dash-0ebcf347
osh-cpython osh-e3f3368f
osh-native osh-aeba34ae
osh-native-souffle osh-aab46fe0
host label host id
no-host no-host-556df3ee