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.14
bin-true no-host 618 445 817 817 653 1.32 1.06
configure.cpython no-host 13,862 13,882 13,513 13,584 13,009 0.97 0.94
configure.ocaml no-host 3,680 3,612 3,743 3,712 3,692 1.02 1.00
configure.tcc no-host 46 42 47 48 43 1.02 0.94
configure.util-linux no-host 12,580 13,341 12,495 12,681 12,188 0.99 0.97
configure.yash no-host 1,696 1,650 1,702 1,707 1,684 1.00 0.99
hello-world no-host 1 1 3 3 1 2.45 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,419 1,155 3,313 3,461 2,800 1.37 1.16
bin-true no-host 99,458 49,401 137,890 138,562 110,269 1.39 1.11
configure.cpython no-host 1,619,154 1,630,136 1,593,157 1,610,407 1,521,619 0.98 0.94
configure.ocaml no-host 298,841 280,514 305,382 307,018 299,839 1.02 1.00
configure.tcc no-host 5,234 4,215 5,593 5,725 5,115 1.07 0.98
configure.util-linux no-host 1,537,426 1,705,865 1,498,713 1,510,616 1,450,519 0.97 0.94
configure.yash no-host 173,259 159,526 176,182 177,515 172,708 1.02 1.00
hello-world no-host 150 87 389 399 180 2.59 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.4 1.97 1.32
bin-true no-host 3.3 1.6 8.7 9.2 5.1 2.64 1.56
configure.cpython no-host 34.5 34.5 34.8 34.3 34.6 1.01 1.00
configure.ocaml no-host 28.8 28.6 28.5 28.7 28.7 0.99 1.00
configure.tcc no-host 26.0 26.0 26.0 26.2 26.2 1.00 1.01
configure.util-linux no-host 39.7 39.6 39.7 39.6 39.7 1.00 1.00
configure.yash no-host 33.1 33.3 33.3 33.4 33.3 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 817 1 2 3.5 8.7 152,882 11,691 2,964 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 13,513 1 65 14.8 34.8 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,495 3 66 21.6 39.7 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,743 1 2 2.8 28.5 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,702 1 2 2.7 33.3 143,736 11,764 6,618 7,160 70,796 65,780 2,095 3 50,000 0
abuild-print-help no-host 21 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 817 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,584 1 66 14.9 34.3 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,681 3 65 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,712 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 48 0 0 1.4 26.2 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,707 1 2 2.7 33.4 143,736 11,768 6,622 7,160 70,796 65,780 2,095 3 50,000 0
abuild-print-help no-host 22 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 9 4.8 bash
15 no-host abuild-print-help 9 4 5 3.9 dash
23 no-host abuild-print-help 21 10 11 9.6 osh-native
31 no-host abuild-print-help 22 14 9 10.0 osh-nosouffle
39 no-host abuild-print-help 18 12 7 6.4 osh-static
1 no-host bin-true 618 308 350 3.3 bash
9 no-host bin-true 445 272 179 1.6 dash
17 no-host bin-true 817 313 521 8.7 osh-native
25 no-host bin-true 817 314 521 9.2 osh-nosouffle
33 no-host bin-true 653 312 358 5.1 osh-static
2 no-host configure.cpython 13,862 7,731 6,521 34.5 bash
10 no-host configure.cpython 13,882 7,714 6,570 34.5 dash
18 no-host configure.cpython 13,513 7,128 6,663 34.8 osh-native
26 no-host configure.cpython 13,584 7,193 6,680 34.3 osh-nosouffle
34 no-host configure.cpython 13,009 7,164 6,081 34.6 osh-static
4 no-host configure.ocaml 3,680 1,501 1,219 28.8 bash
12 no-host configure.ocaml 3,612 1,437 1,198 28.6 dash
20 no-host configure.ocaml 3,743 1,542 1,238 28.5 osh-native
28 no-host configure.ocaml 3,712 1,473 1,282 28.7 osh-nosouffle
36 no-host configure.ocaml 3,692 1,506 1,218 28.7 osh-static
5 no-host configure.tcc 46 25 21 26.0 bash
13 no-host configure.tcc 42 24 18 26.0 dash
21 no-host configure.tcc 47 26 21 26.0 osh-native
29 no-host configure.tcc 48 25 23 26.2 osh-nosouffle
37 no-host configure.tcc 43 20 24 26.2 osh-static
3 no-host configure.util-linux 12,580 6,595 6,462 39.7 bash
11 no-host configure.util-linux 13,341 6,567 7,275 39.6 dash
19 no-host configure.util-linux 12,495 6,183 6,539 39.7 osh-native
27 no-host configure.util-linux 12,681 6,292 6,607 39.6 osh-nosouffle
35 no-host configure.util-linux 12,188 6,184 6,219 39.7 osh-static
6 no-host configure.yash 1,696 927 779 33.1 bash
14 no-host configure.yash 1,650 963 689 33.3 dash
22 no-host configure.yash 1,702 948 758 33.3 osh-native
30 no-host configure.yash 1,707 965 744 33.4 osh-nosouffle
38 no-host configure.yash 1,684 970 717 33.3 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 1 2 6.4 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,419 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,155 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,313 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,461 0 0 0 16 0 39 2 osh-nosouffle
39 no-host abuild-print-help 2,800 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 99,458 0 0 0 8 0 1,994 52 bash
9 no-host bin-true 49,401 0 0 0 8 0 2,993 55 dash
17 no-host bin-true 137,890 0 0 0 16 0 1,998 85 osh-native
25 no-host bin-true 138,562 0 0 0 16 0 1,996 59 osh-nosouffle
33 no-host bin-true 110,269 0 0 0 8 0 1,998 93 osh-static
2 no-host configure.cpython 1,619,154 0 0 0 25,272 0 14,091 1,057 bash
10 no-host configure.cpython 1,630,136 0 0 0 25,272 0 14,124 994 dash
18 no-host configure.cpython 1,593,157 0 0 0 25,280 0 11,290 821 osh-native
26 no-host configure.cpython 1,610,407 0 0 0 25,280 0 11,287 823 osh-nosouffle
34 no-host configure.cpython 1,521,619 0 0 0 25,272 0 11,301 833 osh-static
4 no-host configure.ocaml 298,841 0 0 0 4,432 0 2,017 207 bash
12 no-host configure.ocaml 280,514 0 0 0 4,432 0 2,110 189 dash
20 no-host configure.ocaml 305,382 0 0 8 4,440 0 2,002 255 osh-native
28 no-host configure.ocaml 307,018 0 0 0 4,440 0 1,999 197 osh-nosouffle
36 no-host configure.ocaml 299,839 0 0 0 4,432 0 2,000 215 osh-static
5 no-host configure.tcc 5,234 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,215 0 0 0 88 0 51 2 dash
21 no-host configure.tcc 5,593 0 0 0 96 0 45 1 osh-native
29 no-host configure.tcc 5,725 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,115 0 0 0 88 0 44 2 osh-static
3 no-host configure.util-linux 1,537,426 0 0 0 35,944 0 18,975 1,044 bash
11 no-host configure.util-linux 1,705,865 1 0 0 35,936 0 17,108 1,145 dash
19 no-host configure.util-linux 1,498,713 0 0 0 35,952 0 16,138 885 osh-native
27 no-host configure.util-linux 1,510,616 3 0 0 35,944 0 16,227 966 osh-nosouffle
35 no-host configure.util-linux 1,450,519 0 0 0 35,944 0 16,130 916 osh-static
6 no-host configure.yash 173,259 0 0 0 3,616 0 879 99 bash
14 no-host configure.yash 159,526 0 0 0 3,624 0 1,004 101 dash
22 no-host configure.yash 176,182 0 0 0 3,624 0 858 92 osh-native
30 no-host configure.yash 177,515 0 0 0 3,632 0 857 83 osh-nosouffle
38 no-host configure.yash 172,708 0 0 0 3,624 0 855 100 osh-static
0 no-host hello-world 150 0 0 0 8 0 0 0 bash
8 no-host hello-world 87 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 399 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-bd221a59
osh-nosouffle osh-cb69fdb1
osh-static osh-static-c290b9d9
host label host id
no-host no-host-9c670df1