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 18 1.30 1.13
bin-true no-host 630 441 808 803 658 1.28 1.04
configure.cpython no-host 14,063 14,292 13,681 13,588 13,042 0.97 0.93
configure.ocaml no-host 3,754 3,635 3,720 3,714 3,685 0.99 0.98
configure.tcc no-host 47 41 47 47 43 1.00 0.92
configure.util-linux no-host 12,557 13,674 12,582 12,688 12,243 1.00 0.98
configure.yash no-host 1,767 1,654 1,718 1,712 1,676 0.97 0.95
hello-world no-host 1 1 3 3 1 2.27 0.95

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,416 1,150 3,313 3,415 2,799 1.37 1.16
bin-true no-host 101,396 49,486 135,547 133,594 109,984 1.34 1.08
configure.cpython no-host 1,620,370 1,636,354 1,584,265 1,598,973 1,523,999 0.98 0.94
configure.ocaml no-host 298,849 281,539 306,106 306,497 300,164 1.02 1.00
configure.tcc no-host 5,217 4,198 5,617 5,689 5,128 1.08 0.98
configure.util-linux no-host 1,538,600 1,700,774 1,502,334 1,506,038 1,458,493 0.98 0.95
configure.yash no-host 173,140 159,548 176,048 176,970 173,118 1.02 1.00
hello-world no-host 150 85 392 397 180 2.61 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 3.9 9.4 10.0 6.4 2.00 1.36
bin-true no-host 3.3 1.6 8.8 9.2 5.4 2.68 1.64
configure.cpython no-host 34.5 34.5 34.5 34.4 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.1 26.1 26.3 26.3 26.1 1.01 1.00
configure.util-linux no-host 39.7 39.7 39.6 39.4 39.7 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.1 1.6 6.7 6.9 3.4 2.12 1.08

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.7 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.8 152,882 11,691 2,964 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 13,681 1 72 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,582 3 68 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,720 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.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 6.9 3,895 3,895 0 715 1,916 1,264 2 0 50,000 0
bin-true no-host 803 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,588 1 71 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,688 3 69 21.6 39.4 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,714 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,712 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 22 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.7 bash
15 no-host abuild-print-help 9 5 4 3.9 dash
23 no-host abuild-print-help 21 10 11 9.4 osh-native
31 no-host abuild-print-help 22 13 9 10.0 osh-nosouffle
39 no-host abuild-print-help 18 11 8 6.4 osh-static
1 no-host bin-true 630 307 361 3.3 bash
9 no-host bin-true 441 275 171 1.6 dash
17 no-host bin-true 808 300 524 8.8 osh-native
25 no-host bin-true 803 305 514 9.2 osh-nosouffle
33 no-host bin-true 658 324 349 5.4 osh-static
2 no-host configure.cpython 14,063 7,722 6,718 34.5 bash
10 no-host configure.cpython 14,292 7,796 6,908 34.5 dash
18 no-host configure.cpython 13,681 7,361 6,587 34.5 osh-native
26 no-host configure.cpython 13,588 7,268 6,603 34.4 osh-nosouffle
34 no-host configure.cpython 13,042 7,184 6,095 34.5 osh-static
4 no-host configure.ocaml 3,754 1,502 1,294 28.6 bash
12 no-host configure.ocaml 3,635 1,494 1,165 28.7 dash
20 no-host configure.ocaml 3,720 1,501 1,259 28.5 osh-native
28 no-host configure.ocaml 3,714 1,479 1,274 28.7 osh-nosouffle
36 no-host configure.ocaml 3,685 1,497 1,219 28.7 osh-static
5 no-host configure.tcc 47 26 21 26.1 bash
13 no-host configure.tcc 41 24 18 26.1 dash
21 no-host configure.tcc 47 23 25 26.3 osh-native
29 no-host configure.tcc 47 18 30 26.3 osh-nosouffle
37 no-host configure.tcc 43 26 17 26.1 osh-static
3 no-host configure.util-linux 12,557 6,526 6,491 39.7 bash
11 no-host configure.util-linux 13,674 6,643 7,528 39.7 dash
19 no-host configure.util-linux 12,582 6,304 6,496 39.6 osh-native
27 no-host configure.util-linux 12,688 6,228 6,683 39.4 osh-nosouffle
35 no-host configure.util-linux 12,243 6,186 6,255 39.7 osh-static
6 no-host configure.yash 1,767 996 777 33.4 bash
14 no-host configure.yash 1,654 944 710 33.4 dash
22 no-host configure.yash 1,718 934 780 33.4 osh-native
30 no-host configure.yash 1,712 939 775 33.4 osh-nosouffle
38 no-host configure.yash 1,676 955 723 33.2 osh-static
0 no-host hello-world 1 1 1 3.1 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 3 1 2 6.7 osh-native
24 no-host hello-world 3 1 2 6.9 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,416 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,150 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,313 0 0 0 16 0 37 2 osh-native
31 no-host abuild-print-help 3,415 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,799 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 101,396 0 0 0 8 0 1,998 77 bash
9 no-host bin-true 49,486 0 0 0 8 0 2,996 50 dash
17 no-host bin-true 135,547 0 0 0 16 0 1,999 88 osh-native
25 no-host bin-true 133,594 0 0 0 16 0 1,994 76 osh-nosouffle
33 no-host bin-true 109,984 0 0 0 8 0 1,999 90 osh-static
2 no-host configure.cpython 1,620,370 0 0 0 25,272 0 14,076 1,191 bash
10 no-host configure.cpython 1,636,354 1 0 0 25,272 0 14,145 1,062 dash
18 no-host configure.cpython 1,584,265 0 0 0 25,280 0 11,308 844 osh-native
26 no-host configure.cpython 1,598,973 0 0 0 25,280 0 11,300 834 osh-nosouffle
34 no-host configure.cpython 1,523,999 0 0 0 25,272 0 11,307 809 osh-static
4 no-host configure.ocaml 298,849 0 0 0 4,432 0 2,017 197 bash
12 no-host configure.ocaml 281,539 0 0 0 4,432 0 2,109 203 dash
20 no-host configure.ocaml 306,106 0 0 0 4,440 0 2,000 224 osh-native
28 no-host configure.ocaml 306,497 0 0 0 4,440 0 2,000 203 osh-nosouffle
36 no-host configure.ocaml 300,164 0 0 0 4,432 0 2,002 215 osh-static
5 no-host configure.tcc 5,217 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,198 0 0 0 88 0 52 4 dash
21 no-host configure.tcc 5,617 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,689 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,128 0 0 0 88 0 44 3 osh-static
3 no-host configure.util-linux 1,538,600 0 0 232 35,944 0 18,985 1,063 bash
11 no-host configure.util-linux 1,700,774 0 0 0 35,936 0 17,115 1,259 dash
19 no-host configure.util-linux 1,502,334 0 0 0 35,952 0 16,131 883 osh-native
27 no-host configure.util-linux 1,506,038 0 0 0 35,944 0 16,218 1,036 osh-nosouffle
35 no-host configure.util-linux 1,458,493 0 0 0 35,936 0 16,161 890 osh-static
6 no-host configure.yash 173,140 0 0 0 3,616 0 879 106 bash
14 no-host configure.yash 159,548 0 0 0 3,616 0 1,005 111 dash
22 no-host configure.yash 176,048 0 0 0 3,632 0 859 106 osh-native
30 no-host configure.yash 176,970 0 0 0 3,624 0 859 95 osh-nosouffle
38 no-host configure.yash 173,118 0 0 0 3,616 0 857 98 osh-static
0 no-host hello-world 150 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 397 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-9c019188
osh-nosouffle osh-84394256
osh-static osh-static-8a4ed20e
host label host id
no-host no-host-9c670df1