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 21 19 1.28 1.20
bin-true no-host 623 445 795 813 657 1.28 1.05
configure.cpython no-host 13,745 13,827 13,495 13,505 12,971 0.98 0.94
configure.ocaml no-host 3,672 3,622 3,692 3,696 3,677 1.01 1.00
configure.tcc no-host 45 41 47 48 43 1.02 0.95
configure.util-linux no-host 12,502 13,255 12,458 12,494 12,072 1.00 0.97
configure.yash no-host 1,684 1,646 1,697 1,701 1,680 1.01 1.00
hello-world no-host 1 1 3 3 1 2.47 1.02

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,396 1,167 3,278 3,385 2,844 1.37 1.19
bin-true no-host 101,484 49,439 129,906 136,359 111,743 1.28 1.10
configure.cpython no-host 1,621,220 1,635,198 1,588,745 1,613,391 1,523,189 0.98 0.94
configure.ocaml no-host 299,466 280,537 305,477 307,181 300,231 1.02 1.00
configure.tcc no-host 5,225 4,195 5,604 5,664 5,134 1.07 0.98
configure.util-linux no-host 1,544,516 1,696,920 1,516,512 1,520,903 1,447,637 0.98 0.94
configure.yash no-host 173,298 159,530 176,590 176,971 172,923 1.02 1.00
hello-world no-host 150 84 393 400 181 2.62 1.21

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.8 9.6 10.0 6.3 1.97 1.30
bin-true no-host 3.3 1.4 8.8 9.0 5.1 2.68 1.56
configure.cpython no-host 34.5 34.7 34.5 34.4 34.7 1.00 1.00
configure.ocaml no-host 28.8 28.7 28.6 28.7 28.7 0.99 1.00
configure.tcc no-host 26.1 26.1 26.1 26.3 26.2 1.00 1.00
configure.util-linux no-host 39.6 39.6 39.6 39.5 39.7 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.4 6.6 6.9 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 723 1,921 1,269 2 0 50,000 0
bin-true no-host 795 1 2 3.5 8.8 151,898 10,761 2,975 14,782 72,395 64,721 3,008 3 50,000 0
configure.cpython no-host 13,495 1 66 14.8 34.5 1,750,825 35,396 28,951 93,078 869,762 787,985 25,789 61 50,000 0
configure.util-linux no-host 12,458 3 64 21.6 39.6 2,705,391 37,468 66,339 119,746 1,291,872 1,293,773 32,527 42 132,678 1
configure.ocaml no-host 3,692 1 2 2.8 28.6 149,698 12,653 6,568 9,214 70,295 70,189 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.1 30,549 30,549 0 1,681 14,473 14,395 271 0 50,000 0
configure.yash no-host 1,697 1 2 2.7 33.4 143,474 11,505 6,622 7,168 70,525 65,781 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 3.0 9.6 117,232 65,798 42,005 4,977 54,599 57,656 277 3 84,010 1
hello-world no-host 3 0 0 0.3 6.9 3,912 3,912 0 722 1,921 1,269 2 0 50,000 0
bin-true no-host 813 1 2 3.5 9.0 151,898 10,765 2,979 14,782 72,395 64,721 3,008 3 50,000 0
configure.cpython no-host 13,505 1 64 14.8 34.4 1,750,824 35,401 28,956 93,077 869,762 787,985 25,789 61 50,000 0
configure.util-linux no-host 12,494 3 62 21.6 39.5 2,705,391 37,474 66,345 119,746 1,291,872 1,293,773 32,527 42 132,690 1
configure.ocaml no-host 3,696 1 2 2.8 28.7 149,698 12,658 6,573 9,214 70,295 70,189 1,693 3 50,000 0
configure.tcc no-host 48 0 0 1.4 26.3 30,549 30,549 0 1,681 14,473 14,395 271 0 50,000 0
configure.yash no-host 1,701 1 2 2.7 33.4 143,474 11,509 6,626 7,168 70,525 65,781 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 10.0 117,232 65,802 42,009 4,977 54,599 57,656 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 9 4.8 bash
15 no-host abuild-print-help 9 6 3 3.8 dash
23 no-host abuild-print-help 20 9 12 9.6 osh-native
31 no-host abuild-print-help 21 8 14 10.0 osh-nosouffle
39 no-host abuild-print-help 19 14 6 6.3 osh-static
1 no-host bin-true 623 317 343 3.3 bash
9 no-host bin-true 445 268 182 1.4 dash
17 no-host bin-true 795 298 514 8.8 osh-native
25 no-host bin-true 813 314 514 9.0 osh-nosouffle
33 no-host bin-true 657 316 357 5.1 osh-static
2 no-host configure.cpython 13,745 7,558 6,575 34.5 bash
10 no-host configure.cpython 13,827 7,653 6,577 34.7 dash
18 no-host configure.cpython 13,495 7,181 6,595 34.5 osh-native
26 no-host configure.cpython 13,505 7,130 6,667 34.4 osh-nosouffle
34 no-host configure.cpython 12,971 7,097 6,115 34.7 osh-static
4 no-host configure.ocaml 3,672 1,506 1,206 28.8 bash
12 no-host configure.ocaml 3,622 1,493 1,153 28.7 dash
20 no-host configure.ocaml 3,692 1,493 1,238 28.6 osh-native
28 no-host configure.ocaml 3,696 1,506 1,231 28.7 osh-nosouffle
36 no-host configure.ocaml 3,677 1,514 1,195 28.7 osh-static
5 no-host configure.tcc 45 21 25 26.1 bash
13 no-host configure.tcc 41 22 20 26.1 dash
21 no-host configure.tcc 47 29 18 26.1 osh-native
29 no-host configure.tcc 48 26 22 26.3 osh-nosouffle
37 no-host configure.tcc 43 22 21 26.2 osh-static
3 no-host configure.util-linux 12,502 6,604 6,367 39.6 bash
11 no-host configure.util-linux 13,255 6,431 7,313 39.6 dash
19 no-host configure.util-linux 12,458 6,195 6,489 39.6 osh-native
27 no-host configure.util-linux 12,494 6,151 6,568 39.5 osh-nosouffle
35 no-host configure.util-linux 12,072 6,189 6,099 39.7 osh-static
6 no-host configure.yash 1,684 950 740 33.4 bash
14 no-host configure.yash 1,646 923 725 33.4 dash
22 no-host configure.yash 1,697 956 743 33.4 osh-native
30 no-host configure.yash 1,701 986 717 33.4 osh-nosouffle
38 no-host configure.yash 1,680 963 719 33.4 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 3 1 2 6.6 osh-native
24 no-host hello-world 3 1 2 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,396 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,167 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,278 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,385 0 0 0 16 0 38 1 osh-nosouffle
39 no-host abuild-print-help 2,844 0 0 0 8 0 38 0 osh-static
1 no-host bin-true 101,484 0 0 0 8 0 1,997 51 bash
9 no-host bin-true 49,439 0 0 0 8 0 2,992 59 dash
17 no-host bin-true 129,906 0 0 0 16 0 1,997 80 osh-native
25 no-host bin-true 136,359 0 0 0 16 0 1,996 90 osh-nosouffle
33 no-host bin-true 111,743 0 0 0 8 0 1,999 65 osh-static
2 no-host configure.cpython 1,621,220 0 0 0 25,272 0 14,080 986 bash
10 no-host configure.cpython 1,635,198 0 0 0 25,272 0 14,119 1,002 dash
18 no-host configure.cpython 1,588,745 0 0 0 25,280 0 11,304 812 osh-native
26 no-host configure.cpython 1,613,391 0 0 0 25,280 0 11,309 1,001 osh-nosouffle
34 no-host configure.cpython 1,523,189 0 0 0 25,272 0 11,306 879 osh-static
4 no-host configure.ocaml 299,466 0 0 0 4,432 0 2,024 182 bash
12 no-host configure.ocaml 280,537 0 0 0 4,432 0 2,110 198 dash
20 no-host configure.ocaml 305,477 0 0 0 4,440 0 2,000 236 osh-native
28 no-host configure.ocaml 307,181 0 0 0 4,440 0 2,002 216 osh-nosouffle
36 no-host configure.ocaml 300,231 0 0 0 4,432 0 2,000 227 osh-static
5 no-host configure.tcc 5,225 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,195 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,604 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,664 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,134 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,544,516 0 0 0 35,944 0 18,979 1,085 bash
11 no-host configure.util-linux 1,696,920 1 0 496 35,936 0 17,089 1,255 dash
19 no-host configure.util-linux 1,516,512 1 0 0 35,952 0 16,193 889 osh-native
27 no-host configure.util-linux 1,520,903 0 0 0 35,944 0 16,161 905 osh-nosouffle
35 no-host configure.util-linux 1,447,637 1 0 0 35,936 0 16,206 993 osh-static
6 no-host configure.yash 173,298 0 0 0 3,616 0 879 107 bash
14 no-host configure.yash 159,530 0 0 0 3,616 0 1,000 101 dash
22 no-host configure.yash 176,590 0 0 0 3,632 0 857 102 osh-native
30 no-host configure.yash 176,971 0 0 0 3,624 0 857 109 osh-nosouffle
38 no-host configure.yash 172,923 0 0 0 3,616 0 855 112 osh-static
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 393 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 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-fb3afb32
osh-nosouffle osh-e8ec4157
osh-static osh-static-c950f8b9
host label host id
no-host no-host-9c670df1