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 19 1.30 1.17
bin-true no-host 611 436 799 809 649 1.31 1.06
configure.cpython no-host 13,840 13,848 13,460 13,540 12,968 0.97 0.94
configure.ocaml no-host 3,660 3,604 3,726 3,720 3,653 1.02 1.00
configure.tcc no-host 47 41 46 47 43 0.98 0.91
configure.util-linux no-host 12,535 13,279 12,500 12,583 12,088 1.00 0.96
configure.yash no-host 1,700 1,627 1,699 1,704 1,676 1.00 0.99
hello-world no-host 1 1 3 3 1 2.27 0.99

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,414 1,172 3,336 3,458 2,800 1.38 1.16
bin-true no-host 99,458 49,401 134,595 136,602 111,350 1.35 1.12
configure.cpython no-host 1,625,975 1,645,533 1,595,177 1,614,230 1,521,855 0.98 0.94
configure.ocaml no-host 299,458 281,515 306,400 307,066 299,704 1.02 1.00
configure.tcc no-host 5,232 4,200 5,567 5,657 5,123 1.06 0.98
configure.util-linux no-host 1,531,530 1,695,245 1,501,200 1,510,228 1,451,290 0.98 0.95
configure.yash no-host 173,556 159,575 176,722 177,264 172,744 1.02 1.00
hello-world no-host 152 86 392 401 182 2.58 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 5.0 3.9 9.4 10.1 6.4 1.89 1.29
bin-true no-host 3.3 1.6 8.8 9.2 5.1 2.68 1.56
configure.cpython no-host 34.5 34.6 34.8 34.6 34.5 1.01 1.00
configure.ocaml no-host 28.8 28.7 28.7 28.7 28.6 1.00 0.99
configure.tcc no-host 26.1 26.2 26.0 26.1 26.3 1.00 1.01
configure.util-linux no-host 39.9 39.8 39.9 39.6 39.6 1.00 0.99
configure.yash no-host 33.4 33.4 33.3 33.3 33.3 1.00 1.00
hello-world no-host 3.1 1.6 6.6 7.2 3.3 2.08 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 799 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,460 1 66 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,500 3 66 21.6 39.9 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,726 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 46 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,699 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.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.2 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,540 1 67 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 12,583 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,720 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 47 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,704 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 22 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 12 4 5.0 bash
15 no-host abuild-print-help 9 5 5 3.9 dash
23 no-host abuild-print-help 21 13 8 9.4 osh-native
31 no-host abuild-print-help 22 13 9 10.1 osh-nosouffle
39 no-host abuild-print-help 19 14 5 6.4 osh-static
1 no-host bin-true 611 298 351 3.3 bash
9 no-host bin-true 436 276 165 1.6 dash
17 no-host bin-true 799 303 513 8.8 osh-native
25 no-host bin-true 809 314 511 9.2 osh-nosouffle
33 no-host bin-true 649 316 351 5.1 osh-static
2 no-host configure.cpython 13,840 7,621 6,607 34.5 bash
10 no-host configure.cpython 13,848 7,532 6,716 34.6 dash
18 no-host configure.cpython 13,460 7,124 6,612 34.8 osh-native
26 no-host configure.cpython 13,540 7,140 6,684 34.6 osh-nosouffle
34 no-host configure.cpython 12,968 7,149 6,051 34.5 osh-static
4 no-host configure.ocaml 3,660 1,471 1,229 28.8 bash
12 no-host configure.ocaml 3,604 1,462 1,167 28.7 dash
20 no-host configure.ocaml 3,726 1,485 1,280 28.7 osh-native
28 no-host configure.ocaml 3,720 1,501 1,260 28.7 osh-nosouffle
36 no-host configure.ocaml 3,653 1,488 1,197 28.6 osh-static
5 no-host configure.tcc 47 24 24 26.1 bash
13 no-host configure.tcc 41 21 21 26.2 dash
21 no-host configure.tcc 46 26 21 26.0 osh-native
29 no-host configure.tcc 47 25 22 26.1 osh-nosouffle
37 no-host configure.tcc 43 22 22 26.3 osh-static
3 no-host configure.util-linux 12,535 6,634 6,365 39.9 bash
11 no-host configure.util-linux 13,279 6,536 7,239 39.8 dash
19 no-host configure.util-linux 12,500 6,161 6,559 39.9 osh-native
27 no-host configure.util-linux 12,583 6,227 6,577 39.6 osh-nosouffle
35 no-host configure.util-linux 12,088 6,187 6,114 39.6 osh-static
6 no-host configure.yash 1,700 968 740 33.4 bash
14 no-host configure.yash 1,627 902 727 33.4 dash
22 no-host configure.yash 1,699 943 759 33.3 osh-native
30 no-host configure.yash 1,704 976 730 33.3 osh-nosouffle
38 no-host configure.yash 1,676 946 732 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 3 0 6.6 osh-native
24 no-host hello-world 3 2 1 7.2 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,414 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,172 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 3,336 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,458 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,800 0 0 0 8 0 38 0 osh-static
1 no-host bin-true 99,458 0 0 0 8 0 1,995 54 bash
9 no-host bin-true 49,401 0 0 0 8 0 2,995 48 dash
17 no-host bin-true 134,595 0 0 0 16 0 1,997 64 osh-native
25 no-host bin-true 136,602 0 0 0 16 0 1,999 72 osh-nosouffle
33 no-host bin-true 111,350 0 0 0 8 0 1,994 70 osh-static
2 no-host configure.cpython 1,625,975 0 0 0 25,272 0 14,065 1,040 bash
10 no-host configure.cpython 1,645,533 0 0 0 25,272 0 14,146 1,033 dash
18 no-host configure.cpython 1,595,177 0 0 0 25,280 0 11,307 956 osh-native
26 no-host configure.cpython 1,614,230 0 0 0 25,280 0 11,321 839 osh-nosouffle
34 no-host configure.cpython 1,521,855 0 0 0 25,272 0 11,310 916 osh-static
4 no-host configure.ocaml 299,458 0 0 0 4,432 0 2,018 192 bash
12 no-host configure.ocaml 281,515 0 0 0 4,432 0 2,087 194 dash
20 no-host configure.ocaml 306,400 0 0 0 4,440 0 1,999 228 osh-native
28 no-host configure.ocaml 307,066 0 0 0 4,440 0 2,000 185 osh-nosouffle
36 no-host configure.ocaml 299,704 0 0 0 4,432 0 1,992 203 osh-static
5 no-host configure.tcc 5,232 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,200 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,567 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,657 0 0 0 96 0 44 2 osh-nosouffle
37 no-host configure.tcc 5,123 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,531,530 1 0 0 35,944 0 19,029 1,009 bash
11 no-host configure.util-linux 1,695,245 0 0 0 35,936 0 17,210 1,125 dash
19 no-host configure.util-linux 1,501,200 0 0 0 35,952 0 16,223 901 osh-native
27 no-host configure.util-linux 1,510,228 0 0 0 35,944 0 16,232 953 osh-nosouffle
35 no-host configure.util-linux 1,451,290 0 0 0 35,944 0 16,207 918 osh-static
6 no-host configure.yash 173,556 0 0 0 3,616 0 877 94 bash
14 no-host configure.yash 159,575 0 0 0 3,624 0 1,001 105 dash
22 no-host configure.yash 176,722 0 0 0 3,624 0 858 88 osh-native
30 no-host configure.yash 177,264 0 0 0 3,624 0 858 108 osh-nosouffle
38 no-host configure.yash 172,744 0 0 0 3,616 0 858 103 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 392 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 401 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 182 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-1f5ee437
osh-nosouffle osh-7647b828
osh-static osh-static-95904462
host label host id
no-host no-host-44ad0cc8