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.31 1.16
bin-true no-host 633 447 804 813 656 1.27 1.04
configure.cpython no-host 13,691 13,766 13,383 13,446 12,842 0.98 0.94
configure.ocaml no-host 3,623 3,574 3,677 3,672 3,654 1.01 1.01
configure.tcc no-host 46 41 47 47 46 1.01 0.99
configure.util-linux no-host 12,425 13,179 12,426 12,421 12,001 1.00 0.97
configure.yash no-host 1,701 1,625 1,686 1,680 1,658 0.99 0.97
hello-world no-host 1 1 3 3 1 2.32 0.96

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,380 1,176 3,252 3,416 2,812 1.37 1.18
bin-true no-host 101,428 49,414 133,343 134,966 111,002 1.31 1.09
configure.cpython no-host 1,618,590 1,644,343 1,598,030 1,605,829 1,521,004 0.99 0.94
configure.ocaml no-host 298,749 280,603 306,379 307,341 300,737 1.03 1.01
configure.tcc no-host 5,196 4,237 5,585 5,697 5,134 1.07 0.99
configure.util-linux no-host 1,543,088 1,700,103 1,497,861 1,512,222 1,457,179 0.97 0.94
configure.yash no-host 173,394 159,614 176,646 177,352 173,045 1.02 1.00
hello-world no-host 154 89 393 398 182 2.55 1.18

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 3.8 9.4 10.1 6.4 1.95 1.32
bin-true no-host 3.1 1.6 8.7 9.4 5.2 2.75 1.67
configure.cpython no-host 34.5 34.5 34.5 34.5 34.8 1.00 1.01
configure.ocaml no-host 28.5 28.7 28.7 28.7 28.7 1.00 1.01
configure.tcc no-host 26.2 26.3 26.0 26.2 26.0 0.99 0.99
configure.util-linux no-host 39.7 39.6 39.5 39.9 39.7 0.99 1.00
configure.yash no-host 33.2 33.2 33.5 33.4 33.3 1.01 1.00
hello-world no-host 3.1 1.6 6.6 6.9 3.4 2.08 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.6 3,896 3,896 0 716 1,916 1,264 2 0 50,000 0
bin-true no-host 804 1 2 3.5 8.7 151,881 10,750 2,964 14,775 72,390 64,716 3,008 3 50,000 0
configure.cpython no-host 13,383 1 66 14.8 34.5 1,750,743 35,378 28,935 93,071 869,707 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,426 3 65 21.6 39.5 2,705,279 37,450 66,323 119,739 1,291,802 1,293,738 32,527 42 132,646 1
configure.ocaml no-host 3,677 1 2 2.8 28.7 149,681 12,642 6,557 9,207 70,290 70,184 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.0 30,530 30,530 0 1,674 14,467 14,389 271 0 50,000 0
configure.yash no-host 1,686 1 2 2.7 33.5 143,443 11,455 6,611 7,160 70,503 65,780 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.4 117,212 65,784 41,994 4,969 54,592 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 813 1 2 3.5 9.4 151,881 10,754 2,968 14,775 72,390 64,716 3,008 3 50,000 0
configure.cpython no-host 13,446 2 69 14.8 34.5 1,750,742 35,383 28,940 93,070 869,707 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,421 3 65 21.6 39.9 2,705,279 37,456 66,329 119,739 1,291,802 1,293,738 32,527 42 132,658 1
configure.ocaml no-host 3,672 1 2 2.8 28.7 149,681 12,647 6,562 9,207 70,290 70,184 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.2 30,530 30,530 0 1,674 14,467 14,389 271 0 50,000 0
configure.yash no-host 1,680 1 2 2.7 33.4 143,443 11,459 6,615 7,160 70,503 65,780 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 10.1 117,212 65,788 41,998 4,969 54,592 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 10 6 4.8 bash
15 no-host abuild-print-help 9 3 6 3.8 dash
23 no-host abuild-print-help 21 12 9 9.4 osh-native
31 no-host abuild-print-help 22 12 10 10.1 osh-nosouffle
39 no-host abuild-print-help 18 11 7 6.4 osh-static
1 no-host bin-true 633 317 355 3.1 bash
9 no-host bin-true 447 278 172 1.6 dash
17 no-host bin-true 804 308 512 8.7 osh-native
25 no-host bin-true 813 299 530 9.4 osh-nosouffle
33 no-host bin-true 656 304 369 5.2 osh-static
2 no-host configure.cpython 13,691 7,549 6,533 34.5 bash
10 no-host configure.cpython 13,766 7,534 6,645 34.5 dash
18 no-host configure.cpython 13,383 7,180 6,486 34.5 osh-native
26 no-host configure.cpython 13,446 7,120 6,620 34.5 osh-nosouffle
34 no-host configure.cpython 12,842 7,110 5,975 34.8 osh-static
4 no-host configure.ocaml 3,623 1,439 1,225 28.5 bash
12 no-host configure.ocaml 3,574 1,478 1,121 28.7 dash
20 no-host configure.ocaml 3,677 1,442 1,276 28.7 osh-native
28 no-host configure.ocaml 3,672 1,473 1,241 28.7 osh-nosouffle
36 no-host configure.ocaml 3,654 1,454 1,233 28.7 osh-static
5 no-host configure.tcc 46 21 26 26.2 bash
13 no-host configure.tcc 41 23 18 26.3 dash
21 no-host configure.tcc 47 25 22 26.0 osh-native
29 no-host configure.tcc 47 25 22 26.2 osh-nosouffle
37 no-host configure.tcc 46 21 25 26.0 osh-static
3 no-host configure.util-linux 12,425 6,506 6,391 39.7 bash
11 no-host configure.util-linux 13,179 6,501 7,167 39.6 dash
19 no-host configure.util-linux 12,426 6,222 6,428 39.5 osh-native
27 no-host configure.util-linux 12,421 6,239 6,408 39.9 osh-nosouffle
35 no-host configure.util-linux 12,001 6,076 6,144 39.7 osh-static
6 no-host configure.yash 1,701 919 790 33.2 bash
14 no-host configure.yash 1,625 936 691 33.2 dash
22 no-host configure.yash 1,686 941 746 33.5 osh-native
30 no-host configure.yash 1,680 926 757 33.4 osh-nosouffle
38 no-host configure.yash 1,658 957 703 33.3 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 3 1 2 6.6 osh-native
24 no-host hello-world 3 1 2 6.9 osh-nosouffle
32 no-host hello-world 1 1 0 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,380 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,176 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,252 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,416 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,812 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 101,428 0 0 0 8 0 1,998 67 bash
9 no-host bin-true 49,414 0 0 0 8 0 2,998 58 dash
17 no-host bin-true 133,343 0 0 0 16 0 1,998 74 osh-native
25 no-host bin-true 134,966 0 0 0 16 0 1,991 85 osh-nosouffle
33 no-host bin-true 111,002 0 0 0 8 0 1,993 56 osh-static
2 no-host configure.cpython 1,618,590 0 0 0 25,272 0 14,065 1,037 bash
10 no-host configure.cpython 1,644,343 0 0 0 25,272 0 14,119 1,106 dash
18 no-host configure.cpython 1,598,030 0 0 0 25,280 0 11,296 804 osh-native
26 no-host configure.cpython 1,605,829 0 0 0 25,280 0 11,319 843 osh-nosouffle
34 no-host configure.cpython 1,521,004 0 0 0 25,272 0 11,315 849 osh-static
4 no-host configure.ocaml 298,749 0 0 0 4,432 0 2,019 191 bash
12 no-host configure.ocaml 280,603 0 0 0 4,432 0 2,105 187 dash
20 no-host configure.ocaml 306,379 0 0 0 4,440 0 2,003 226 osh-native
28 no-host configure.ocaml 307,341 0 0 0 4,440 0 2,000 206 osh-nosouffle
36 no-host configure.ocaml 300,737 0 0 0 4,432 0 1,996 220 osh-static
5 no-host configure.tcc 5,196 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,237 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,585 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,697 0 0 0 96 0 44 2 osh-nosouffle
37 no-host configure.tcc 5,134 0 0 0 88 0 44 7 osh-static
3 no-host configure.util-linux 1,543,088 1 0 232 35,944 0 18,992 1,023 bash
11 no-host configure.util-linux 1,700,103 3 0 0 35,936 0 17,195 1,186 dash
19 no-host configure.util-linux 1,497,861 0 0 0 35,952 0 16,200 945 osh-native
27 no-host configure.util-linux 1,512,222 1 0 0 35,952 0 16,194 920 osh-nosouffle
35 no-host configure.util-linux 1,457,179 3 0 0 35,936 0 16,189 958 osh-static
6 no-host configure.yash 173,394 0 0 0 3,616 0 877 96 bash
14 no-host configure.yash 159,614 0 0 0 3,616 0 1,000 116 dash
22 no-host configure.yash 176,646 0 0 0 3,624 0 859 99 osh-native
30 no-host configure.yash 177,352 0 0 0 3,632 0 857 101 osh-nosouffle
38 no-host configure.yash 173,045 0 0 0 3,616 0 859 103 osh-static
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 89 0 0 0 8 0 1 0 dash
16 no-host hello-world 393 0 0 0 16 0 0 0 osh-native
24 no-host hello-world 398 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-a79b03df
osh-nosouffle osh-f62d547b
osh-static osh-static-a497cd4d
host label host id
no-host no-host-9c670df1