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 15 9 20 21 18 1.33 1.18
bin-true no-host 616 442 808 812 653 1.31 1.06
configure.cpython no-host 13,767 13,859 13,684 13,722 13,279 0.99 0.96
configure.ocaml no-host 3,652 3,670 3,746 3,745 3,693 1.03 1.01
configure.tcc no-host 46 42 47 47 44 1.03 0.97
configure.util-linux no-host 12,480 13,303 12,609 12,746 12,280 1.01 0.98
configure.yash no-host 1,681 1,672 1,714 1,716 1,710 1.02 1.02
hello-world no-host 1 1 3 3 1 2.47 1.08

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,384 1,153 3,340 3,430 2,797 1.40 1.17
bin-true no-host 102,416 49,453 134,585 136,567 111,351 1.31 1.09
configure.cpython no-host 1,626,731 1,638,777 1,597,784 1,609,799 1,522,767 0.98 0.94
configure.ocaml no-host 299,131 280,911 306,582 307,219 299,845 1.02 1.00
configure.tcc no-host 5,230 4,205 5,601 5,699 5,113 1.07 0.98
configure.util-linux no-host 1,538,270 1,700,236 1,501,488 1,503,535 1,450,087 0.98 0.94
configure.yash no-host 173,484 159,547 176,585 177,622 172,736 1.02 1.00
hello-world no-host 151 85 392 400 183 2.60 1.21

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.6 10.0 6.4 1.92 1.29
bin-true no-host 3.3 1.4 8.7 8.9 5.1 2.64 1.56
configure.cpython no-host 34.5 34.5 34.5 34.3 34.5 1.00 1.00
configure.ocaml no-host 28.6 28.7 28.5 28.7 28.7 1.00 1.00
configure.tcc no-host 26.3 26.0 26.2 26.3 26.1 0.99 0.99
configure.util-linux no-host 39.6 39.7 39.6 39.7 39.6 1.00 1.00
configure.yash no-host 33.3 33.2 33.4 33.4 33.4 1.00 1.00
hello-world no-host 3.3 1.6 6.6 7.2 3.3 2.00 1.00

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,684 1 69 14.8 34.5 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,609 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,746 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.2 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,714 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 20 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 7.2 3,895 3,895 0 715 1,916 1,264 2 0 50,000 0
bin-true no-host 812 1 2 3.5 8.9 152,882 11,695 2,968 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 13,722 1 68 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,746 3 68 21.6 39.7 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,745 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.3 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,716 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.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 15 6 10 5.0 bash
15 no-host abuild-print-help 9 3 6 3.9 dash
23 no-host abuild-print-help 20 8 13 9.6 osh-native
31 no-host abuild-print-help 21 10 12 10.0 osh-nosouffle
39 no-host abuild-print-help 18 8 10 6.4 osh-static
1 no-host bin-true 616 311 345 3.3 bash
9 no-host bin-true 442 279 167 1.4 dash
17 no-host bin-true 808 325 501 8.7 osh-native
25 no-host bin-true 812 302 527 8.9 osh-nosouffle
33 no-host bin-true 653 320 350 5.1 osh-static
2 no-host configure.cpython 13,767 7,657 6,492 34.5 bash
10 no-host configure.cpython 13,859 7,600 6,661 34.5 dash
18 no-host configure.cpython 13,684 7,228 6,730 34.5 osh-native
26 no-host configure.cpython 13,722 7,272 6,736 34.3 osh-nosouffle
34 no-host configure.cpython 13,279 7,239 6,273 34.5 osh-static
4 no-host configure.ocaml 3,652 1,451 1,242 28.6 bash
12 no-host configure.ocaml 3,670 1,450 1,245 28.7 dash
20 no-host configure.ocaml 3,746 1,479 1,307 28.5 osh-native
28 no-host configure.ocaml 3,745 1,498 1,289 28.7 osh-nosouffle
36 no-host configure.ocaml 3,693 1,487 1,236 28.7 osh-static
5 no-host configure.tcc 46 26 20 26.3 bash
13 no-host configure.tcc 42 27 16 26.0 dash
21 no-host configure.tcc 47 18 30 26.2 osh-native
29 no-host configure.tcc 47 24 23 26.3 osh-nosouffle
37 no-host configure.tcc 44 24 21 26.1 osh-static
3 no-host configure.util-linux 12,480 6,486 6,458 39.6 bash
11 no-host configure.util-linux 13,303 6,456 7,334 39.7 dash
19 no-host configure.util-linux 12,609 6,239 6,594 39.6 osh-native
27 no-host configure.util-linux 12,746 6,292 6,678 39.7 osh-nosouffle
35 no-host configure.util-linux 12,280 6,239 6,255 39.6 osh-static
6 no-host configure.yash 1,681 950 740 33.3 bash
14 no-host configure.yash 1,672 955 718 33.2 dash
22 no-host configure.yash 1,714 960 756 33.4 osh-native
30 no-host configure.yash 1,716 987 731 33.4 osh-nosouffle
38 no-host configure.yash 1,710 960 751 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 3 1 2 6.6 osh-native
24 no-host hello-world 3 1 1 7.2 osh-nosouffle
32 no-host hello-world 1 1 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,384 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,153 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,340 0 0 0 16 0 38 0 osh-native
31 no-host abuild-print-help 3,430 0 0 0 16 0 38 1 osh-nosouffle
39 no-host abuild-print-help 2,797 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 102,416 0 0 0 8 0 1,998 43 bash
9 no-host bin-true 49,453 0 0 0 8 0 2,996 53 dash
17 no-host bin-true 134,585 0 0 0 16 0 1,999 66 osh-native
25 no-host bin-true 136,567 0 0 0 16 0 1,995 74 osh-nosouffle
33 no-host bin-true 111,351 0 0 0 8 0 1,997 73 osh-static
2 no-host configure.cpython 1,626,731 0 0 0 25,272 0 14,067 1,051 bash
10 no-host configure.cpython 1,638,777 0 0 0 25,272 0 14,127 1,015 dash
18 no-host configure.cpython 1,597,784 0 0 0 25,280 0 11,291 852 osh-native
26 no-host configure.cpython 1,609,799 0 0 0 25,280 0 11,302 884 osh-nosouffle
34 no-host configure.cpython 1,522,767 0 0 0 25,272 0 11,300 887 osh-static
4 no-host configure.ocaml 299,131 0 0 0 4,432 0 2,018 199 bash
12 no-host configure.ocaml 280,911 0 0 0 4,432 0 2,095 184 dash
20 no-host configure.ocaml 306,582 0 0 8 4,440 0 2,003 208 osh-native
28 no-host configure.ocaml 307,219 0 0 0 4,440 0 2,001 193 osh-nosouffle
36 no-host configure.ocaml 299,845 0 0 0 4,432 0 2,003 196 osh-static
5 no-host configure.tcc 5,230 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,205 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,601 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,699 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,113 0 0 0 88 0 44 2 osh-static
3 no-host configure.util-linux 1,538,270 2 0 0 35,944 0 18,962 1,104 bash
11 no-host configure.util-linux 1,700,236 1 0 0 35,936 0 17,127 1,200 dash
19 no-host configure.util-linux 1,501,488 0 0 0 35,952 0 16,139 982 osh-native
27 no-host configure.util-linux 1,503,535 2 0 0 35,944 0 16,209 936 osh-nosouffle
35 no-host configure.util-linux 1,450,087 1 0 0 35,944 0 16,196 905 osh-static
6 no-host configure.yash 173,484 0 0 0 3,616 0 878 98 bash
14 no-host configure.yash 159,547 0 0 0 3,624 0 1,000 95 dash
22 no-host configure.yash 176,585 0 0 0 3,624 0 858 101 osh-native
30 no-host configure.yash 177,622 0 0 0 3,632 0 857 99 osh-nosouffle
38 no-host configure.yash 172,736 0 0 0 3,624 0 856 110 osh-static
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 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 400 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-263dc0c5
osh-nosouffle osh-39de6132
osh-static osh-static-4105424f
host label host id
no-host no-host-9c670df1