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 20 21 18 1.27 1.15
bin-true no-host 609 435 807 808 650 1.32 1.07
configure.cpython no-host 13,448 13,767 13,831 13,466 12,735 1.03 0.95
configure.ocaml no-host 3,583 3,590 3,655 3,652 3,639 1.02 1.02
configure.tcc no-host 46 41 46 47 43 1.00 0.94
configure.util-linux no-host 12,500 13,449 13,000 12,481 11,936 1.04 0.95
configure.yash no-host 1,651 1,622 1,670 1,661 1,651 1.01 1.00
hello-world no-host 1 1 3 3 1 2.45 1.01

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,405 1,207 3,283 3,420 2,797 1.37 1.16
bin-true no-host 100,441 49,418 136,537 137,611 111,353 1.36 1.11
configure.cpython no-host 1,620,066 1,641,270 1,594,017 1,613,884 1,522,016 0.98 0.94
configure.ocaml no-host 299,074 280,626 307,024 308,344 299,913 1.03 1.00
configure.tcc no-host 5,209 4,204 5,607 5,677 5,116 1.08 0.98
configure.util-linux no-host 1,548,594 1,700,739 1,502,804 1,502,244 1,449,703 0.97 0.94
configure.yash no-host 173,336 159,565 176,949 177,548 172,716 1.02 1.00
hello-world no-host 152 88 392 396 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 4.8 4.1 9.4 10.0 6.4 1.95 1.32
bin-true no-host 3.3 1.6 8.7 9.2 5.1 2.64 1.56
configure.cpython no-host 34.5 34.5 34.7 34.7 34.5 1.00 1.00
configure.ocaml no-host 28.6 28.7 28.8 28.6 28.7 1.00 1.00
configure.tcc no-host 26.1 26.2 26.2 26.0 26.3 1.00 1.01
configure.util-linux no-host 39.7 39.5 39.5 39.7 39.9 0.99 1.00
configure.yash no-host 33.1 33.3 33.4 33.3 33.2 1.01 1.00
hello-world no-host 3.1 1.6 6.6 6.9 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 807 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,831 1 68 14.8 34.7 1,753,364 36,445 28,935 93,071 872,316 787,977 25,789 61 50,000 0
configure.util-linux no-host 13,000 3 70 21.6 39.5 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,655 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 46 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,670 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.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 6.9 3,895 3,895 0 715 1,916 1,264 2 0 50,000 0
bin-true no-host 808 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,466 1 64 14.9 34.7 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,481 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,652 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 47 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,661 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 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 16 8 9 4.8 bash
15 no-host abuild-print-help 9 4 6 4.1 dash
23 no-host abuild-print-help 20 11 9 9.4 osh-native
31 no-host abuild-print-help 21 12 10 10.0 osh-nosouffle
39 no-host abuild-print-help 18 12 7 6.4 osh-static
1 no-host bin-true 609 313 336 3.3 bash
9 no-host bin-true 435 266 176 1.6 dash
17 no-host bin-true 807 299 524 8.7 osh-native
25 no-host bin-true 808 315 510 9.2 osh-nosouffle
33 no-host bin-true 650 312 354 5.1 osh-static
2 no-host configure.cpython 13,448 7,433 6,391 34.5 bash
10 no-host configure.cpython 13,767 7,555 6,597 34.5 dash
18 no-host configure.cpython 13,831 7,275 6,839 34.7 osh-native
26 no-host configure.cpython 13,466 7,121 6,635 34.7 osh-nosouffle
34 no-host configure.cpython 12,735 6,979 5,990 34.5 osh-static
4 no-host configure.ocaml 3,583 1,426 1,196 28.6 bash
12 no-host configure.ocaml 3,590 1,475 1,139 28.7 dash
20 no-host configure.ocaml 3,655 1,457 1,237 28.8 osh-native
28 no-host configure.ocaml 3,652 1,498 1,195 28.6 osh-nosouffle
36 no-host configure.ocaml 3,639 1,482 1,188 28.7 osh-static
5 no-host configure.tcc 46 27 20 26.1 bash
13 no-host configure.tcc 41 23 19 26.2 dash
21 no-host configure.tcc 46 24 22 26.2 osh-native
29 no-host configure.tcc 47 24 23 26.0 osh-nosouffle
37 no-host configure.tcc 43 24 20 26.3 osh-static
3 no-host configure.util-linux 12,500 6,523 6,299 39.7 bash
11 no-host configure.util-linux 13,449 6,607 7,334 39.5 dash
19 no-host configure.util-linux 13,000 6,325 6,896 39.5 osh-native
27 no-host configure.util-linux 12,481 6,119 6,586 39.7 osh-nosouffle
35 no-host configure.util-linux 11,936 6,031 6,119 39.9 osh-static
6 no-host configure.yash 1,651 933 726 33.1 bash
14 no-host configure.yash 1,622 944 679 33.3 dash
22 no-host configure.yash 1,670 923 750 33.4 osh-native
30 no-host configure.yash 1,661 944 720 33.3 osh-nosouffle
38 no-host configure.yash 1,651 939 715 33.2 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 0 3 6.6 osh-native
24 no-host hello-world 3 0 3 6.9 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,405 0 0 0 8 0 41 2 bash
15 no-host abuild-print-help 1,207 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,283 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,420 0 0 0 16 0 39 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 100,441 0 0 0 8 0 1,997 52 bash
9 no-host bin-true 49,418 0 0 0 8 0 2,996 39 dash
17 no-host bin-true 136,537 0 0 0 16 0 1,999 86 osh-native
25 no-host bin-true 137,611 0 0 0 16 0 1,999 75 osh-nosouffle
33 no-host bin-true 111,353 0 0 0 8 0 1,999 52 osh-static
2 no-host configure.cpython 1,620,066 0 0 0 25,272 0 14,079 958 bash
10 no-host configure.cpython 1,641,270 0 0 0 25,272 0 14,091 990 dash
18 no-host configure.cpython 1,594,017 0 0 0 25,280 0 11,298 853 osh-native
26 no-host configure.cpython 1,613,884 0 0 0 25,280 0 11,312 835 osh-nosouffle
34 no-host configure.cpython 1,522,016 0 0 0 25,272 0 11,302 872 osh-static
4 no-host configure.ocaml 299,074 0 0 0 4,432 0 2,018 186 bash
12 no-host configure.ocaml 280,626 0 0 0 4,432 0 2,090 199 dash
20 no-host configure.ocaml 307,024 0 0 8 4,440 0 2,004 236 osh-native
28 no-host configure.ocaml 308,344 0 0 0 4,440 0 1,998 207 osh-nosouffle
36 no-host configure.ocaml 299,913 0 0 0 4,432 0 2,001 231 osh-static
5 no-host configure.tcc 5,209 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,204 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,607 0 0 0 96 0 45 1 osh-native
29 no-host configure.tcc 5,677 0 0 0 96 0 45 4 osh-nosouffle
37 no-host configure.tcc 5,116 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,548,594 0 0 0 35,944 0 18,989 1,082 bash
11 no-host configure.util-linux 1,700,739 1 0 0 35,936 0 17,089 1,177 dash
19 no-host configure.util-linux 1,502,804 0 0 0 35,952 0 16,208 956 osh-native
27 no-host configure.util-linux 1,502,244 1 0 0 35,944 0 16,161 945 osh-nosouffle
35 no-host configure.util-linux 1,449,703 0 0 0 35,936 0 16,181 894 osh-static
6 no-host configure.yash 173,336 0 0 0 3,616 0 881 103 bash
14 no-host configure.yash 159,565 0 0 0 3,616 0 1,003 110 dash
22 no-host configure.yash 176,949 0 0 0 3,632 0 857 90 osh-native
30 no-host configure.yash 177,548 0 0 0 3,624 0 859 108 osh-nosouffle
38 no-host configure.yash 172,716 0 0 0 3,616 0 857 104 osh-static
0 no-host hello-world 152 0 0 0 8 0 1 1 bash
8 no-host hello-world 88 0 0 0 8 0 1 0 dash
16 no-host hello-world 392 0 0 0 16 0 1 1 osh-native
24 no-host hello-world 396 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-a163164a
osh-nosouffle osh-bfb18baf
osh-static osh-static-43c2f6ed
host label host id
no-host no-host-9c670df1