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 13 7 17 19 16 1.34 1.22
bin-true no-host 456 315 605 616 493 1.33 1.08
configure.cpython no-host 11,882 11,905 11,637 11,642 11,090 0.98 0.93
configure.ocaml no-host 3,352 3,282 3,385 3,348 3,282 1.01 0.98
configure.tcc no-host 39 35 41 39 36 1.05 0.93
configure.util-linux no-host 10,669 11,129 10,577 10,582 10,205 0.99 0.96
configure.yash no-host 1,480 1,416 1,478 1,470 1,412 1.00 0.95
hello-world no-host 1 1 2 2 1 2.33 1.06

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,406 1,190 3,334 3,457 2,801 1.39 1.16
bin-true no-host 103,902 49,832 133,028 134,029 110,399 1.28 1.06
configure.cpython no-host 1,626,966 1,644,221 1,595,781 1,612,907 1,525,481 0.98 0.94
configure.ocaml no-host 299,682 281,546 306,474 306,792 301,176 1.02 1.00
configure.tcc no-host 5,255 4,241 5,608 5,681 5,147 1.07 0.98
configure.util-linux no-host 1,546,891 1,710,393 1,506,372 1,515,430 1,461,122 0.97 0.94
configure.yash no-host 173,998 159,895 176,668 177,720 173,348 1.02 1.00
hello-world no-host 152 88 393 397 183 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 4.1 9.6 10.1 6.4 1.97 1.32
bin-true no-host 3.4 1.6 8.8 9.2 5.2 2.58 1.54
configure.cpython no-host 34.7 34.3 34.8 34.6 34.4 1.00 0.99
configure.ocaml no-host 28.7 28.7 28.7 28.9 28.7 1.00 1.00
configure.tcc no-host 26.4 26.3 26.3 26.1 26.1 1.00 0.99
configure.util-linux no-host 39.7 39.7 39.6 39.6 39.9 1.00 1.00
configure.yash no-host 33.4 33.4 33.1 33.5 33.4 0.99 1.00
hello-world no-host 3.3 1.6 6.6 6.8 3.4 2.00 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 2 0 0 0.3 6.6 3,896 3,896 0 716 1,916 1,264 2 0 50,000 0
bin-true no-host 605 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 11,637 2 61 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 10,577 3 63 21.6 39.6 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,385 1 2 2.8 28.7 149,932 12,652 6,557 9,207 70,540 70,185 1,693 3 50,000 0
configure.tcc no-host 41 0 0 1.4 26.3 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,478 1 2 2.7 33.1 143,736 11,764 6,618 7,160 70,796 65,780 2,095 3 50,000 0
abuild-print-help no-host 17 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 2 0 0 0.3 6.8 3,895 3,895 0 715 1,916 1,264 2 0 50,000 0
bin-true no-host 616 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 11,642 1 60 14.9 34.6 1,753,363 36,450 28,940 93,070 872,316 787,977 25,789 61 50,000 0
configure.util-linux no-host 10,582 3 63 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,348 1 2 2.8 28.9 149,932 12,657 6,562 9,207 70,540 70,185 1,693 3 50,000 0
configure.tcc no-host 39 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,470 1 2 2.7 33.5 143,736 11,768 6,622 7,160 70,796 65,780 2,095 3 50,000 0
abuild-print-help no-host 19 1 2 3.0 10.1 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 13 6 8 4.8 bash
15 no-host abuild-print-help 7 3 4 4.1 dash
23 no-host abuild-print-help 17 10 8 9.6 osh-native
31 no-host abuild-print-help 19 13 6 10.1 osh-nosouffle
39 no-host abuild-print-help 16 13 3 6.4 osh-static
1 no-host bin-true 456 286 202 3.4 bash
9 no-host bin-true 315 226 89 1.6 dash
17 no-host bin-true 605 317 299 8.8 osh-native
25 no-host bin-true 616 319 309 9.2 osh-nosouffle
33 no-host bin-true 493 302 204 5.2 osh-static
2 no-host configure.cpython 11,882 7,707 4,433 34.7 bash
10 no-host configure.cpython 11,905 7,737 4,435 34.3 dash
18 no-host configure.cpython 11,637 7,310 4,482 34.8 osh-native
26 no-host configure.cpython 11,642 7,287 4,523 34.6 osh-nosouffle
34 no-host configure.cpython 11,090 7,167 4,059 34.4 osh-static
4 no-host configure.ocaml 3,352 1,513 851 28.7 bash
12 no-host configure.ocaml 3,282 1,491 784 28.7 dash
20 no-host configure.ocaml 3,385 1,534 855 28.7 osh-native
28 no-host configure.ocaml 3,348 1,498 860 28.9 osh-nosouffle
36 no-host configure.ocaml 3,282 1,483 803 28.7 osh-static
5 no-host configure.tcc 39 22 18 26.4 bash
13 no-host configure.tcc 35 26 8 26.3 dash
21 no-host configure.tcc 41 24 17 26.3 osh-native
29 no-host configure.tcc 39 26 14 26.1 osh-nosouffle
37 no-host configure.tcc 36 24 12 26.1 osh-static
3 no-host configure.util-linux 10,669 6,760 4,242 39.7 bash
11 no-host configure.util-linux 11,129 6,699 4,787 39.7 dash
19 no-host configure.util-linux 10,577 6,266 4,431 39.6 osh-native
27 no-host configure.util-linux 10,582 6,345 4,364 39.6 osh-nosouffle
35 no-host configure.util-linux 10,205 6,209 4,113 39.9 osh-static
6 no-host configure.yash 1,480 952 526 33.4 bash
14 no-host configure.yash 1,416 917 484 33.4 dash
22 no-host configure.yash 1,478 972 497 33.1 osh-native
30 no-host configure.yash 1,470 932 526 33.5 osh-nosouffle
38 no-host configure.yash 1,412 915 490 33.4 osh-static
0 no-host hello-world 1 1 0 3.3 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 2 2 0 6.6 osh-native
24 no-host hello-world 2 2 0 6.8 osh-nosouffle
32 no-host hello-world 1 1 0 3.4 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,406 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,190 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,334 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,457 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,801 0 0 0 8 0 39 1 osh-static
1 no-host bin-true 103,902 0 0 0 8 0 1,997 62 bash
9 no-host bin-true 49,832 0 0 0 8 0 2,995 49 dash
17 no-host bin-true 133,028 0 0 0 16 0 1,996 71 osh-native
25 no-host bin-true 134,029 0 0 0 16 0 1,996 70 osh-nosouffle
33 no-host bin-true 110,399 0 0 0 8 0 1,996 52 osh-static
2 no-host configure.cpython 1,626,966 0 0 0 25,272 0 14,057 966 bash
10 no-host configure.cpython 1,644,221 0 0 0 25,280 0 14,097 948 dash
18 no-host configure.cpython 1,595,781 0 0 0 25,280 0 11,312 836 osh-native
26 no-host configure.cpython 1,612,907 0 0 0 25,280 0 11,320 826 osh-nosouffle
34 no-host configure.cpython 1,525,481 0 0 0 25,272 0 11,276 838 osh-static
4 no-host configure.ocaml 299,682 0 0 0 4,432 0 2,019 179 bash
12 no-host configure.ocaml 281,546 0 0 0 4,432 0 2,112 186 dash
20 no-host configure.ocaml 306,474 0 0 0 4,440 0 1,999 212 osh-native
28 no-host configure.ocaml 306,792 0 0 0 4,440 0 2,002 200 osh-nosouffle
36 no-host configure.ocaml 301,176 0 0 0 4,432 0 2,001 212 osh-static
5 no-host configure.tcc 5,255 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,241 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,608 0 0 0 96 0 44 2 osh-native
29 no-host configure.tcc 5,681 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,147 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,546,891 0 0 232 35,944 0 18,830 961 bash
11 no-host configure.util-linux 1,710,393 0 0 0 35,936 0 17,141 1,079 dash
19 no-host configure.util-linux 1,506,372 3 0 0 35,952 0 16,177 845 osh-native
27 no-host configure.util-linux 1,515,430 2 0 0 35,952 0 16,207 824 osh-nosouffle
35 no-host configure.util-linux 1,461,122 1 0 0 35,936 0 16,168 869 osh-static
6 no-host configure.yash 173,998 0 0 0 3,616 0 878 87 bash
14 no-host configure.yash 159,895 0 0 0 3,616 0 1,003 101 dash
22 no-host configure.yash 176,668 0 0 0 3,624 0 855 74 osh-native
30 no-host configure.yash 177,720 0 0 0 3,624 0 854 96 osh-nosouffle
38 no-host configure.yash 173,348 0 0 0 3,616 0 855 74 osh-static
0 no-host hello-world 152 0 0 0 8 0 1 1 bash
8 no-host hello-world 88 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 397 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 183 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-72ba7db4
osh-nosouffle osh-ecf86026
osh-static osh-static-5a55926d
host label host id
no-host no-host-9c670df1