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 18 1.29 1.15
bin-true no-host 620 436 807 809 648 1.30 1.05
configure.cpython no-host 13,567 13,612 13,226 13,301 12,692 0.97 0.94
configure.ocaml no-host 3,614 3,553 3,655 3,655 3,613 1.01 1.00
configure.tcc no-host 45 41 47 46 43 1.03 0.95
configure.util-linux no-host 12,296 13,068 12,273 12,323 11,903 1.00 0.97
configure.yash no-host 1,669 1,616 1,662 1,661 1,640 1.00 0.98
hello-world no-host 1 1 3 3 1 2.48 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,393 1,155 3,331 3,387 2,798 1.39 1.17
bin-true no-host 101,408 49,411 137,589 137,549 111,318 1.36 1.10
configure.cpython no-host 1,623,563 1,639,857 1,594,718 1,615,038 1,521,926 0.98 0.94
configure.ocaml no-host 298,515 280,790 305,688 307,778 299,741 1.02 1.00
configure.tcc no-host 5,204 4,208 5,556 5,669 5,121 1.07 0.98
configure.util-linux no-host 1,539,616 1,698,882 1,506,113 1,506,700 1,450,118 0.98 0.94
configure.yash no-host 173,380 159,548 176,941 177,271 172,724 1.02 1.00
hello-world no-host 153 86 387 396 180 2.53 1.18

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.4 1.97 1.32
bin-true no-host 3.3 1.7 8.8 9.2 5.1 2.68 1.56
configure.cpython no-host 34.5 34.4 34.4 34.5 34.5 1.00 1.00
configure.ocaml no-host 28.6 28.6 28.8 28.7 28.7 1.01 1.00
configure.tcc no-host 26.4 26.0 26.0 26.1 26.2 0.99 0.99
configure.util-linux no-host 39.8 39.9 39.5 39.6 39.6 0.99 1.00
configure.yash no-host 33.4 33.3 33.4 33.3 33.4 1.00 1.00
hello-world no-host 3.1 1.6 6.4 6.9 3.3 2.04 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.4 3,896 3,896 0 716 1,916 1,264 2 0 50,000 0
bin-true no-host 807 1 2 3.5 8.8 152,882 11,691 2,964 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 13,226 1 63 14.8 34.4 1,753,364 36,445 28,935 93,071 872,316 787,977 25,789 61 50,000 0
configure.util-linux no-host 12,273 3 64 21.6 39.5 2,709,910 37,457 66,323 119,739 1,296,433 1,293,738 32,527 42 132,646 1
configure.ocaml no-host 3,655 1 2 2.8 28.8 149,932 12,652 6,557 9,207 70,540 70,185 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.0 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,662 1 2 2.7 33.4 143,736 11,764 6,618 7,160 70,796 65,780 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 3.0 9.6 117,251 65,784 41,994 4,969 54,631 57,651 277 3 83,988 1
hello-world no-host 3 0 0 0.3 6.9 3,895 3,895 0 715 1,916 1,264 2 0 50,000 0
bin-true no-host 809 1 2 3.5 9.2 152,882 11,695 2,968 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 13,301 1 65 14.9 34.5 1,753,363 36,450 28,940 93,070 872,316 787,977 25,789 61 50,000 0
configure.util-linux no-host 12,323 3 64 21.6 39.6 2,709,910 37,463 66,329 119,739 1,296,433 1,293,738 32,527 42 132,658 1
configure.ocaml no-host 3,655 1 2 2.8 28.7 149,932 12,657 6,562 9,207 70,540 70,185 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.1 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,661 1 2 2.7 33.3 143,736 11,768 6,622 7,160 70,796 65,780 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 10.0 117,251 65,788 41,998 4,969 54,631 57,651 277 3 83,996 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 7 10 4.8 bash
15 no-host abuild-print-help 9 4 5 3.8 dash
23 no-host abuild-print-help 20 8 13 9.6 osh-native
31 no-host abuild-print-help 21 13 9 10.0 osh-nosouffle
39 no-host abuild-print-help 18 14 4 6.4 osh-static
1 no-host bin-true 620 312 345 3.3 bash
9 no-host bin-true 436 273 167 1.7 dash
17 no-host bin-true 807 298 525 8.8 osh-native
25 no-host bin-true 809 315 511 9.2 osh-nosouffle
33 no-host bin-true 648 324 339 5.1 osh-static
2 no-host configure.cpython 13,567 7,505 6,440 34.5 bash
10 no-host configure.cpython 13,612 7,453 6,552 34.4 dash
18 no-host configure.cpython 13,226 7,042 6,452 34.4 osh-native
26 no-host configure.cpython 13,301 7,065 6,522 34.5 osh-nosouffle
34 no-host configure.cpython 12,692 7,037 5,884 34.5 osh-static
4 no-host configure.ocaml 3,614 1,472 1,179 28.6 bash
12 no-host configure.ocaml 3,553 1,448 1,129 28.6 dash
20 no-host configure.ocaml 3,655 1,464 1,229 28.8 osh-native
28 no-host configure.ocaml 3,655 1,469 1,226 28.7 osh-nosouffle
36 no-host configure.ocaml 3,613 1,422 1,222 28.7 osh-static
5 no-host configure.tcc 45 26 20 26.4 bash
13 no-host configure.tcc 41 26 15 26.0 dash
21 no-host configure.tcc 47 23 24 26.0 osh-native
29 no-host configure.tcc 46 26 21 26.1 osh-nosouffle
37 no-host configure.tcc 43 25 18 26.2 osh-static
3 no-host configure.util-linux 12,296 6,502 6,253 39.8 bash
11 no-host configure.util-linux 13,068 6,456 7,095 39.9 dash
19 no-host configure.util-linux 12,273 6,126 6,363 39.5 osh-native
27 no-host configure.util-linux 12,323 6,134 6,404 39.6 osh-nosouffle
35 no-host configure.util-linux 11,903 6,004 6,101 39.6 osh-static
6 no-host configure.yash 1,669 907 771 33.4 bash
14 no-host configure.yash 1,616 926 692 33.3 dash
22 no-host configure.yash 1,662 961 704 33.4 osh-native
30 no-host configure.yash 1,661 924 741 33.3 osh-nosouffle
38 no-host configure.yash 1,640 930 712 33.4 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 3 2 1 6.4 osh-native
24 no-host hello-world 3 0 3 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,393 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,155 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,331 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,387 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,798 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 101,408 0 0 0 8 0 1,998 84 bash
9 no-host bin-true 49,411 0 0 0 8 0 2,995 51 dash
17 no-host bin-true 137,589 0 0 0 16 0 1,996 80 osh-native
25 no-host bin-true 137,549 0 0 0 16 0 1,998 59 osh-nosouffle
33 no-host bin-true 111,318 0 0 0 8 0 2,000 65 osh-static
2 no-host configure.cpython 1,623,563 0 0 0 25,272 0 14,089 1,011 bash
10 no-host configure.cpython 1,639,857 0 0 0 25,272 0 14,110 1,061 dash
18 no-host configure.cpython 1,594,718 0 0 0 25,280 0 11,305 842 osh-native
26 no-host configure.cpython 1,615,038 0 0 0 25,280 0 11,303 848 osh-nosouffle
34 no-host configure.cpython 1,521,926 1 0 0 25,272 0 11,308 837 osh-static
4 no-host configure.ocaml 298,515 0 0 0 4,432 0 2,021 194 bash
12 no-host configure.ocaml 280,790 0 0 0 4,432 0 2,109 212 dash
20 no-host configure.ocaml 305,688 0 0 0 4,440 0 2,001 225 osh-native
28 no-host configure.ocaml 307,778 0 0 0 4,440 0 2,003 192 osh-nosouffle
36 no-host configure.ocaml 299,741 0 0 0 4,432 0 2,000 203 osh-static
5 no-host configure.tcc 5,204 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,208 0 0 0 88 0 51 0 dash
21 no-host configure.tcc 5,556 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,669 0 0 0 96 0 45 4 osh-nosouffle
37 no-host configure.tcc 5,121 0 0 0 88 0 45 4 osh-static
3 no-host configure.util-linux 1,539,616 0 0 0 35,944 0 18,968 1,074 bash
11 no-host configure.util-linux 1,698,882 0 0 0 35,936 0 17,058 1,211 dash
19 no-host configure.util-linux 1,506,113 0 0 0 35,952 0 16,177 829 osh-native
27 no-host configure.util-linux 1,506,700 2 0 0 35,944 0 16,226 971 osh-nosouffle
35 no-host configure.util-linux 1,450,118 1 0 0 35,944 0 16,155 835 osh-static
6 no-host configure.yash 173,380 0 0 0 3,616 0 880 89 bash
14 no-host configure.yash 159,548 0 0 0 3,624 0 1,003 110 dash
22 no-host configure.yash 176,941 0 0 8 3,624 0 859 102 osh-native
30 no-host configure.yash 177,271 0 0 0 3,624 0 858 88 osh-nosouffle
38 no-host configure.yash 172,724 0 0 0 3,616 0 860 94 osh-static
0 no-host hello-world 153 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 387 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 396 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 180 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-ba6b7c43
osh-nosouffle osh-8acc4bfe
osh-static osh-static-5ffcf0e0
host label host id
no-host no-host-9c670df1