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.15
bin-true no-host 628 448 818 830 667 1.30 1.06
configure.cpython no-host 14,120 14,325 13,838 14,109 13,554 0.98 0.96
configure.ocaml no-host 3,773 3,683 3,779 3,815 3,790 1.00 1.00
configure.tcc no-host 48 42 49 49 46 1.03 0.97
configure.util-linux no-host 12,859 13,723 12,849 13,034 12,624 1.00 0.98
configure.yash no-host 1,764 1,692 1,806 1,779 1,746 1.02 0.99
hello-world no-host 1 1 3 3 1 2.35 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,430 1,179 3,339 3,443 2,800 1.37 1.15
bin-true no-host 102,482 49,415 136,542 139,547 110,382 1.33 1.08
configure.cpython no-host 1,628,545 1,638,328 1,587,852 1,614,600 1,519,908 0.98 0.93
configure.ocaml no-host 299,084 280,466 305,569 307,920 299,738 1.02 1.00
configure.tcc no-host 5,221 4,209 5,609 5,698 5,120 1.07 0.98
configure.util-linux no-host 1,534,366 1,703,546 1,507,979 1,511,148 1,449,545 0.98 0.94
configure.yash no-host 173,328 159,636 176,705 176,840 172,778 1.02 1.00
hello-world no-host 152 86 388 399 181 2.55 1.19

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.4 10.0 6.4 1.95 1.32
bin-true no-host 3.3 1.6 8.4 9.0 5.1 2.56 1.56
configure.cpython no-host 34.5 34.5 34.4 34.4 34.5 1.00 1.00
configure.ocaml no-host 28.7 28.7 28.8 28.6 28.7 1.00 1.00
configure.tcc no-host 26.1 26.3 26.2 26.2 26.2 1.00 1.00
configure.util-linux no-host 39.6 39.5 39.6 39.5 39.6 1.00 1.00
configure.yash no-host 33.3 33.4 33.4 33.4 33.4 1.00 1.00
hello-world no-host 3.1 1.4 6.4 7.1 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 818 1 2 3.5 8.4 152,882 11,691 2,964 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 13,838 1 69 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,849 3 69 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,779 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 49 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,806 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 21 1 2 3.0 9.4 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 7.1 3,895 3,895 0 715 1,916 1,264 2 0 50,000 0
bin-true no-host 830 1 2 3.5 9.0 152,882 11,695 2,968 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 14,109 1 70 14.9 34.4 1,753,363 36,450 28,940 93,070 872,316 787,977 25,789 61 50,000 0
configure.util-linux no-host 13,034 3 69 21.6 39.5 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,815 1 2 2.8 28.6 149,932 12,657 6,562 9,207 70,540 70,185 1,693 3 50,000 0
configure.tcc no-host 49 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,779 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 6 10 4.8 bash
15 no-host abuild-print-help 9 3 7 3.9 dash
23 no-host abuild-print-help 21 10 11 9.4 osh-native
31 no-host abuild-print-help 22 10 13 10.0 osh-nosouffle
39 no-host abuild-print-help 18 10 9 6.4 osh-static
1 no-host bin-true 628 314 352 3.3 bash
9 no-host bin-true 448 264 191 1.6 dash
17 no-host bin-true 818 308 528 8.4 osh-native
25 no-host bin-true 830 296 551 9.0 osh-nosouffle
33 no-host bin-true 667 311 373 5.1 osh-static
2 no-host configure.cpython 14,120 7,722 6,791 34.5 bash
10 no-host configure.cpython 14,325 7,834 6,903 34.5 dash
18 no-host configure.cpython 13,838 7,356 6,762 34.4 osh-native
26 no-host configure.cpython 14,109 7,381 7,026 34.4 osh-nosouffle
34 no-host configure.cpython 13,554 7,410 6,391 34.5 osh-static
4 no-host configure.ocaml 3,773 1,511 1,304 28.7 bash
12 no-host configure.ocaml 3,683 1,525 1,182 28.7 dash
20 no-host configure.ocaml 3,779 1,508 1,310 28.8 osh-native
28 no-host configure.ocaml 3,815 1,521 1,336 28.6 osh-nosouffle
36 no-host configure.ocaml 3,790 1,557 1,265 28.7 osh-static
5 no-host configure.tcc 48 27 21 26.1 bash
13 no-host configure.tcc 42 26 17 26.3 dash
21 no-host configure.tcc 49 29 20 26.2 osh-native
29 no-host configure.tcc 49 20 30 26.2 osh-nosouffle
37 no-host configure.tcc 46 26 21 26.2 osh-static
3 no-host configure.util-linux 12,859 6,707 6,628 39.6 bash
11 no-host configure.util-linux 13,723 6,775 7,452 39.5 dash
19 no-host configure.util-linux 12,849 6,265 6,806 39.6 osh-native
27 no-host configure.util-linux 13,034 6,328 6,940 39.5 osh-nosouffle
35 no-host configure.util-linux 12,624 6,404 6,439 39.6 osh-static
6 no-host configure.yash 1,764 983 790 33.3 bash
14 no-host configure.yash 1,692 973 720 33.4 dash
22 no-host configure.yash 1,806 987 821 33.4 osh-native
30 no-host configure.yash 1,779 1,040 742 33.4 osh-nosouffle
38 no-host configure.yash 1,746 966 782 33.4 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 3 1 2 6.4 osh-native
24 no-host hello-world 3 2 1 7.1 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,430 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,179 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,339 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,443 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,800 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 102,482 0 0 0 8 0 1,992 62 bash
9 no-host bin-true 49,415 0 0 0 8 0 2,992 51 dash
17 no-host bin-true 136,542 0 0 0 16 0 1,996 76 osh-native
25 no-host bin-true 139,547 0 0 0 16 0 1,993 85 osh-nosouffle
33 no-host bin-true 110,382 0 0 0 8 0 1,998 84 osh-static
2 no-host configure.cpython 1,628,545 0 0 0 25,272 0 14,077 1,008 bash
10 no-host configure.cpython 1,638,328 0 0 0 25,272 0 14,119 1,022 dash
18 no-host configure.cpython 1,587,852 0 0 0 25,280 0 11,284 809 osh-native
26 no-host configure.cpython 1,614,600 0 0 0 25,280 0 11,288 883 osh-nosouffle
34 no-host configure.cpython 1,519,908 0 0 0 25,272 0 11,295 1,016 osh-static
4 no-host configure.ocaml 299,084 0 0 0 4,432 0 2,019 182 bash
12 no-host configure.ocaml 280,466 0 0 0 4,432 0 2,108 193 dash
20 no-host configure.ocaml 305,569 0 0 8 4,440 0 2,000 247 osh-native
28 no-host configure.ocaml 307,920 0 0 0 4,440 0 2,001 222 osh-nosouffle
36 no-host configure.ocaml 299,738 0 0 0 4,432 0 2,000 224 osh-static
5 no-host configure.tcc 5,221 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,209 0 0 0 88 0 51 2 dash
21 no-host configure.tcc 5,609 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,698 0 0 0 96 0 44 2 osh-nosouffle
37 no-host configure.tcc 5,120 0 0 0 88 0 44 2 osh-static
3 no-host configure.util-linux 1,534,366 0 0 0 35,944 0 19,018 1,127 bash
11 no-host configure.util-linux 1,703,546 0 0 0 35,936 0 17,084 1,172 dash
19 no-host configure.util-linux 1,507,979 0 0 0 35,952 0 16,185 949 osh-native
27 no-host configure.util-linux 1,511,148 0 0 0 35,944 0 16,182 945 osh-nosouffle
35 no-host configure.util-linux 1,449,545 0 0 0 35,936 0 16,167 992 osh-static
6 no-host configure.yash 173,328 0 0 0 3,616 0 880 97 bash
14 no-host configure.yash 159,636 0 0 0 3,616 0 1,001 107 dash
22 no-host configure.yash 176,705 0 0 0 3,632 0 857 164 osh-native
30 no-host configure.yash 176,840 0 0 0 3,624 0 858 94 osh-nosouffle
38 no-host configure.yash 172,778 0 0 0 3,624 0 857 105 osh-static
0 no-host hello-world 152 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 388 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 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-1624663d
osh-nosouffle osh-dbf02462
osh-static osh-static-27466bd2
host label host id
no-host no-host-9c670df1