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 21 22 18 1.30 1.17
bin-true no-host 624 461 810 820 657 1.30 1.05
configure.cpython no-host 13,874 13,941 13,589 13,640 13,098 0.98 0.94
configure.ocaml no-host 3,678 3,632 3,769 3,735 3,721 1.02 1.01
configure.tcc no-host 46 42 46 47 43 1.01 0.94
configure.util-linux no-host 12,619 13,467 12,750 12,648 12,192 1.01 0.97
configure.yash no-host 1,734 1,669 1,705 1,708 1,685 0.98 0.97
hello-world no-host 1 1 3 3 1 2.32 1.04

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,405 1,164 3,281 3,427 2,843 1.36 1.18
bin-true no-host 102,465 49,387 133,045 136,355 110,749 1.30 1.08
configure.cpython no-host 1,623,364 1,638,492 1,587,029 1,597,391 1,517,949 0.98 0.94
configure.ocaml no-host 299,112 281,071 306,181 307,591 300,173 1.02 1.00
configure.tcc no-host 5,207 4,231 5,604 5,696 5,128 1.08 0.98
configure.util-linux no-host 1,539,626 1,702,036 1,524,480 1,522,913 1,448,786 0.99 0.94
configure.yash no-host 173,706 159,556 176,565 176,914 173,012 1.02 1.00
hello-world no-host 153 85 389 400 183 2.54 1.20

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.8 3.9 9.6 10.0 6.3 1.97 1.30
bin-true no-host 3.4 1.4 8.9 9.2 5.1 2.62 1.50
configure.cpython no-host 34.5 34.4 34.7 34.5 34.5 1.00 1.00
configure.ocaml no-host 28.7 28.7 28.6 28.7 28.7 1.00 1.00
configure.tcc no-host 26.2 26.4 26.2 26.1 26.2 1.00 1.00
configure.util-linux no-host 39.8 39.7 39.6 39.6 39.3 1.00 0.99
configure.yash no-host 33.5 33.4 33.3 33.4 33.4 0.99 1.00
hello-world no-host 3.3 1.6 6.4 6.9 3.3 1.96 1.00

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.4 3,913 3,913 0 722 1,921 1,270 2 0 50,000 0
bin-true no-host 810 1 2 3.5 8.9 151,898 10,761 2,975 14,781 72,395 64,722 3,008 3 50,000 0
configure.cpython no-host 13,589 1 67 14.8 34.7 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,750 3 67 21.6 39.6 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,769 1 2 2.8 28.6 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.2 30,549 30,549 0 1,680 14,473 14,396 271 0 50,000 0
configure.yash no-host 1,705 1 2 2.7 33.3 143,474 11,505 6,622 7,167 70,525 65,782 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.6 117,229 65,795 42,005 4,976 54,599 57,654 277 3 84,010 1
hello-world no-host 3 0 0 0.3 6.9 3,912 3,912 0 721 1,921 1,270 2 0 50,000 0
bin-true no-host 820 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,640 1 66 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,648 3 66 21.6 39.6 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,735 1 2 2.8 28.7 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.1 30,549 30,549 0 1,680 14,473 14,396 271 0 50,000 0
configure.yash no-host 1,708 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,976 54,599 57,654 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 9 8 4.8 bash
15 no-host abuild-print-help 9 6 4 3.9 dash
23 no-host abuild-print-help 21 8 14 9.6 osh-native
31 no-host abuild-print-help 22 13 9 10.0 osh-nosouffle
39 no-host abuild-print-help 18 10 9 6.3 osh-static
1 no-host bin-true 624 298 363 3.4 bash
9 no-host bin-true 461 284 182 1.4 dash
17 no-host bin-true 810 323 504 8.9 osh-native
25 no-host bin-true 820 314 522 9.2 osh-nosouffle
33 no-host bin-true 657 327 346 5.1 osh-static
2 no-host configure.cpython 13,874 7,608 6,658 34.5 bash
10 no-host configure.cpython 13,941 7,566 6,775 34.4 dash
18 no-host configure.cpython 13,589 7,213 6,643 34.7 osh-native
26 no-host configure.cpython 13,640 7,168 6,764 34.5 osh-nosouffle
34 no-host configure.cpython 13,098 7,204 6,131 34.5 osh-static
4 no-host configure.ocaml 3,678 1,466 1,253 28.7 bash
12 no-host configure.ocaml 3,632 1,483 1,174 28.7 dash
20 no-host configure.ocaml 3,769 1,540 1,270 28.6 osh-native
28 no-host configure.ocaml 3,735 1,503 1,273 28.7 osh-nosouffle
36 no-host configure.ocaml 3,721 1,495 1,258 28.7 osh-static
5 no-host configure.tcc 46 26 21 26.2 bash
13 no-host configure.tcc 42 27 15 26.4 dash
21 no-host configure.tcc 46 27 20 26.2 osh-native
29 no-host configure.tcc 47 23 24 26.1 osh-nosouffle
37 no-host configure.tcc 43 28 16 26.2 osh-static
3 no-host configure.util-linux 12,619 6,634 6,461 39.8 bash
11 no-host configure.util-linux 13,467 6,620 7,348 39.7 dash
19 no-host configure.util-linux 12,750 6,300 6,678 39.6 osh-native
27 no-host configure.util-linux 12,648 6,191 6,686 39.6 osh-nosouffle
35 no-host configure.util-linux 12,192 6,246 6,164 39.3 osh-static
6 no-host configure.yash 1,734 952 789 33.5 bash
14 no-host configure.yash 1,669 942 730 33.4 dash
22 no-host configure.yash 1,705 952 756 33.3 osh-native
30 no-host configure.yash 1,708 943 769 33.4 osh-nosouffle
38 no-host configure.yash 1,685 936 752 33.4 osh-static
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 3 3 0 6.4 osh-native
24 no-host hello-world 3 2 1 6.9 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,405 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,164 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,281 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,427 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,843 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 102,465 0 0 0 8 0 1,996 61 bash
9 no-host bin-true 49,387 0 0 0 8 0 2,996 57 dash
17 no-host bin-true 133,045 0 0 0 16 0 1,993 76 osh-native
25 no-host bin-true 136,355 0 0 0 16 0 1,996 80 osh-nosouffle
33 no-host bin-true 110,749 0 0 0 8 0 2,000 81 osh-static
2 no-host configure.cpython 1,623,364 0 0 0 25,272 0 14,074 1,031 bash
10 no-host configure.cpython 1,638,492 0 0 0 25,272 0 14,113 1,061 dash
18 no-host configure.cpython 1,587,029 0 0 0 25,280 0 11,303 884 osh-native
26 no-host configure.cpython 1,597,391 0 0 0 25,280 0 11,302 846 osh-nosouffle
34 no-host configure.cpython 1,517,949 1 0 0 25,272 0 11,312 895 osh-static
4 no-host configure.ocaml 299,112 0 0 0 4,432 0 2,018 191 bash
12 no-host configure.ocaml 281,071 0 0 0 4,432 0 2,107 201 dash
20 no-host configure.ocaml 306,181 0 0 0 4,440 0 2,000 213 osh-native
28 no-host configure.ocaml 307,591 0 0 0 4,440 0 1,999 208 osh-nosouffle
36 no-host configure.ocaml 300,173 0 0 0 4,432 0 2,002 227 osh-static
5 no-host configure.tcc 5,207 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,231 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 5,604 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,696 0 0 0 96 0 45 4 osh-nosouffle
37 no-host configure.tcc 5,128 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,539,626 2 0 0 35,944 0 19,005 1,128 bash
11 no-host configure.util-linux 1,702,036 1 0 496 35,936 0 17,127 1,228 dash
19 no-host configure.util-linux 1,524,480 2 0 0 35,952 0 16,142 989 osh-native
27 no-host configure.util-linux 1,522,913 0 0 0 35,944 0 16,209 971 osh-nosouffle
35 no-host configure.util-linux 1,448,786 1 0 0 35,936 0 16,202 945 osh-static
6 no-host configure.yash 173,706 0 0 0 3,616 0 876 96 bash
14 no-host configure.yash 159,556 0 0 0 3,616 0 1,002 100 dash
22 no-host configure.yash 176,565 0 0 0 3,624 0 859 98 osh-native
30 no-host configure.yash 176,914 0 0 0 3,624 0 857 100 osh-nosouffle
38 no-host configure.yash 173,012 0 0 0 3,616 0 856 112 osh-static
0 no-host hello-world 153 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 389 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 400 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 183 0 0 0 8 0 0 1 osh-static

Shell and Host

shell label shell id
bash bash-36833674
dash dash-cea41b3e
osh-native osh-65fecfbb
osh-nosouffle osh-887747d4
osh-static osh-static-a3be588c
host label host id
no-host no-host-9c670df1