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 14 7 18 21 17 1.34 1.23
bin-true no-host 470 315 649 668 514 1.38 1.09
configure.cpython no-host 12,306 12,670 12,365 12,355 12,042 1.00 0.98
configure.ocaml no-host 3,504 3,389 3,492 3,493 3,504 1.00 1.00
configure.tcc no-host 42 38 42 41 40 1.01 0.97
configure.util-linux no-host 11,128 11,671 11,263 11,319 11,195 1.01 1.01
configure.yash no-host 1,548 1,512 1,554 1,577 1,563 1.00 1.01
hello-world no-host 1 1 2 2 1 2.42 1.02

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,388 1,181 3,348 3,467 2,852 1.40 1.19
bin-true no-host 102,883 49,785 134,372 135,812 112,164 1.31 1.09
configure.cpython no-host 1,627,670 1,644,416 1,588,010 1,604,056 1,526,021 0.98 0.94
configure.ocaml no-host 300,256 282,118 307,501 307,604 300,975 1.02 1.00
configure.tcc no-host 5,250 4,233 5,665 5,689 5,144 1.08 0.98
configure.util-linux no-host 1,550,543 1,709,438 1,505,758 1,521,688 1,481,860 0.97 0.96
configure.yash no-host 173,662 159,960 177,124 177,626 173,371 1.02 1.00
hello-world no-host 152 87 394 401 181 2.59 1.19

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 10.1 6.4 1.95 1.32
bin-true no-host 3.3 1.6 8.8 9.4 5.1 2.68 1.56
configure.cpython no-host 34.7 34.7 34.6 34.6 34.5 1.00 1.00
configure.ocaml no-host 28.8 28.8 28.8 28.8 28.6 1.00 0.99
configure.tcc no-host 26.1 26.3 26.3 26.4 26.3 1.01 1.01
configure.util-linux no-host 39.7 39.7 39.6 39.5 39.6 1.00 1.00
configure.yash no-host 33.5 33.3 33.4 33.5 33.5 1.00 1.00
hello-world no-host 3.1 1.6 6.6 7.1 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 2 0 0 0.3 6.6 3,910 3,910 0 722 1,924 1,264 2 0 50,000 0
bin-true no-host 649 1 2 3.5 8.8 151,895 10,758 2,972 14,781 72,398 64,716 3,008 3 50,000 0
configure.cpython no-host 12,365 1 64 14.8 34.6 1,750,757 35,386 28,943 93,077 869,715 787,965 25,789 61 50,000 0
configure.util-linux no-host 11,263 3 68 21.6 39.6 2,705,293 37,458 66,331 119,745 1,291,810 1,293,738 32,527 42 132,662 1
configure.ocaml no-host 3,492 1 2 2.8 28.8 149,695 12,650 6,565 9,213 70,298 70,184 1,693 3 50,000 0
configure.tcc no-host 42 0 0 1.4 26.3 30,544 30,544 0 1,680 14,475 14,389 271 0 50,000 0
configure.yash no-host 1,554 1 2 2.7 33.4 143,457 11,463 6,619 7,166 70,511 65,780 2,095 3 50,000 0
abuild-print-help no-host 18 1 2 3.0 9.4 117,226 65,792 42,002 4,975 54,600 57,651 277 3 84,004 1
hello-world no-host 2 0 0 0.3 7.1 3,909 3,909 0 721 1,924 1,264 2 0 50,000 0
bin-true no-host 668 1 2 3.5 9.4 151,895 10,762 2,976 14,781 72,398 64,716 3,008 3 50,000 0
configure.cpython no-host 12,355 1 64 14.8 34.6 1,750,756 35,391 28,948 93,076 869,715 787,965 25,789 61 50,000 0
configure.util-linux no-host 11,319 3 68 21.6 39.5 2,705,293 37,464 66,337 119,745 1,291,810 1,293,738 32,527 42 132,674 1
configure.ocaml no-host 3,493 1 2 2.8 28.8 149,695 12,655 6,570 9,213 70,298 70,184 1,693 3 50,000 0
configure.tcc no-host 41 0 0 1.4 26.4 30,544 30,544 0 1,680 14,475 14,389 271 0 50,000 0
configure.yash no-host 1,577 1 2 2.7 33.5 143,457 11,467 6,623 7,166 70,511 65,780 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 10.1 117,226 65,796 42,006 4,975 54,600 57,651 277 3 84,012 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 14 7 7 4.8 bash
15 no-host abuild-print-help 7 6 2 3.9 dash
23 no-host abuild-print-help 18 10 9 9.4 osh-native
31 no-host abuild-print-help 21 13 9 10.1 osh-nosouffle
39 no-host abuild-print-help 17 14 3 6.4 osh-static
1 no-host bin-true 470 288 217 3.3 bash
9 no-host bin-true 315 229 87 1.6 dash
17 no-host bin-true 649 338 321 8.8 osh-native
25 no-host bin-true 668 310 364 9.4 osh-nosouffle
33 no-host bin-true 514 300 225 5.1 osh-static
2 no-host configure.cpython 12,306 7,813 4,802 34.7 bash
10 no-host configure.cpython 12,670 8,050 4,924 34.7 dash
18 no-host configure.cpython 12,365 7,581 4,971 34.6 osh-native
26 no-host configure.cpython 12,355 7,555 4,993 34.6 osh-nosouffle
34 no-host configure.cpython 12,042 7,487 4,685 34.5 osh-static
4 no-host configure.ocaml 3,504 1,567 947 28.8 bash
12 no-host configure.ocaml 3,389 1,545 838 28.8 dash
20 no-host configure.ocaml 3,492 1,533 972 28.8 osh-native
28 no-host configure.ocaml 3,493 1,572 926 28.8 osh-nosouffle
36 no-host configure.ocaml 3,504 1,545 964 28.6 osh-static
5 no-host configure.tcc 42 24 19 26.1 bash
13 no-host configure.tcc 38 24 14 26.3 dash
21 no-host configure.tcc 42 26 16 26.3 osh-native
29 no-host configure.tcc 41 23 18 26.4 osh-nosouffle
37 no-host configure.tcc 40 29 12 26.3 osh-static
3 no-host configure.util-linux 11,128 6,901 4,587 39.7 bash
11 no-host configure.util-linux 11,671 6,858 5,215 39.7 dash
19 no-host configure.util-linux 11,263 6,468 4,910 39.6 osh-native
27 no-host configure.util-linux 11,319 6,534 4,929 39.5 osh-nosouffle
35 no-host configure.util-linux 11,195 6,550 4,743 39.6 osh-static
6 no-host configure.yash 1,548 997 549 33.5 bash
14 no-host configure.yash 1,512 986 517 33.3 dash
22 no-host configure.yash 1,554 966 577 33.4 osh-native
30 no-host configure.yash 1,577 989 576 33.5 osh-nosouffle
38 no-host configure.yash 1,563 990 565 33.5 osh-static
0 no-host hello-world 1 1 0 3.1 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 2 2 0 6.6 osh-native
24 no-host hello-world 2 1 1 7.1 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,388 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,181 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 3,348 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,467 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,852 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 102,883 0 0 0 8 0 2,000 69 bash
9 no-host bin-true 49,785 0 0 0 8 0 2,996 41 dash
17 no-host bin-true 134,372 0 0 0 16 0 1,996 73 osh-native
25 no-host bin-true 135,812 0 0 0 16 0 1,993 92 osh-nosouffle
33 no-host bin-true 112,164 0 0 0 8 0 1,996 67 osh-static
2 no-host configure.cpython 1,627,670 0 0 0 25,272 0 14,051 936 bash
10 no-host configure.cpython 1,644,416 0 0 0 25,272 0 14,067 991 dash
18 no-host configure.cpython 1,588,010 0 0 0 25,288 0 11,317 870 osh-native
26 no-host configure.cpython 1,604,056 1 0 0 25,280 0 11,301 839 osh-nosouffle
34 no-host configure.cpython 1,526,021 0 0 0 25,272 0 11,327 822 osh-static
4 no-host configure.ocaml 300,256 0 0 0 4,432 0 2,019 197 bash
12 no-host configure.ocaml 282,118 0 0 0 4,432 0 2,103 174 dash
20 no-host configure.ocaml 307,501 0 0 0 4,440 0 2,003 205 osh-native
28 no-host configure.ocaml 307,604 0 0 0 4,440 0 2,003 179 osh-nosouffle
36 no-host configure.ocaml 300,975 0 0 0 4,432 0 2,001 189 osh-static
5 no-host configure.tcc 5,250 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,233 0 0 0 88 0 49 3 dash
21 no-host configure.tcc 5,665 0 0 0 96 0 44 1 osh-native
29 no-host configure.tcc 5,689 0 0 0 96 0 44 2 osh-nosouffle
37 no-host configure.tcc 5,144 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,550,543 0 0 232 35,944 0 18,787 957 bash
11 no-host configure.util-linux 1,709,438 1 0 0 35,936 0 16,844 1,045 dash
19 no-host configure.util-linux 1,505,758 1 0 0 35,952 0 16,218 839 osh-native
27 no-host configure.util-linux 1,521,688 4 0 0 35,944 0 16,208 836 osh-nosouffle
35 no-host configure.util-linux 1,481,860 0 0 0 35,944 0 16,203 908 osh-static
6 no-host configure.yash 173,662 0 0 0 3,616 0 876 91 bash
14 no-host configure.yash 159,960 0 0 0 3,616 0 1,004 99 dash
22 no-host configure.yash 177,124 0 0 0 3,624 0 856 92 osh-native
30 no-host configure.yash 177,626 0 0 0 3,624 0 857 97 osh-nosouffle
38 no-host configure.yash 173,371 0 0 0 3,616 0 858 93 osh-static
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 87 0 0 0 8 0 1 0 dash
16 no-host hello-world 394 0 0 0 16 0 1 1 osh-native
24 no-host hello-world 401 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 181 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-7dceb722
osh-nosouffle osh-05e7faa7
osh-static osh-static-9831153d
host label host id
no-host no-host-9c670df1