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.19 1.14
bin-true no-host 678 543 2,315 816 805 3.42 1.20
configure.cpython no-host 15,121 15,095 28,989 15,355 15,363 1.92 1.02
configure.ocaml no-host 3,808 3,752 4,702 3,838 3,837 1.23 1.01
configure.tcc no-host 58 43 206 49 49 3.55 0.85
configure.util-linux no-host 14,077 14,972 31,512 14,468 14,347 2.24 1.03
configure.yash no-host 1,834 1,778 2,502 1,839 1,827 1.36 1.00
hello-world no-host 2 1 58 3 3 36.54 1.81

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,518 1,107 23,989 3,160 3,107 9.53 1.25
bin-true no-host 105,335 66,502 782,919 125,262 122,230 7.43 1.19
configure.cpython no-host 2,219,401 2,237,737 6,226,647 2,230,563 2,209,213 2.81 1.01
configure.ocaml no-host 410,840 391,020 646,373 412,838 411,977 1.57 1.00
configure.tcc no-host 6,584 5,485 24,406 6,949 6,901 3.71 1.06
configure.util-linux no-host 2,104,392 2,260,032 5,407,305 1,995,520 1,989,702 2.57 0.95
configure.yash no-host 256,622 245,191 389,900 258,052 257,400 1.52 1.01
hello-world no-host 152 82 4,008 351 343 26.37 2.31

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.3 3.4 23.1 8.9 8.7 5.35 2.06
bin-true no-host 3.0 1.4 18.8 7.9 7.3 6.24 2.61
configure.cpython no-host 27.4 27.4 27.3 27.5 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.3 19.3 19.3 19.4 0.99 0.99
configure.util-linux no-host 30.1 30.1 30.0 30.1 30.1 1.00 1.00
configure.yash no-host 24.4 24.4 24.5 24.4 24.2 1.01 1.00
hello-world no-host 2.8 1.4 18.8 6.3 5.9 6.84 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 816 1 2 2.6 7.9 153,744 12,264 2,884 8,744 78,325 66,675 3,008 3 50,000 0
configure.cpython no-host 15,355 1 61 14.9 27.5 1,771,745 49,904 28,593 85,416 908,077 778,252 25,733 60 50,000 0
configure.util-linux no-host 14,468 3 60 21.2 30.1 2,702,511 29,654 65,897 108,692 1,320,583 1,273,236 32,239 41 131,794 1
configure.ocaml no-host 3,838 1 2 2.6 20.4 150,078 11,128 5,223 7,509 71,610 70,959 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,584 30,584 0 1,519 14,780 14,285 271 0 50,000 0
configure.yash no-host 1,839 1 2 2.5 24.4 139,404 8,024 6,686 5,987 70,285 63,132 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,290 64,537 42,747 4,533 54,525 57,232 277 3 85,494 1
hello-world no-host 3 0 0 0.2 5.9 3,779 3,779 0 696 1,856 1,227 2 0 50,000 0
bin-true no-host 805 1 2 2.6 7.3 153,743 12,053 2,822 8,745 78,325 66,673 3,008 3 50,000 0
configure.cpython no-host 15,363 1 63 14.8 27.4 1,771,744 49,106 28,531 85,417 908,077 778,250 25,733 60 50,000 0
configure.util-linux no-host 14,347 2 61 21.2 30.1 2,702,511 29,763 65,835 108,694 1,320,583 1,273,234 32,239 41 131,670 1
configure.ocaml no-host 3,837 1 2 2.6 20.6 150,078 11,066 5,161 7,511 71,610 70,957 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,584 30,584 0 1,521 14,780 14,283 271 0 50,000 0
configure.yash no-host 1,827 1 2 2.5 24.2 139,404 7,962 6,624 5,989 70,285 63,130 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,289 64,475 42,685 4,534 54,525 57,230 277 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 16 4 4.3 bash
15 no-host abuild-print-help 10 5 5 3.4 dash
23 no-host abuild-print-help 464 414 53 23.1 osh-cpython
31 no-host abuild-print-help 22 20 2 8.9 osh-native
39 no-host abuild-print-help 21 14 7 8.7 osh-native-souffle
1 no-host bin-true 678 512 198 3.0 bash
9 no-host bin-true 543 423 131 1.4 dash
17 no-host bin-true 2,315 1,514 1,066 18.8 osh-cpython
25 no-host bin-true 816 580 249 7.9 osh-native
33 no-host bin-true 805 563 255 7.3 osh-native-souffle
2 no-host configure.cpython 15,121 9,126 6,358 27.4 bash
10 no-host configure.cpython 15,095 9,072 6,433 27.4 dash
18 no-host configure.cpython 28,989 17,610 13,263 27.3 osh-cpython
26 no-host configure.cpython 15,355 9,319 6,293 27.5 osh-native
34 no-host configure.cpython 15,363 8,860 6,682 27.4 osh-native-souffle
4 no-host configure.ocaml 3,808 1,560 1,287 20.6 bash
12 no-host configure.ocaml 3,752 1,649 1,123 20.6 dash
20 no-host configure.ocaml 4,702 2,249 1,667 20.6 osh-cpython
28 no-host configure.ocaml 3,838 1,646 1,231 20.4 osh-native
36 no-host configure.ocaml 3,837 1,622 1,244 20.6 osh-native-souffle
5 no-host configure.tcc 58 29 24 19.4 bash
13 no-host configure.tcc 43 25 19 19.3 dash
21 no-host configure.tcc 206 131 79 19.3 osh-cpython
29 no-host configure.tcc 49 26 23 19.3 osh-native
37 no-host configure.tcc 49 24 25 19.4 osh-native-souffle
3 no-host configure.util-linux 14,077 8,847 5,694 30.1 bash
11 no-host configure.util-linux 14,972 9,232 6,221 30.1 dash
19 no-host configure.util-linux 31,512 20,928 11,671 30.0 osh-cpython
27 no-host configure.util-linux 14,468 8,636 6,024 30.1 osh-native
35 no-host configure.util-linux 14,347 8,666 5,873 30.1 osh-native-souffle
6 no-host configure.yash 1,834 1,045 797 24.4 bash
14 no-host configure.yash 1,778 986 796 24.4 dash
22 no-host configure.yash 2,502 1,502 1,042 24.5 osh-cpython
30 no-host configure.yash 1,839 1,073 765 24.4 osh-native
38 no-host configure.yash 1,827 1,055 776 24.2 osh-native-souffle
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 58 45 13 18.8 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 3 0 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,518 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,107 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,989 0 0 0 8 0 45 12 osh-cpython
31 no-host abuild-print-help 3,160 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,107 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 105,335 0 0 0 8 0 1,984 74 bash
9 no-host bin-true 66,502 0 0 0 8 0 1,985 33 dash
17 no-host bin-true 782,919 0 0 0 8 0 1,996 113 osh-cpython
25 no-host bin-true 125,262 0 0 0 16 0 1,989 145 osh-native
33 no-host bin-true 122,230 0 0 0 16 0 1,988 58 osh-native-souffle
2 no-host configure.cpython 2,219,401 0 0 0 32,928 0 14,723 1,216 bash
10 no-host configure.cpython 2,237,737 0 0 0 32,992 0 14,628 938 dash
18 no-host configure.cpython 6,226,647 2 0 0 27,512 0 13,219 1,146 osh-cpython
26 no-host configure.cpython 2,230,563 1 0 0 27,520 0 13,269 1,039 osh-native
34 no-host configure.cpython 2,209,213 0 0 0 27,520 0 13,285 1,031 osh-native-souffle
4 no-host configure.ocaml 410,840 0 0 0 5,120 0 1,939 176 bash
12 no-host configure.ocaml 391,020 0 0 0 5,112 0 1,937 132 dash
20 no-host configure.ocaml 646,373 0 0 0 5,112 0 1,866 189 osh-cpython
28 no-host configure.ocaml 412,838 0 0 0 5,120 0 1,928 177 osh-native
36 no-host configure.ocaml 411,977 0 0 0 5,120 0 1,931 159 osh-native-souffle
5 no-host configure.tcc 6,584 0 0 0 104 0 56 5 bash
13 no-host configure.tcc 5,485 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 24,406 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,949 0 0 0 104 0 47 4 osh-native
37 no-host configure.tcc 6,901 0 0 0 104 0 46 3 osh-native-souffle
3 no-host configure.util-linux 2,104,392 0 0 0 42,400 0 18,562 1,036 bash
11 no-host configure.util-linux 2,260,032 0 0 0 42,584 0 17,444 1,112 dash
19 no-host configure.util-linux 5,407,305 19 0 0 39,120 0 16,955 1,265 osh-cpython
27 no-host configure.util-linux 1,995,520 1 0 0 39,128 0 16,927 1,015 osh-native
35 no-host configure.util-linux 1,989,702 0 0 0 39,136 0 16,934 922 osh-native-souffle
6 no-host configure.yash 256,622 0 0 0 4,120 0 864 89 bash
14 no-host configure.yash 245,191 0 0 0 3,720 0 871 70 dash
22 no-host configure.yash 389,900 0 0 0 3,728 0 855 97 osh-cpython
30 no-host configure.yash 258,052 0 0 0 3,736 0 850 71 osh-native
38 no-host configure.yash 257,400 0 0 0 3,736 0 850 78 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 0 1 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 4,008 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 351 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 343 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-9d45f995
dash dash-0ebcf347
osh-cpython osh-e8ca7b05
osh-native osh-15af6787
osh-native-souffle osh-df5bfa3b
host label host id
no-host no-host-556df3ee