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 21 22 18 1.36 1.18
bin-true no-host 620 442 809 813 666 1.30 1.07
configure.cpython no-host 13,794 13,854 13,734 13,793 13,100 1.00 0.95
configure.ocaml no-host 3,655 3,614 3,707 3,767 3,667 1.01 1.00
configure.tcc no-host 46 43 48 48 44 1.04 0.96
configure.util-linux no-host 12,623 13,211 12,619 12,701 12,236 1.00 0.97
configure.yash no-host 1,712 1,654 1,736 1,756 1,672 1.01 0.98
hello-world no-host 1 1 3 3 1 2.42 1.00

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,377 1,160 3,263 3,420 2,808 1.37 1.18
bin-true no-host 101,456 49,414 133,348 130,952 111,065 1.31 1.09
configure.cpython no-host 1,626,714 1,643,513 1,583,773 1,602,575 1,524,501 0.97 0.94
configure.ocaml no-host 299,062 281,106 306,398 306,513 301,174 1.02 1.01
configure.tcc no-host 5,235 4,207 5,619 5,701 5,153 1.07 0.98
configure.util-linux no-host 1,541,121 1,702,651 1,502,276 1,513,120 1,457,077 0.97 0.95
configure.yash no-host 173,458 159,588 176,461 176,637 173,129 1.02 1.00
hello-world no-host 152 83 391 391 182 2.57 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 3.9 9.4 9.8 6.4 1.95 1.32
bin-true no-host 3.3 1.6 8.8 9.3 5.2 2.68 1.60
configure.cpython no-host 34.6 34.6 34.5 34.7 34.3 1.00 0.99
configure.ocaml no-host 28.7 28.7 28.7 28.7 28.7 1.00 1.00
configure.tcc no-host 26.2 26.2 25.9 26.3 26.3 0.99 1.01
configure.util-linux no-host 39.7 39.9 39.5 39.7 39.7 0.99 1.00
configure.yash no-host 33.3 33.4 33.4 33.4 33.4 1.00 1.00
hello-world no-host 3.1 1.6 6.6 6.8 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 809 1 2 3.5 8.8 151,881 10,750 2,964 14,775 72,390 64,716 3,008 3 50,000 0
configure.cpython no-host 13,734 2 69 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,619 3 67 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,707 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 48 0 0 1.4 25.9 30,530 30,530 0 1,674 14,467 14,389 271 0 50,000 0
configure.yash no-host 1,736 1 2 2.7 33.4 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.8 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.3 151,881 10,754 2,968 14,775 72,390 64,716 3,008 3 50,000 0
configure.cpython no-host 13,793 1 68 14.8 34.7 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,701 3 67 21.6 39.7 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,767 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 48 0 0 1.4 26.3 30,530 30,530 0 1,674 14,467 14,389 271 0 50,000 0
configure.yash no-host 1,756 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 9.8 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 15 7 9 4.8 bash
15 no-host abuild-print-help 9 5 4 3.9 dash
23 no-host abuild-print-help 21 11 11 9.4 osh-native
31 no-host abuild-print-help 22 10 13 9.8 osh-nosouffle
39 no-host abuild-print-help 18 10 9 6.4 osh-static
1 no-host bin-true 620 313 345 3.3 bash
9 no-host bin-true 442 277 170 1.6 dash
17 no-host bin-true 809 304 522 8.8 osh-native
25 no-host bin-true 813 302 528 9.3 osh-nosouffle
33 no-host bin-true 666 324 359 5.2 osh-static
2 no-host configure.cpython 13,794 7,569 6,617 34.6 bash
10 no-host configure.cpython 13,854 7,582 6,683 34.6 dash
18 no-host configure.cpython 13,734 7,299 6,714 34.5 osh-native
26 no-host configure.cpython 13,793 7,313 6,771 34.7 osh-nosouffle
34 no-host configure.cpython 13,100 7,242 6,102 34.3 osh-static
4 no-host configure.ocaml 3,655 1,503 1,193 28.7 bash
12 no-host configure.ocaml 3,614 1,465 1,174 28.7 dash
20 no-host configure.ocaml 3,707 1,499 1,249 28.7 osh-native
28 no-host configure.ocaml 3,767 1,525 1,282 28.7 osh-nosouffle
36 no-host configure.ocaml 3,667 1,484 1,214 28.7 osh-static
5 no-host configure.tcc 46 23 23 26.2 bash
13 no-host configure.tcc 43 25 18 26.2 dash
21 no-host configure.tcc 48 20 28 25.9 osh-native
29 no-host configure.tcc 48 27 22 26.3 osh-nosouffle
37 no-host configure.tcc 44 20 25 26.3 osh-static
3 no-host configure.util-linux 12,623 6,649 6,446 39.7 bash
11 no-host configure.util-linux 13,211 6,463 7,242 39.9 dash
19 no-host configure.util-linux 12,619 6,185 6,664 39.5 osh-native
27 no-host configure.util-linux 12,701 6,258 6,673 39.7 osh-nosouffle
35 no-host configure.util-linux 12,236 6,311 6,150 39.7 osh-static
6 no-host configure.yash 1,712 951 770 33.3 bash
14 no-host configure.yash 1,654 958 698 33.4 dash
22 no-host configure.yash 1,736 932 807 33.4 osh-native
30 no-host configure.yash 1,756 938 821 33.4 osh-nosouffle
38 no-host configure.yash 1,672 929 745 33.4 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 2 1 6.6 osh-native
24 no-host hello-world 3 1 2 6.8 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,377 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,160 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,263 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,420 0 0 0 16 0 39 2 osh-nosouffle
39 no-host abuild-print-help 2,808 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 101,456 0 0 0 8 0 1,997 54 bash
9 no-host bin-true 49,414 0 0 0 8 0 2,987 59 dash
17 no-host bin-true 133,348 0 0 0 16 0 1,995 71 osh-native
25 no-host bin-true 130,952 0 0 0 16 0 2,002 79 osh-nosouffle
33 no-host bin-true 111,065 0 0 0 8 0 1,998 69 osh-static
2 no-host configure.cpython 1,626,714 0 0 0 25,272 0 14,064 1,004 bash
10 no-host configure.cpython 1,643,513 0 0 0 25,272 0 14,119 954 dash
18 no-host configure.cpython 1,583,773 0 0 0 25,280 0 11,288 846 osh-native
26 no-host configure.cpython 1,602,575 0 0 0 25,280 0 11,297 827 osh-nosouffle
34 no-host configure.cpython 1,524,501 0 0 0 25,272 0 11,298 860 osh-static
4 no-host configure.ocaml 299,062 0 0 0 4,432 0 2,018 213 bash
12 no-host configure.ocaml 281,106 0 0 0 4,432 0 2,109 192 dash
20 no-host configure.ocaml 306,398 0 0 0 4,440 0 2,001 207 osh-native
28 no-host configure.ocaml 306,513 0 0 0 4,440 0 2,001 219 osh-nosouffle
36 no-host configure.ocaml 301,174 0 0 0 4,432 0 1,999 226 osh-static
5 no-host configure.tcc 5,235 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,207 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,619 0 0 0 96 0 45 1 osh-native
29 no-host configure.tcc 5,701 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,153 0 0 0 88 0 45 4 osh-static
3 no-host configure.util-linux 1,541,121 0 0 232 35,944 0 18,988 1,060 bash
11 no-host configure.util-linux 1,702,651 0 0 0 35,936 0 17,132 1,201 dash
19 no-host configure.util-linux 1,502,276 0 0 0 35,952 0 16,165 891 osh-native
27 no-host configure.util-linux 1,513,120 0 0 0 35,944 0 16,205 998 osh-nosouffle
35 no-host configure.util-linux 1,457,077 1 0 0 35,936 0 16,227 866 osh-static
6 no-host configure.yash 173,458 0 0 0 3,616 0 879 106 bash
14 no-host configure.yash 159,588 0 0 0 3,616 0 1,001 96 dash
22 no-host configure.yash 176,461 0 0 0 3,632 0 858 99 osh-native
30 no-host configure.yash 176,637 0 0 0 3,624 0 857 99 osh-nosouffle
38 no-host configure.yash 173,129 0 0 0 3,616 0 857 103 osh-static
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 391 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 391 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-eceb3438
osh-nosouffle osh-b5d794ee
osh-static osh-static-e7780aa0
host label host id
no-host no-host-9c670df1