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 21 18 1.32 1.15
bin-true no-host 627 445 808 824 658 1.29 1.05
configure.cpython no-host 13,947 13,987 13,647 13,650 13,144 0.98 0.94
configure.ocaml no-host 3,694 3,638 3,728 3,743 3,699 1.01 1.00
configure.tcc no-host 46 41 47 48 44 1.01 0.95
configure.util-linux no-host 12,605 13,497 12,676 12,724 12,260 1.01 0.97
configure.yash no-host 1,709 1,670 1,718 1,726 1,685 1.01 0.99
hello-world no-host 1 1 3 3 1 2.30 0.98

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,404 1,151 3,310 3,408 2,798 1.38 1.16
bin-true no-host 101,454 49,430 133,530 136,637 110,002 1.32 1.08
configure.cpython no-host 1,624,661 1,639,472 1,593,288 1,606,600 1,521,636 0.98 0.94
configure.ocaml no-host 298,537 280,553 305,004 306,651 300,297 1.02 1.01
configure.tcc no-host 5,218 4,226 5,588 5,672 5,136 1.07 0.98
configure.util-linux no-host 1,543,534 1,699,076 1,498,168 1,501,571 1,456,955 0.97 0.94
configure.yash no-host 173,465 159,536 176,798 177,008 173,009 1.02 1.00
hello-world no-host 151 87 391 397 181 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.7 4.1 9.4 10.1 6.4 2.00 1.36
bin-true no-host 3.3 1.7 8.7 9.2 5.4 2.64 1.64
configure.cpython no-host 34.5 34.5 34.6 34.4 34.5 1.00 1.00
configure.ocaml no-host 28.7 28.5 28.7 28.6 28.7 1.00 1.00
configure.tcc no-host 26.2 26.3 26.3 26.1 26.2 1.00 1.00
configure.util-linux no-host 39.5 39.7 39.6 39.9 39.6 1.00 1.00
configure.yash no-host 33.4 33.4 33.4 33.4 33.2 1.00 1.00
hello-world no-host 3.3 1.6 6.6 7.1 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 3 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 808 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,647 1 66 14.8 34.6 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,676 3 65 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,728 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 47 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,718 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 824 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,650 1 65 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 12,724 4 67 21.6 39.9 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,743 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 48 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,726 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 21 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 16 8 8 4.7 bash
15 no-host abuild-print-help 9 3 6 4.1 dash
23 no-host abuild-print-help 21 11 10 9.4 osh-native
31 no-host abuild-print-help 21 12 10 10.1 osh-nosouffle
39 no-host abuild-print-help 18 11 7 6.4 osh-static
1 no-host bin-true 627 317 345 3.3 bash
9 no-host bin-true 445 285 164 1.7 dash
17 no-host bin-true 808 314 511 8.7 osh-native
25 no-host bin-true 824 293 548 9.2 osh-nosouffle
33 no-host bin-true 658 329 345 5.4 osh-static
2 no-host configure.cpython 13,947 7,712 6,613 34.5 bash
10 no-host configure.cpython 13,987 7,633 6,746 34.5 dash
18 no-host configure.cpython 13,647 7,294 6,629 34.6 osh-native
26 no-host configure.cpython 13,650 7,190 6,747 34.4 osh-nosouffle
34 no-host configure.cpython 13,144 7,183 6,187 34.5 osh-static
4 no-host configure.ocaml 3,694 1,468 1,264 28.7 bash
12 no-host configure.ocaml 3,638 1,470 1,193 28.5 dash
20 no-host configure.ocaml 3,728 1,515 1,252 28.7 osh-native
28 no-host configure.ocaml 3,743 1,511 1,273 28.6 osh-nosouffle
36 no-host configure.ocaml 3,699 1,482 1,248 28.7 osh-static
5 no-host configure.tcc 46 21 25 26.2 bash
13 no-host configure.tcc 41 18 23 26.3 dash
21 no-host configure.tcc 47 25 22 26.3 osh-native
29 no-host configure.tcc 48 24 25 26.1 osh-nosouffle
37 no-host configure.tcc 44 23 21 26.2 osh-static
3 no-host configure.util-linux 12,605 6,581 6,473 39.5 bash
11 no-host configure.util-linux 13,497 6,574 7,410 39.7 dash
19 no-host configure.util-linux 12,676 6,294 6,601 39.6 osh-native
27 no-host configure.util-linux 12,724 6,238 6,714 39.9 osh-nosouffle
35 no-host configure.util-linux 12,260 6,224 6,251 39.6 osh-static
6 no-host configure.yash 1,709 965 753 33.4 bash
14 no-host configure.yash 1,670 951 720 33.4 dash
22 no-host configure.yash 1,718 957 764 33.4 osh-native
30 no-host configure.yash 1,726 943 786 33.4 osh-nosouffle
38 no-host configure.yash 1,685 972 714 33.2 osh-static
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 3 0 3 6.6 osh-native
24 no-host hello-world 3 1 2 7.1 osh-nosouffle
32 no-host hello-world 1 0 1 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,404 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,151 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,310 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,408 0 0 0 16 0 38 1 osh-nosouffle
39 no-host abuild-print-help 2,798 0 0 0 8 0 38 0 osh-static
1 no-host bin-true 101,454 0 0 0 8 0 1,998 49 bash
9 no-host bin-true 49,430 0 0 0 8 0 2,993 60 dash
17 no-host bin-true 133,530 0 0 0 16 0 1,998 77 osh-native
25 no-host bin-true 136,637 0 0 0 16 0 1,995 75 osh-nosouffle
33 no-host bin-true 110,002 0 0 0 8 0 2,000 67 osh-static
2 no-host configure.cpython 1,624,661 0 0 0 25,272 0 14,071 997 bash
10 no-host configure.cpython 1,639,472 0 0 0 25,272 0 14,113 1,025 dash
18 no-host configure.cpython 1,593,288 0 0 0 25,280 0 11,302 858 osh-native
26 no-host configure.cpython 1,606,600 0 0 0 25,280 0 11,313 843 osh-nosouffle
34 no-host configure.cpython 1,521,636 1 0 0 25,272 0 11,303 848 osh-static
4 no-host configure.ocaml 298,537 0 0 0 4,432 0 2,019 325 bash
12 no-host configure.ocaml 280,553 0 0 0 4,432 0 2,093 198 dash
20 no-host configure.ocaml 305,004 0 0 0 4,440 0 1,997 227 osh-native
28 no-host configure.ocaml 306,651 0 0 0 4,440 0 2,001 202 osh-nosouffle
36 no-host configure.ocaml 300,297 0 0 0 4,432 0 2,003 207 osh-static
5 no-host configure.tcc 5,218 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,226 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,588 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,672 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,136 0 0 0 88 0 45 3 osh-static
3 no-host configure.util-linux 1,543,534 1 0 232 35,944 0 18,959 1,017 bash
11 no-host configure.util-linux 1,699,076 1 0 0 35,936 0 17,015 1,166 dash
19 no-host configure.util-linux 1,498,168 0 0 0 35,952 0 16,127 993 osh-native
27 no-host configure.util-linux 1,501,571 0 0 0 35,944 0 16,221 902 osh-nosouffle
35 no-host configure.util-linux 1,456,955 3 0 0 35,936 0 16,147 954 osh-static
6 no-host configure.yash 173,465 0 0 0 3,616 0 878 97 bash
14 no-host configure.yash 159,536 0 0 0 3,624 0 1,001 97 dash
22 no-host configure.yash 176,798 0 0 0 3,624 0 858 97 osh-native
30 no-host configure.yash 177,008 0 0 0 3,624 0 854 100 osh-nosouffle
38 no-host configure.yash 173,009 0 0 0 3,616 0 858 103 osh-static
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 87 0 0 0 8 0 1 0 dash
16 no-host hello-world 391 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 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-4f715338
osh-nosouffle osh-7bdffb45
osh-static osh-static-edbcfeb4
host label host id
no-host no-host-9c670df1