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 485 22 21 26.03 1.18
bin-true no-host 665 524 2,399 799 796 3.61 1.20
configure.cpython no-host 14,963 14,875 29,100 15,093 15,348 1.94 1.01
configure.ocaml no-host 3,790 3,712 4,663 3,815 3,806 1.23 1.01
configure.tcc no-host 47 41 223 49 47 4.73 1.03
configure.util-linux no-host 14,015 14,601 31,977 14,428 14,199 2.28 1.03
configure.yash no-host 1,820 1,752 2,484 1,843 1,825 1.36 1.01
hello-world no-host 1 1 57 3 3 39.91 1.99

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,565 1,099 24,140 3,186 3,114 9.41 1.24
bin-true no-host 106,436 65,469 804,040 126,149 126,095 7.55 1.19
configure.cpython no-host 1,994,560 2,013,853 6,115,070 2,005,588 2,001,710 3.07 1.01
configure.ocaml no-host 373,577 353,844 616,602 376,906 375,732 1.65 1.01
configure.tcc no-host 6,119 4,992 23,960 6,518 6,462 3.92 1.07
configure.util-linux no-host 1,914,932 2,077,718 5,255,142 1,811,338 1,807,866 2.74 0.95
configure.yash no-host 233,904 221,681 369,501 235,832 235,256 1.58 1.01
hello-world no-host 146 78 3,954 343 337 27.08 2.35

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.7 8.9 8.8 5.10 2.00
bin-true no-host 2.9 1.4 18.5 8.0 7.6 6.43 2.77
configure.cpython no-host 29.2 29.2 29.3 28.9 29.2 1.00 0.99
configure.ocaml no-host 22.6 22.6 22.6 22.6 22.6 1.00 1.00
configure.tcc no-host 19.7 19.7 19.6 19.8 19.7 0.99 1.01
configure.util-linux no-host 30.3 30.2 30.3 30.3 30.3 1.00 1.00
configure.yash no-host 26.3 26.3 26.4 26.4 26.4 1.00 1.00
hello-world no-host 2.8 1.6 18.3 6.3 5.9 6.64 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.3 6.3 3,799 3,799 0 699 1,867 1,233 2 0 50,000 0
bin-true no-host 799 1 2 2.6 8.0 153,766 12,331 2,895 8,751 76,334 68,681 3,008 3 50,000 0
configure.cpython no-host 15,093 2 67 15.3 28.9 1,773,757 49,822 28,520 91,504 881,462 800,791 25,736 60 50,000 0
configure.util-linux no-host 14,428 5 69 21.6 30.3 2,704,668 53,751 65,719 114,371 1,293,954 1,296,343 32,241 41 131,438 1
configure.ocaml no-host 3,815 1 2 2.6 22.6 149,782 11,148 5,215 7,732 70,841 71,209 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.8 30,567 30,567 0 1,541 14,632 14,394 271 0 50,000 0
configure.yash no-host 1,843 1 2 2.6 26.4 139,678 8,035 6,694 6,393 68,250 65,035 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,315 64,413 42,621 4,543 54,451 57,321 277 3 85,242 1
hello-world no-host 3 0 0 0.3 5.9 3,798 3,798 0 700 1,867 1,231 2 0 50,000 0
bin-true no-host 796 1 2 2.6 7.6 153,765 12,326 2,890 8,752 76,334 68,679 3,008 3 50,000 0
configure.cpython no-host 15,348 1 65 15.3 29.2 1,773,756 49,817 28,515 91,505 881,462 800,789 25,736 60 50,000 0
configure.util-linux no-host 14,199 3 65 21.6 30.3 2,704,668 53,734 65,714 114,373 1,293,954 1,296,341 32,241 41 131,428 1
configure.ocaml no-host 3,806 1 2 2.6 22.6 149,782 11,143 5,210 7,734 70,841 71,207 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.7 30,567 30,567 0 1,543 14,632 14,392 271 0 50,000 0
configure.yash no-host 1,825 1 2 2.6 26.4 139,678 8,030 6,689 6,395 68,250 65,033 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.8 116,314 64,408 42,616 4,544 54,451 57,319 277 3 85,232 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 9 10 4.5 bash
15 no-host abuild-print-help 9 2 8 3.4 dash
23 no-host abuild-print-help 485 422 67 22.7 osh-cpython
31 no-host abuild-print-help 22 12 11 8.9 osh-native
39 no-host abuild-print-help 21 15 6 8.8 osh-native-souffle
1 no-host bin-true 665 308 393 2.9 bash
9 no-host bin-true 524 277 258 1.4 dash
17 no-host bin-true 2,399 814 1,847 18.5 osh-cpython
25 no-host bin-true 799 305 508 8.0 osh-native
33 no-host bin-true 796 291 522 7.6 osh-native-souffle
2 no-host configure.cpython 14,963 6,754 8,632 29.2 bash
10 no-host configure.cpython 14,875 6,743 8,571 29.2 dash
18 no-host configure.cpython 29,100 14,418 16,642 29.3 osh-cpython
26 no-host configure.cpython 15,093 6,668 8,717 28.9 osh-native
34 no-host configure.cpython 15,348 6,599 8,894 29.2 osh-native-souffle
4 no-host configure.ocaml 3,790 1,308 1,523 22.6 bash
12 no-host configure.ocaml 3,712 1,270 1,464 22.6 dash
20 no-host configure.ocaml 4,663 1,868 2,017 22.6 osh-cpython
28 no-host configure.ocaml 3,815 1,321 1,533 22.6 osh-native
36 no-host configure.ocaml 3,806 1,271 1,576 22.6 osh-native-souffle
5 no-host configure.tcc 47 23 25 19.7 bash
13 no-host configure.tcc 41 20 21 19.7 dash
21 no-host configure.tcc 223 158 69 19.6 osh-cpython
29 no-host configure.tcc 49 29 20 19.8 osh-native
37 no-host configure.tcc 47 21 27 19.7 osh-native-souffle
3 no-host configure.util-linux 14,015 5,940 8,588 30.3 bash
11 no-host configure.util-linux 14,601 5,891 9,242 30.2 dash
19 no-host configure.util-linux 31,977 18,165 14,942 30.3 osh-cpython
27 no-host configure.util-linux 14,428 5,713 8,883 30.3 osh-native
35 no-host configure.util-linux 14,199 5,683 8,741 30.3 osh-native-souffle
6 no-host configure.yash 1,820 903 927 26.3 bash
14 no-host configure.yash 1,752 896 861 26.3 dash
22 no-host configure.yash 2,484 1,380 1,149 26.4 osh-cpython
30 no-host configure.yash 1,843 872 963 26.4 osh-native
38 no-host configure.yash 1,825 912 918 26.4 osh-native-souffle
0 no-host hello-world 1 0 1 2.8 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 57 36 21 18.3 osh-cpython
24 no-host hello-world 3 1 2 6.3 osh-native
32 no-host hello-world 3 1 2 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,565 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,099 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 24,140 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,186 0 0 0 16 0 39 4 osh-native
39 no-host abuild-print-help 3,114 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 106,436 0 0 0 8 0 1,989 106 bash
9 no-host bin-true 65,469 0 0 0 8 0 1,983 105 dash
17 no-host bin-true 804,040 0 0 0 8 0 1,988 476 osh-cpython
25 no-host bin-true 126,149 0 0 0 16 0 1,970 145 osh-native
33 no-host bin-true 126,095 0 0 0 16 0 1,978 168 osh-native-souffle
2 no-host configure.cpython 1,994,560 0 0 0 32,928 0 14,283 1,169 bash
10 no-host configure.cpython 2,013,853 0 0 0 32,992 0 14,387 1,102 dash
18 no-host configure.cpython 6,115,070 0 0 0 27,512 0 13,121 1,137 osh-cpython
26 no-host configure.cpython 2,005,588 1 0 0 27,520 0 13,088 1,043 osh-native
34 no-host configure.cpython 2,001,710 0 0 0 27,520 0 13,087 998 osh-native-souffle
4 no-host configure.ocaml 373,577 0 0 0 5,120 0 1,948 202 bash
12 no-host configure.ocaml 353,844 0 0 0 5,112 0 1,936 185 dash
20 no-host configure.ocaml 616,602 0 0 0 5,112 0 1,842 181 osh-cpython
28 no-host configure.ocaml 376,906 0 0 0 5,120 0 1,921 201 osh-native
36 no-host configure.ocaml 375,732 0 0 0 5,120 0 1,928 198 osh-native-souffle
5 no-host configure.tcc 6,119 0 0 0 104 0 49 5 bash
13 no-host configure.tcc 4,992 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,960 0 0 0 96 0 52 18 osh-cpython
29 no-host configure.tcc 6,518 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,462 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,914,932 1 0 0 42,400 0 18,385 1,084 bash
11 no-host configure.util-linux 2,077,718 1 0 0 42,592 0 17,273 1,377 dash
19 no-host configure.util-linux 5,255,142 10 0 0 39,136 0 17,023 1,273 osh-cpython
27 no-host configure.util-linux 1,811,338 0 0 0 39,120 0 16,994 1,128 osh-native
35 no-host configure.util-linux 1,807,866 1 0 0 39,136 0 17,012 1,178 osh-native-souffle
6 no-host configure.yash 233,904 0 0 0 4,120 0 871 90 bash
14 no-host configure.yash 221,681 0 0 0 3,720 0 867 91 dash
22 no-host configure.yash 369,501 0 0 0 3,728 0 857 93 osh-cpython
30 no-host configure.yash 235,832 0 0 0 3,736 0 849 88 osh-native
38 no-host configure.yash 235,256 0 0 0 3,736 0 847 77 osh-native-souffle
0 no-host hello-world 146 0 0 0 8 0 1 0 bash
8 no-host hello-world 78 0 0 0 8 0 1 1 dash
16 no-host hello-world 3,954 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 343 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 337 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-f7aad857
dash dash-0ebcf347
osh-cpython osh-44ef76f0
osh-native osh-1f1bf751
osh-native-souffle osh-09955d85
host label host id
no-host no-host-e4839999