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 475 22 21 24.77 1.16
bin-true no-host 673 552 2,279 820 802 3.38 1.22
configure.cpython no-host 15,200 15,538 29,210 15,671 15,744 1.92 1.03
configure.ocaml no-host 3,861 3,788 4,718 3,840 3,857 1.22 0.99
configure.tcc no-host 48 42 206 49 49 4.34 1.02
configure.util-linux no-host 14,107 15,010 31,789 14,522 14,623 2.25 1.03
configure.yash no-host 1,860 1,789 2,551 1,842 1,847 1.37 0.99
hello-world no-host 2 1 57 3 3 36.97 1.87

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,550 1,106 23,499 3,183 3,134 9.22 1.25
bin-true no-host 104,283 66,363 758,857 126,091 122,121 7.28 1.21
configure.cpython no-host 2,226,961 2,238,937 6,194,808 2,223,671 2,214,009 2.78 1.00
configure.ocaml no-host 410,592 391,402 643,757 412,678 412,172 1.57 1.01
configure.tcc no-host 6,541 5,469 23,897 6,952 6,897 3.65 1.06
configure.util-linux no-host 2,096,301 2,259,662 5,345,902 1,999,429 1,996,189 2.55 0.95
configure.yash no-host 255,480 245,038 385,930 258,527 257,089 1.51 1.01
hello-world no-host 154 81 3,954 347 339 25.68 2.25

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.6 9.0 8.7 5.07 2.03
bin-true no-host 3.0 1.4 18.3 7.9 7.6 6.06 2.61
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.6 1.00 0.99
configure.tcc no-host 19.4 19.4 19.4 19.4 19.3 1.00 1.00
configure.util-linux no-host 30.3 30.0 30.1 30.1 30.3 1.00 1.00
configure.yash no-host 24.4 24.2 24.2 24.4 24.4 0.99 1.00
hello-world no-host 2.9 1.4 18.1 6.3 5.9 6.28 2.18

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,791 3,791 0 694 1,863 1,234 2 0 50,000 0
bin-true no-host 820 1 2 2.6 7.9 153,755 12,331 2,896 8,743 76,327 68,685 3,008 3 50,000 0
configure.cpython no-host 15,671 1 62 14.9 27.4 1,771,756 49,614 28,521 85,415 878,120 808,221 25,733 60 50,000 0
configure.util-linux no-host 14,522 4 63 21.2 30.1 2,702,522 53,775 65,700 108,691 1,290,645 1,303,186 32,239 41 131,400 1
configure.ocaml no-host 3,840 1 2 2.6 20.4 150,089 11,121 5,216 7,508 70,974 71,607 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,595 30,595 0 1,518 14,646 14,431 271 0 50,000 0
configure.yash no-host 1,842 1 2 2.5 24.4 139,421 8,033 6,695 5,989 67,947 65,485 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,301 64,412 42,622 4,532 54,441 57,328 277 3 85,244 1
hello-world no-host 3 0 0 0.2 5.9 3,790 3,790 0 695 1,863 1,232 2 0 50,000 0
bin-true no-host 802 1 2 2.6 7.6 153,754 12,120 2,834 8,744 76,327 68,683 3,008 3 50,000 0
configure.cpython no-host 15,744 1 62 14.9 27.4 1,771,755 49,072 28,459 85,416 878,120 808,219 25,733 60 50,000 0
configure.util-linux no-host 14,623 3 63 21.2 30.3 2,702,522 53,702 65,638 108,693 1,290,645 1,303,184 32,239 41 131,276 1
configure.ocaml no-host 3,857 1 2 2.6 20.6 150,089 11,059 5,154 7,510 70,974 71,605 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,595 30,595 0 1,520 14,646 14,429 271 0 50,000 0
configure.yash no-host 1,847 1 2 2.5 24.4 139,421 7,971 6,633 5,991 67,947 65,483 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,300 64,350 42,560 4,533 54,441 57,326 277 3 85,120 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 18 2 4.5 bash
15 no-host abuild-print-help 9 8 1 3.5 dash
23 no-host abuild-print-help 475 423 56 22.6 osh-cpython
31 no-host abuild-print-help 22 13 9 9.0 osh-native
39 no-host abuild-print-help 21 15 7 8.7 osh-native-souffle
1 no-host bin-true 673 510 194 3.0 bash
9 no-host bin-true 552 422 139 1.4 dash
17 no-host bin-true 2,279 1,457 1,081 18.3 osh-cpython
25 no-host bin-true 820 568 266 7.9 osh-native
33 no-host bin-true 802 569 247 7.6 osh-native-souffle
2 no-host configure.cpython 15,200 9,208 6,392 27.3 bash
10 no-host configure.cpython 15,538 9,286 6,680 27.4 dash
18 no-host configure.cpython 29,210 17,831 13,247 27.4 osh-cpython
26 no-host configure.cpython 15,671 9,279 6,663 27.4 osh-native
34 no-host configure.cpython 15,744 9,363 6,522 27.4 osh-native-souffle
4 no-host configure.ocaml 3,861 1,730 1,171 20.6 bash
12 no-host configure.ocaml 3,788 1,646 1,162 20.6 dash
20 no-host configure.ocaml 4,718 2,215 1,719 20.6 osh-cpython
28 no-host configure.ocaml 3,840 1,682 1,196 20.4 osh-native
36 no-host configure.ocaml 3,857 1,643 1,250 20.6 osh-native-souffle
5 no-host configure.tcc 48 27 21 19.4 bash
13 no-host configure.tcc 42 23 19 19.4 dash
21 no-host configure.tcc 206 146 64 19.4 osh-cpython
29 no-host configure.tcc 49 30 19 19.4 osh-native
37 no-host configure.tcc 49 26 24 19.3 osh-native-souffle
3 no-host configure.util-linux 14,107 8,897 5,667 30.3 bash
11 no-host configure.util-linux 15,010 9,065 6,446 30.0 dash
19 no-host configure.util-linux 31,789 21,121 11,766 30.1 osh-cpython
27 no-host configure.util-linux 14,522 8,725 6,001 30.1 osh-native
35 no-host configure.util-linux 14,623 8,769 6,052 30.3 osh-native-souffle
6 no-host configure.yash 1,860 1,076 792 24.4 bash
14 no-host configure.yash 1,789 1,042 749 24.2 dash
22 no-host configure.yash 2,551 1,543 1,051 24.2 osh-cpython
30 no-host configure.yash 1,842 1,045 801 24.4 osh-native
38 no-host configure.yash 1,847 1,060 792 24.4 osh-native-souffle
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 57 29 28 18.1 osh-cpython
24 no-host hello-world 3 3 0 6.3 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,550 0 0 0 16 0 40 1 bash
15 no-host abuild-print-help 1,106 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,499 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,183 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,134 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 104,283 0 0 0 8 0 1,992 205 bash
9 no-host bin-true 66,363 0 0 0 8 0 1,990 41 dash
17 no-host bin-true 758,857 0 0 0 8 0 1,990 213 osh-cpython
25 no-host bin-true 126,091 0 0 0 16 0 1,985 85 osh-native
33 no-host bin-true 122,121 0 0 0 16 0 1,991 101 osh-native-souffle
2 no-host configure.cpython 2,226,961 0 0 0 32,928 0 14,467 1,017 bash
10 no-host configure.cpython 2,238,937 0 0 0 32,992 0 14,631 1,207 dash
18 no-host configure.cpython 6,194,808 0 0 0 27,512 0 13,228 1,230 osh-cpython
26 no-host configure.cpython 2,223,671 2 0 0 27,520 0 13,264 1,140 osh-native
34 no-host configure.cpython 2,214,009 0 0 0 27,520 0 13,214 947 osh-native-souffle
4 no-host configure.ocaml 410,592 0 0 0 5,120 0 1,942 168 bash
12 no-host configure.ocaml 391,402 0 0 0 5,112 0 1,937 168 dash
20 no-host configure.ocaml 643,757 0 0 0 5,112 0 1,859 167 osh-cpython
28 no-host configure.ocaml 412,678 0 0 0 5,120 0 1,931 222 osh-native
36 no-host configure.ocaml 412,172 0 0 0 5,120 0 1,932 164 osh-native-souffle
5 no-host configure.tcc 6,541 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,469 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,897 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,952 0 0 0 104 0 47 4 osh-native
37 no-host configure.tcc 6,897 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,096,301 0 0 0 42,400 0 18,741 1,016 bash
11 no-host configure.util-linux 2,259,662 1 0 0 42,584 0 17,373 1,070 dash
19 no-host configure.util-linux 5,345,902 6 0 0 39,112 0 16,963 1,180 osh-cpython
27 no-host configure.util-linux 1,999,429 4 0 0 39,128 0 16,955 1,051 osh-native
35 no-host configure.util-linux 1,996,189 1 0 0 39,136 0 16,964 1,028 osh-native-souffle
6 no-host configure.yash 255,480 0 0 0 4,120 0 868 103 bash
14 no-host configure.yash 245,038 0 0 0 3,720 0 871 90 dash
22 no-host configure.yash 385,930 0 0 0 3,728 0 851 96 osh-cpython
30 no-host configure.yash 258,527 0 0 0 3,736 0 851 95 osh-native
38 no-host configure.yash 257,089 0 0 0 3,736 0 848 69 osh-native-souffle
0 no-host hello-world 154 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,954 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 347 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 339 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-af420c09
dash dash-0ebcf347
osh-cpython osh-41b9884b
osh-native osh-71d7b7be
osh-native-souffle osh-c76bba8a
host label host id
no-host no-host-556df3ee