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 464 22 21 24.41 1.16
bin-true no-host 672 545 2,309 802 819 3.44 1.19
configure.cpython no-host 15,216 15,292 29,153 15,485 16,165 1.92 1.02
configure.ocaml no-host 3,901 3,831 4,792 3,939 3,865 1.23 1.01
configure.tcc no-host 49 43 207 50 49 4.20 1.02
configure.util-linux no-host 14,188 15,050 31,869 14,432 14,984 2.25 1.02
configure.yash no-host 1,872 1,794 2,523 1,942 1,834 1.35 1.04
hello-world no-host 1 1 57 3 3 38.88 1.95

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,094 23,587 3,185 3,119 9.20 1.24
bin-true no-host 107,367 66,457 763,419 123,164 127,265 7.11 1.15
configure.cpython no-host 2,213,514 2,239,644 6,186,123 2,220,238 2,215,460 2.79 1.00
configure.ocaml no-host 409,996 391,607 643,848 412,914 412,609 1.57 1.01
configure.tcc no-host 6,545 5,483 23,845 6,960 6,930 3.64 1.06
configure.util-linux no-host 2,100,468 2,263,760 5,369,034 1,998,008 1,991,967 2.56 0.95
configure.yash no-host 256,765 244,712 386,280 257,797 258,134 1.50 1.00
hello-world no-host 149 85 3,953 345 338 26.53 2.32

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.8 9.0 8.7 5.13 2.03
bin-true no-host 3.0 1.4 18.4 8.3 7.7 6.10 2.74
configure.cpython no-host 27.3 27.4 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.4 20.4 1.00 0.99
configure.tcc no-host 19.4 19.4 19.4 19.3 19.4 1.00 0.99
configure.util-linux no-host 30.1 30.4 30.1 30.0 30.3 1.00 1.00
configure.yash no-host 24.5 24.4 24.4 24.2 24.5 0.99 0.99
hello-world no-host 2.6 1.4 18.3 6.4 5.9 6.96 2.45

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,789 3,789 0 694 1,861 1,234 2 0 50,000 0
bin-true no-host 802 1 2 2.6 8.3 153,753 12,329 2,894 8,743 76,325 68,685 3,008 3 50,000 0
configure.cpython no-host 15,485 2 64 14.9 27.4 1,771,800 49,612 28,519 85,427 878,134 808,239 25,736 60 50,000 0
configure.util-linux no-host 14,432 3 62 21.2 30.0 2,702,546 45,807 65,718 108,699 1,290,651 1,303,196 32,241 41 131,436 1
configure.ocaml no-host 3,939 1 2 2.6 20.4 150,087 11,119 5,214 7,508 70,972 71,607 1,695 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,593 30,593 0 1,518 14,644 14,431 271 0 50,000 0
configure.yash no-host 1,942 1 2 2.5 24.2 139,419 8,031 6,693 5,989 67,945 65,485 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,299 64,410 42,620 4,532 54,439 57,328 277 3 85,240 1
hello-world no-host 3 0 0 0.2 5.9 3,788 3,788 0 695 1,861 1,232 2 0 50,000 0
bin-true no-host 819 1 2 2.6 7.7 153,752 12,118 2,832 8,744 76,325 68,683 3,008 3 50,000 0
configure.cpython no-host 16,165 1 66 14.9 27.4 1,771,799 49,070 28,457 85,428 878,134 808,237 25,736 60 50,000 0
configure.util-linux no-host 14,984 3 67 21.2 30.3 2,702,546 53,700 65,636 108,701 1,290,651 1,303,194 32,241 41 131,272 1
configure.ocaml no-host 3,865 1 2 2.6 20.4 150,087 11,057 5,152 7,510 70,972 71,605 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,593 30,593 0 1,520 14,644 14,429 271 0 50,000 0
configure.yash no-host 1,834 1 2 2.5 24.5 139,419 7,969 6,631 5,991 67,945 65,483 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,298 64,348 42,558 4,533 54,439 57,326 277 3 85,116 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 13 7 4.5 bash
15 no-host abuild-print-help 10 9 1 3.5 dash
23 no-host abuild-print-help 464 414 53 22.8 osh-cpython
31 no-host abuild-print-help 22 20 3 9.0 osh-native
39 no-host abuild-print-help 21 15 6 8.7 osh-native-souffle
1 no-host bin-true 672 503 199 3.0 bash
9 no-host bin-true 545 426 126 1.4 dash
17 no-host bin-true 2,309 1,479 1,088 18.4 osh-cpython
25 no-host bin-true 802 567 251 8.3 osh-native
33 no-host bin-true 819 600 236 7.7 osh-native-souffle
2 no-host configure.cpython 15,216 8,998 6,616 27.3 bash
10 no-host configure.cpython 15,292 9,366 6,352 27.4 dash
18 no-host configure.cpython 29,153 17,773 13,249 27.4 osh-cpython
26 no-host configure.cpython 15,485 9,082 6,677 27.4 osh-native
34 no-host configure.cpython 16,165 9,399 6,802 27.4 osh-native-souffle
4 no-host configure.ocaml 3,901 1,668 1,266 20.6 bash
12 no-host configure.ocaml 3,831 1,715 1,134 20.6 dash
20 no-host configure.ocaml 4,792 2,373 1,634 20.6 osh-cpython
28 no-host configure.ocaml 3,939 1,718 1,260 20.4 osh-native
36 no-host configure.ocaml 3,865 1,665 1,237 20.4 osh-native-souffle
5 no-host configure.tcc 49 31 19 19.4 bash
13 no-host configure.tcc 43 27 16 19.4 dash
21 no-host configure.tcc 207 148 62 19.4 osh-cpython
29 no-host configure.tcc 50 30 20 19.3 osh-native
37 no-host configure.tcc 49 34 15 19.4 osh-native-souffle
3 no-host configure.util-linux 14,188 8,943 5,722 30.1 bash
11 no-host configure.util-linux 15,050 9,123 6,408 30.4 dash
19 no-host configure.util-linux 31,869 21,178 11,784 30.1 osh-cpython
27 no-host configure.util-linux 14,432 8,672 5,957 30.0 osh-native
35 no-host configure.util-linux 14,984 8,923 6,270 30.3 osh-native-souffle
6 no-host configure.yash 1,872 1,078 800 24.5 bash
14 no-host configure.yash 1,794 989 808 24.4 dash
22 no-host configure.yash 2,523 1,610 956 24.4 osh-cpython
30 no-host configure.yash 1,942 1,201 745 24.2 osh-native
38 no-host configure.yash 1,834 1,104 733 24.5 osh-native-souffle
0 no-host hello-world 1 1 0 2.6 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 57 29 28 18.3 osh-cpython
24 no-host hello-world 3 0 3 6.4 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,563 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,094 0 0 0 8 0 38 0 dash
23 no-host abuild-print-help 23,587 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,185 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,119 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 107,367 0 0 0 8 0 1,992 54 bash
9 no-host bin-true 66,457 0 0 0 8 0 1,978 43 dash
17 no-host bin-true 763,419 0 0 0 8 0 1,993 285 osh-cpython
25 no-host bin-true 123,164 0 0 0 16 0 1,988 54 osh-native
33 no-host bin-true 127,265 0 0 0 16 0 1,991 73 osh-native-souffle
2 no-host configure.cpython 2,213,514 0 0 0 32,928 0 14,505 1,085 bash
10 no-host configure.cpython 2,239,644 1 0 0 32,992 0 14,648 957 dash
18 no-host configure.cpython 6,186,123 0 0 0 27,512 0 13,187 1,048 osh-cpython
26 no-host configure.cpython 2,220,238 0 0 0 27,520 0 13,295 1,000 osh-native
34 no-host configure.cpython 2,215,460 1 0 0 27,520 0 13,240 1,041 osh-native-souffle
4 no-host configure.ocaml 409,996 0 0 0 5,120 0 1,966 146 bash
12 no-host configure.ocaml 391,607 0 0 0 5,112 0 1,939 148 dash
20 no-host configure.ocaml 643,848 0 0 0 5,112 0 1,850 165 osh-cpython
28 no-host configure.ocaml 412,914 0 0 0 5,120 0 1,924 160 osh-native
36 no-host configure.ocaml 412,609 0 0 0 5,120 0 1,932 136 osh-native-souffle
5 no-host configure.tcc 6,545 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,483 0 0 0 96 0 46 2 dash
21 no-host configure.tcc 23,845 0 0 0 96 0 53 12 osh-cpython
29 no-host configure.tcc 6,960 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,930 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,100,468 0 0 0 42,400 0 18,653 1,030 bash
11 no-host configure.util-linux 2,263,760 0 0 0 42,584 0 17,470 991 dash
19 no-host configure.util-linux 5,369,034 3 0 0 39,112 0 16,951 1,205 osh-cpython
27 no-host configure.util-linux 1,998,008 1 0 0 39,120 0 16,978 1,033 osh-native
35 no-host configure.util-linux 1,991,967 0 0 0 39,136 0 16,952 920 osh-native-souffle
6 no-host configure.yash 256,765 0 0 0 4,120 0 871 72 bash
14 no-host configure.yash 244,712 0 0 0 3,720 0 871 84 dash
22 no-host configure.yash 386,280 0 0 0 3,728 0 852 92 osh-cpython
30 no-host configure.yash 257,797 0 0 0 3,736 0 848 75 osh-native
38 no-host configure.yash 258,134 0 0 0 3,736 0 848 86 osh-native-souffle
0 no-host hello-world 149 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,953 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 345 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 338 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-4b720154
dash dash-0ebcf347
osh-cpython osh-bc8a4f9c
osh-native osh-db163f95
osh-native-souffle osh-c838a9ba
host label host id
no-host no-host-556df3ee