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.31 1.16
bin-true no-host 623 442 794 802 652 1.27 1.05
configure.cpython no-host 13,703 13,607 13,278 13,372 12,766 0.97 0.93
configure.ocaml no-host 3,631 3,568 3,662 3,656 3,613 1.01 1.00
configure.tcc no-host 45 41 46 47 43 1.02 0.94
configure.util-linux no-host 12,412 13,074 12,329 12,428 11,942 0.99 0.96
configure.yash no-host 1,663 1,622 1,693 1,671 1,638 1.02 0.99
hello-world no-host 1 1 3 3 1 2.37 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,386 1,156 3,260 3,411 2,811 1.37 1.18
bin-true no-host 102,426 49,456 129,313 132,009 110,010 1.26 1.07
configure.cpython no-host 1,620,786 1,633,873 1,588,569 1,608,133 1,522,828 0.98 0.94
configure.ocaml no-host 299,082 280,473 306,595 306,881 300,815 1.03 1.01
configure.tcc no-host 5,241 4,205 5,619 5,696 5,132 1.07 0.98
configure.util-linux no-host 1,534,137 1,701,403 1,498,643 1,521,846 1,457,805 0.98 0.95
configure.yash no-host 173,300 159,580 176,551 177,418 173,064 1.02 1.00
hello-world no-host 150 88 391 395 182 2.61 1.21

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.1 6.4 2.00 1.36
bin-true no-host 3.3 1.7 8.8 9.0 5.2 2.68 1.60
configure.cpython no-host 34.5 34.7 34.5 34.5 34.4 1.00 1.00
configure.ocaml no-host 28.5 28.7 28.8 28.7 28.8 1.01 1.01
configure.tcc no-host 26.0 26.4 26.1 26.2 26.4 1.00 1.01
configure.util-linux no-host 39.5 39.6 39.6 39.6 39.7 1.00 1.01
configure.yash no-host 33.3 33.2 33.4 33.3 33.4 1.00 1.00
hello-world no-host 3.0 1.6 6.7 6.8 3.4 2.22 1.13

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 794 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,278 2 68 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,329 3 66 21.6 39.6 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,662 1 2 2.8 28.8 149,681 12,642 6,557 9,207 70,290 70,184 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.1 30,530 30,530 0 1,674 14,467 14,389 271 0 50,000 0
configure.yash no-host 1,693 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 20 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 802 1 2 3.5 9.0 151,881 10,754 2,968 14,775 72,390 64,716 3,008 3 50,000 0
configure.cpython no-host 13,372 2 68 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,428 3 65 21.6 39.6 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,656 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,671 1 2 2.7 33.3 143,443 11,459 6,615 7,160 70,503 65,780 2,095 3 50,000 0
abuild-print-help no-host 21 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.7 bash
15 no-host abuild-print-help 9 5 5 3.9 dash
23 no-host abuild-print-help 20 9 12 9.4 osh-native
31 no-host abuild-print-help 21 12 10 10.1 osh-nosouffle
39 no-host abuild-print-help 18 12 7 6.4 osh-static
1 no-host bin-true 623 310 350 3.3 bash
9 no-host bin-true 442 265 182 1.7 dash
17 no-host bin-true 794 319 492 8.8 osh-native
25 no-host bin-true 802 309 511 9.0 osh-nosouffle
33 no-host bin-true 652 310 359 5.2 osh-static
2 no-host configure.cpython 13,703 7,478 6,611 34.5 bash
10 no-host configure.cpython 13,607 7,500 6,507 34.7 dash
18 no-host configure.cpython 13,278 6,963 6,594 34.5 osh-native
26 no-host configure.cpython 13,372 7,104 6,557 34.5 osh-nosouffle
34 no-host configure.cpython 12,766 7,056 5,943 34.4 osh-static
4 no-host configure.ocaml 3,631 1,459 1,213 28.5 bash
12 no-host configure.ocaml 3,568 1,437 1,155 28.7 dash
20 no-host configure.ocaml 3,662 1,428 1,275 28.8 osh-native
28 no-host configure.ocaml 3,656 1,458 1,240 28.7 osh-nosouffle
36 no-host configure.ocaml 3,613 1,446 1,198 28.8 osh-static
5 no-host configure.tcc 45 24 22 26.0 bash
13 no-host configure.tcc 41 22 19 26.4 dash
21 no-host configure.tcc 46 26 21 26.1 osh-native
29 no-host configure.tcc 47 26 22 26.2 osh-nosouffle
37 no-host configure.tcc 43 24 19 26.4 osh-static
3 no-host configure.util-linux 12,412 6,514 6,364 39.5 bash
11 no-host configure.util-linux 13,074 6,373 7,196 39.6 dash
19 no-host configure.util-linux 12,329 6,094 6,457 39.6 osh-native
27 no-host configure.util-linux 12,428 6,163 6,492 39.6 osh-nosouffle
35 no-host configure.util-linux 11,942 6,164 5,997 39.7 osh-static
6 no-host configure.yash 1,663 947 724 33.3 bash
14 no-host configure.yash 1,622 923 701 33.2 dash
22 no-host configure.yash 1,693 948 749 33.4 osh-native
30 no-host configure.yash 1,671 882 793 33.3 osh-nosouffle
38 no-host configure.yash 1,638 916 724 33.4 osh-static
0 no-host hello-world 1 0 1 3.0 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.8 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,386 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,156 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,260 0 0 0 16 0 37 2 osh-native
31 no-host abuild-print-help 3,411 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,811 0 0 0 8 0 38 0 osh-static
1 no-host bin-true 102,426 0 0 0 8 0 1,998 59 bash
9 no-host bin-true 49,456 0 0 0 8 0 2,995 59 dash
17 no-host bin-true 129,313 0 0 0 16 0 1,998 70 osh-native
25 no-host bin-true 132,009 0 0 0 16 0 1,997 64 osh-nosouffle
33 no-host bin-true 110,010 0 0 0 8 0 1,997 71 osh-static
2 no-host configure.cpython 1,620,786 0 0 0 25,272 0 14,070 979 bash
10 no-host configure.cpython 1,633,873 0 0 0 25,272 0 14,115 988 dash
18 no-host configure.cpython 1,588,569 0 0 0 25,280 0 11,295 860 osh-native
26 no-host configure.cpython 1,608,133 0 0 0 25,280 0 11,309 872 osh-nosouffle
34 no-host configure.cpython 1,522,828 0 0 0 25,272 0 11,303 844 osh-static
4 no-host configure.ocaml 299,082 0 0 0 4,432 0 2,015 203 bash
12 no-host configure.ocaml 280,473 0 0 0 4,432 0 2,100 195 dash
20 no-host configure.ocaml 306,595 0 0 0 4,440 0 2,001 228 osh-native
28 no-host configure.ocaml 306,881 0 0 0 4,440 0 2,000 199 osh-nosouffle
36 no-host configure.ocaml 300,815 0 0 0 4,432 0 1,999 225 osh-static
5 no-host configure.tcc 5,241 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,205 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 5,619 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,696 0 0 0 96 0 45 4 osh-nosouffle
37 no-host configure.tcc 5,132 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,534,137 2 0 232 35,944 0 18,952 1,063 bash
11 no-host configure.util-linux 1,701,403 0 0 0 35,936 0 17,055 1,172 dash
19 no-host configure.util-linux 1,498,643 2 0 0 35,952 0 16,198 937 osh-native
27 no-host configure.util-linux 1,521,846 0 0 0 35,944 0 16,185 890 osh-nosouffle
35 no-host configure.util-linux 1,457,805 2 0 0 35,936 0 16,131 848 osh-static
6 no-host configure.yash 173,300 0 0 0 3,616 0 878 102 bash
14 no-host configure.yash 159,580 0 0 0 3,616 0 1,003 111 dash
22 no-host configure.yash 176,551 0 0 0 3,632 0 857 95 osh-native
30 no-host configure.yash 177,418 0 0 0 3,624 0 856 101 osh-nosouffle
38 no-host configure.yash 173,064 0 0 0 3,616 0 858 108 osh-static
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 88 0 0 0 8 0 1 0 dash
16 no-host hello-world 391 0 0 0 16 0 1 1 osh-native
24 no-host hello-world 395 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 182 0 0 0 8 0 1 1 osh-static

Shell and Host

shell label shell id
bash bash-36833674
dash dash-cea41b3e
osh-native osh-179b91c9
osh-nosouffle osh-36498d91
osh-static osh-static-695fb5b8
host label host id
no-host no-host-9c670df1