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 30 21 18 1.96 1.16
bin-true no-host 618 459 810 813 652 1.31 1.06
configure.cpython no-host 13,504 13,540 13,271 13,273 12,974 0.98 0.96
configure.ocaml no-host 3,591 3,559 3,653 3,653 3,669 1.02 1.02
configure.tcc no-host 45 41 46 46 43 1.01 0.95
configure.util-linux no-host 12,267 13,050 12,208 12,443 12,111 1.00 0.99
configure.yash no-host 1,655 1,614 1,669 1,665 1,668 1.01 1.01
hello-world no-host 1 1 3 3 1 2.51 1.04

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,159 3,350 3,449 2,806 1.39 1.17
bin-true no-host 101,428 49,437 137,575 137,605 110,362 1.36 1.09
configure.cpython no-host 1,625,885 1,642,021 1,595,489 1,606,894 1,522,062 0.98 0.94
configure.ocaml no-host 299,176 280,560 306,710 307,268 299,859 1.03 1.00
configure.tcc no-host 5,240 4,198 5,627 5,685 5,108 1.07 0.97
configure.util-linux no-host 1,538,952 1,696,729 1,496,409 1,510,259 1,448,938 0.97 0.94
configure.yash no-host 173,232 159,555 176,554 177,168 172,631 1.02 1.00
hello-world no-host 151 89 392 400 180 2.60 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 4.1 9.6 10.0 6.4 1.97 1.32
bin-true no-host 3.1 1.6 8.8 9.2 5.1 2.79 1.62
configure.cpython no-host 34.8 34.5 34.5 34.5 34.7 0.99 1.00
configure.ocaml no-host 28.5 28.5 28.7 28.8 28.5 1.01 1.00
configure.tcc no-host 26.4 26.2 26.3 26.0 26.1 1.00 0.99
configure.util-linux no-host 39.6 39.7 39.7 39.7 39.7 1.00 1.00
configure.yash no-host 33.3 33.3 33.2 33.1 33.4 1.00 1.00
hello-world no-host 3.3 1.6 6.6 7.1 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 810 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,271 2 65 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,208 3 63 21.6 39.7 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,653 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.3 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,669 1 2 2.7 33.2 143,736 11,764 6,618 7,160 70,796 65,780 2,095 3 50,000 0
abuild-print-help no-host 30 1 4 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.1 3,895 3,895 0 715 1,916 1,264 2 0 50,000 0
bin-true no-host 813 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,273 1 64 14.9 34.5 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,443 3 64 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,653 1 2 2.8 28.8 149,932 12,657 6,562 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,665 1 2 2.7 33.1 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 8 8 4.8 bash
15 no-host abuild-print-help 9 4 5 4.1 dash
23 no-host abuild-print-help 30 20 10 9.6 osh-native
31 no-host abuild-print-help 21 11 11 10.0 osh-nosouffle
39 no-host abuild-print-help 18 12 7 6.4 osh-static
1 no-host bin-true 618 312 343 3.1 bash
9 no-host bin-true 459 290 176 1.6 dash
17 no-host bin-true 810 309 517 8.8 osh-native
25 no-host bin-true 813 306 521 9.2 osh-nosouffle
33 no-host bin-true 652 314 356 5.1 osh-static
2 no-host configure.cpython 13,504 7,352 6,535 34.8 bash
10 no-host configure.cpython 13,540 7,415 6,525 34.5 dash
18 no-host configure.cpython 13,271 7,057 6,478 34.5 osh-native
26 no-host configure.cpython 13,273 7,130 6,428 34.5 osh-nosouffle
34 no-host configure.cpython 12,974 7,123 6,088 34.7 osh-static
4 no-host configure.ocaml 3,591 1,454 1,178 28.5 bash
12 no-host configure.ocaml 3,559 1,446 1,138 28.5 dash
20 no-host configure.ocaml 3,653 1,479 1,214 28.7 osh-native
28 no-host configure.ocaml 3,653 1,445 1,249 28.8 osh-nosouffle
36 no-host configure.ocaml 3,669 1,474 1,226 28.5 osh-static
5 no-host configure.tcc 45 24 22 26.4 bash
13 no-host configure.tcc 41 25 16 26.2 dash
21 no-host configure.tcc 46 24 23 26.3 osh-native
29 no-host configure.tcc 46 24 22 26.0 osh-nosouffle
37 no-host configure.tcc 43 25 19 26.1 osh-static
3 no-host configure.util-linux 12,267 6,360 6,373 39.6 bash
11 no-host configure.util-linux 13,050 6,436 7,104 39.7 dash
19 no-host configure.util-linux 12,208 6,071 6,341 39.7 osh-native
27 no-host configure.util-linux 12,443 6,132 6,512 39.7 osh-nosouffle
35 no-host configure.util-linux 12,111 6,060 6,268 39.7 osh-static
6 no-host configure.yash 1,655 926 737 33.3 bash
14 no-host configure.yash 1,614 956 661 33.3 dash
22 no-host configure.yash 1,669 928 743 33.2 osh-native
30 no-host configure.yash 1,665 930 738 33.1 osh-nosouffle
38 no-host configure.yash 1,668 951 719 33.4 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 1 2 6.6 osh-native
24 no-host hello-world 3 1 2 7.1 osh-nosouffle
32 no-host hello-world 1 1 0 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,404 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,159 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,350 0 0 0 16 0 38 1 osh-native
31 no-host abuild-print-help 3,449 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,806 0 0 0 8 0 38 0 osh-static
1 no-host bin-true 101,428 0 0 0 8 0 1,999 48 bash
9 no-host bin-true 49,437 0 0 0 8 0 2,994 46 dash
17 no-host bin-true 137,575 0 0 0 16 0 1,997 84 osh-native
25 no-host bin-true 137,605 0 0 0 16 0 2,000 84 osh-nosouffle
33 no-host bin-true 110,362 0 0 0 8 0 2,001 98 osh-static
2 no-host configure.cpython 1,625,885 0 0 0 25,272 0 14,066 1,037 bash
10 no-host configure.cpython 1,642,021 0 0 0 25,272 0 14,122 1,038 dash
18 no-host configure.cpython 1,595,489 0 0 0 25,280 0 11,298 862 osh-native
26 no-host configure.cpython 1,606,894 0 0 0 25,280 0 11,301 866 osh-nosouffle
34 no-host configure.cpython 1,522,062 0 0 0 25,272 0 11,299 864 osh-static
4 no-host configure.ocaml 299,176 0 0 0 4,432 0 2,019 197 bash
12 no-host configure.ocaml 280,560 0 0 0 4,432 0 2,107 193 dash
20 no-host configure.ocaml 306,710 0 0 8 4,440 0 2,000 223 osh-native
28 no-host configure.ocaml 307,268 0 0 0 4,440 0 2,001 191 osh-nosouffle
36 no-host configure.ocaml 299,859 0 0 0 4,432 0 1,998 234 osh-static
5 no-host configure.tcc 5,240 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,198 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,627 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,685 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,108 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,538,952 1 0 0 35,944 0 18,964 1,023 bash
11 no-host configure.util-linux 1,696,729 1 0 0 35,936 0 17,100 1,332 dash
19 no-host configure.util-linux 1,496,409 2 0 0 35,952 0 16,130 916 osh-native
27 no-host configure.util-linux 1,510,259 2 0 0 35,944 0 16,175 929 osh-nosouffle
35 no-host configure.util-linux 1,448,938 2 0 0 35,936 0 16,173 886 osh-static
6 no-host configure.yash 173,232 0 0 0 3,616 0 876 98 bash
14 no-host configure.yash 159,555 0 0 0 3,616 0 998 103 dash
22 no-host configure.yash 176,554 0 0 0 3,624 0 860 96 osh-native
30 no-host configure.yash 177,168 0 0 0 3,624 0 856 105 osh-nosouffle
38 no-host configure.yash 172,631 0 0 0 3,624 0 858 96 osh-static
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 89 0 0 0 8 0 1 1 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 180 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-48697749
osh-nosouffle osh-15b66306
osh-static osh-static-1c3c105a
host label host id
no-host no-host-9c670df1