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-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 16 9 20 22 19 1.31 1.20
bin-true no-host 614 439 801 797 650 1.30 1.06
configure.cpython no-host 14,047 14,059 13,930 13,733 13,111 0.99 0.93
configure.ocaml no-host 3,710 3,724 3,731 3,728 3,687 1.01 0.99
configure.tcc no-host 46 41 46 47 45 1.00 0.96
configure.util-linux no-host 12,932 13,507 12,675 12,690 12,174 0.98 0.94
configure.yash no-host 1,713 1,652 1,719 1,709 1,697 1.00 0.99
hello-world no-host 1 1 3 3 1 2.47 1.03

Minor Page Faults

workload host name bash dash osh-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 2,391 1,150 3,312 3,414 2,834 1.39 1.19
bin-true no-host 100,407 49,447 134,039 131,395 111,717 1.33 1.11
configure.cpython no-host 1,621,513 1,639,332 1,587,175 1,603,732 1,517,885 0.98 0.94
configure.ocaml no-host 299,128 280,445 306,383 306,741 299,936 1.02 1.00
configure.tcc no-host 5,222 4,201 5,578 5,663 5,119 1.07 0.98
configure.util-linux no-host 1,534,124 1,694,406 1,520,925 1,521,946 1,448,235 0.99 0.94
configure.yash no-host 173,264 159,546 176,827 177,243 173,039 1.02 1.00
hello-world no-host 152 86 395 400 181 2.60 1.19

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-native osh-nosouffle osh-static osh bash ratio static bash ratio
abuild-print-help no-host 4.7 3.9 9.4 10.0 6.4 2.00 1.36
bin-true no-host 3.3 1.4 8.7 9.2 5.0 2.64 1.52
configure.cpython no-host 34.5 34.7 34.5 34.5 34.5 1.00 1.00
configure.ocaml no-host 28.7 28.7 28.5 28.5 28.7 0.99 1.00
configure.tcc no-host 26.2 26.1 26.0 26.2 26.1 0.99 1.00
configure.util-linux no-host 39.6 39.7 39.8 39.7 39.6 1.00 1.00
configure.yash no-host 33.4 33.4 33.4 33.4 33.4 1.00 1.00
hello-world no-host 3.1 1.6 6.6 7.1 3.3 2.08 1.04

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.6 3,913 3,913 0 722 1,921 1,270 2 0 50,000 0
bin-true no-host 801 1 2 3.5 8.7 151,898 10,761 2,975 14,781 72,395 64,722 3,008 3 50,000 0
configure.cpython no-host 13,930 1 70 14.8 34.5 1,750,825 35,396 28,951 93,077 869,762 787,986 25,789 61 50,000 0
configure.util-linux no-host 12,675 3 67 21.6 39.8 2,705,391 37,468 66,339 119,745 1,291,872 1,293,774 32,527 42 132,678 1
configure.ocaml no-host 3,731 1 2 2.8 28.5 149,698 12,653 6,568 9,213 70,295 70,190 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.0 30,549 30,549 0 1,680 14,473 14,396 271 0 50,000 0
configure.yash no-host 1,719 1 2 2.7 33.4 143,474 11,505 6,622 7,167 70,525 65,782 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 3.0 9.4 117,229 65,795 42,005 4,975 54,597 57,657 277 3 84,010 1
hello-world no-host 3 0 0 0.3 7.1 3,912 3,912 0 721 1,921 1,270 2 0 50,000 0
bin-true no-host 797 1 2 3.5 9.2 151,898 10,765 2,979 14,781 72,395 64,722 3,008 3 50,000 0
configure.cpython no-host 13,733 1 69 14.8 34.5 1,750,824 35,401 28,956 93,076 869,762 787,986 25,789 61 50,000 0
configure.util-linux no-host 12,690 3 66 21.6 39.7 2,705,391 37,474 66,345 119,745 1,291,872 1,293,774 32,527 42 132,690 1
configure.ocaml no-host 3,728 1 2 2.8 28.5 149,698 12,658 6,573 9,213 70,295 70,190 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.2 30,549 30,549 0 1,680 14,473 14,396 271 0 50,000 0
configure.yash no-host 1,709 1 2 2.7 33.4 143,474 11,509 6,626 7,167 70,525 65,782 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 10.0 117,229 65,799 42,009 4,975 54,597 57,657 277 3 84,018 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 16 8 8 4.7 bash
15 no-host abuild-print-help 9 5 5 3.9 dash
23 no-host abuild-print-help 20 11 10 9.4 osh-native
31 no-host abuild-print-help 22 10 12 10.0 osh-nosouffle
39 no-host abuild-print-help 19 12 7 6.4 osh-static
1 no-host bin-true 614 306 345 3.3 bash
9 no-host bin-true 439 271 174 1.4 dash
17 no-host bin-true 801 317 503 8.7 osh-native
25 no-host bin-true 797 313 501 9.2 osh-nosouffle
33 no-host bin-true 650 320 346 5.0 osh-static
2 no-host configure.cpython 14,047 7,672 6,757 34.5 bash
10 no-host configure.cpython 14,059 7,721 6,742 34.7 dash
18 no-host configure.cpython 13,930 7,424 6,786 34.5 osh-native
26 no-host configure.cpython 13,733 7,332 6,683 34.5 osh-nosouffle
34 no-host configure.cpython 13,111 7,289 6,057 34.5 osh-static
4 no-host configure.ocaml 3,710 1,464 1,287 28.7 bash
12 no-host configure.ocaml 3,724 1,518 1,230 28.7 dash
20 no-host configure.ocaml 3,731 1,509 1,259 28.5 osh-native
28 no-host configure.ocaml 3,728 1,503 1,267 28.5 osh-nosouffle
36 no-host configure.ocaml 3,687 1,488 1,230 28.7 osh-static
5 no-host configure.tcc 46 30 17 26.2 bash
13 no-host configure.tcc 41 23 19 26.1 dash
21 no-host configure.tcc 46 25 22 26.0 osh-native
29 no-host configure.tcc 47 27 20 26.2 osh-nosouffle
37 no-host configure.tcc 45 24 21 26.1 osh-static
3 no-host configure.util-linux 12,932 6,881 6,522 39.6 bash
11 no-host configure.util-linux 13,507 6,632 7,368 39.7 dash
19 no-host configure.util-linux 12,675 6,287 6,591 39.8 osh-native
27 no-host configure.util-linux 12,690 6,301 6,614 39.7 osh-nosouffle
35 no-host configure.util-linux 12,174 6,239 6,150 39.6 osh-static
6 no-host configure.yash 1,713 989 731 33.4 bash
14 no-host configure.yash 1,652 920 733 33.4 dash
22 no-host configure.yash 1,719 959 763 33.4 osh-native
30 no-host configure.yash 1,709 933 779 33.4 osh-nosouffle
38 no-host configure.yash 1,697 894 804 33.4 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 3 2 1 6.6 osh-native
24 no-host hello-world 3 1 2 7.1 osh-nosouffle
32 no-host hello-world 1 0 1 3.3 osh-static

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,391 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,150 0 0 0 8 0 40 1 dash
23 no-host abuild-print-help 3,312 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,414 0 0 0 16 0 38 2 osh-nosouffle
39 no-host abuild-print-help 2,834 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 100,407 0 0 0 8 0 1,999 61 bash
9 no-host bin-true 49,447 0 0 0 8 0 2,994 51 dash
17 no-host bin-true 134,039 0 0 0 16 0 1,999 69 osh-native
25 no-host bin-true 131,395 0 0 0 16 0 2,000 71 osh-nosouffle
33 no-host bin-true 111,717 0 0 0 8 0 2,000 63 osh-static
2 no-host configure.cpython 1,621,513 0 0 0 25,272 0 14,077 1,070 bash
10 no-host configure.cpython 1,639,332 0 0 0 25,272 0 14,122 978 dash
18 no-host configure.cpython 1,587,175 0 0 0 25,280 0 11,307 815 osh-native
26 no-host configure.cpython 1,603,732 0 0 0 25,280 0 11,300 825 osh-nosouffle
34 no-host configure.cpython 1,517,885 0 0 0 25,272 0 11,307 841 osh-static
4 no-host configure.ocaml 299,128 0 0 0 4,432 0 2,021 206 bash
12 no-host configure.ocaml 280,445 0 0 0 4,432 0 2,106 183 dash
20 no-host configure.ocaml 306,383 0 0 0 4,440 0 1,996 210 osh-native
28 no-host configure.ocaml 306,741 0 0 0 4,440 0 1,999 186 osh-nosouffle
36 no-host configure.ocaml 299,936 0 0 0 4,432 0 1,998 218 osh-static
5 no-host configure.tcc 5,222 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,201 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,578 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,663 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,119 0 0 0 88 0 45 3 osh-static
3 no-host configure.util-linux 1,534,124 1 0 0 35,944 0 18,971 1,039 bash
11 no-host configure.util-linux 1,694,406 0 0 496 35,936 0 17,127 1,165 dash
19 no-host configure.util-linux 1,520,925 1 0 0 35,952 0 16,142 981 osh-native
27 no-host configure.util-linux 1,521,946 0 0 0 35,944 0 16,197 924 osh-nosouffle
35 no-host configure.util-linux 1,448,235 1 0 0 35,936 0 16,141 905 osh-static
6 no-host configure.yash 173,264 0 0 0 3,616 0 878 96 bash
14 no-host configure.yash 159,546 0 0 0 3,616 0 1,002 101 dash
22 no-host configure.yash 176,827 0 0 0 3,624 0 859 95 osh-native
30 no-host configure.yash 177,243 0 0 0 3,624 0 857 106 osh-nosouffle
38 no-host configure.yash 173,039 0 0 0 3,616 0 855 105 osh-static
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 86 0 0 0 8 0 1 0 dash
16 no-host hello-world 395 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 400 0 0 0 16 0 1 1 osh-nosouffle
32 no-host hello-world 181 0 0 0 8 0 1 0 osh-static

Shell and Host

shell label shell id
bash bash-36833674
dash dash-cea41b3e
osh-native osh-a42a5d0a
osh-nosouffle osh-022ae1a3
osh-static osh-static-99bc4f5a
host label host id
no-host no-host-9c670df1