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 22 19 1.29 1.18
bin-true no-host 632 448 802 815 658 1.27 1.04
configure.cpython no-host 13,952 13,963 13,458 13,514 12,909 0.96 0.93
configure.ocaml no-host 3,695 3,612 3,744 3,693 3,654 1.01 0.99
configure.tcc no-host 47 41 56 47 43 1.20 0.93
configure.util-linux no-host 12,706 13,310 12,485 12,497 12,037 0.98 0.95
configure.yash no-host 1,713 1,637 1,689 1,697 1,663 0.99 0.97
hello-world no-host 1 1 3 3 1 2.32 1.01

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,365 1,177 3,264 3,403 2,839 1.38 1.20
bin-true no-host 99,422 49,394 131,979 135,342 112,720 1.33 1.13
configure.cpython no-host 1,621,907 1,645,664 1,588,429 1,611,718 1,522,854 0.98 0.94
configure.ocaml no-host 299,218 280,770 306,393 306,765 300,301 1.02 1.00
configure.tcc no-host 5,246 4,220 5,608 5,651 5,135 1.07 0.98
configure.util-linux no-host 1,536,287 1,699,957 1,522,263 1,519,959 1,447,736 0.99 0.94
configure.yash no-host 173,265 159,622 176,191 177,136 172,948 1.02 1.00
hello-world no-host 154 85 391 399 181 2.54 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.9 9.4 10.1 6.3 1.95 1.30
bin-true no-host 3.3 1.4 8.7 9.3 5.1 2.64 1.56
configure.cpython no-host 34.5 34.7 34.6 34.7 34.5 1.00 1.00
configure.ocaml no-host 28.7 28.6 28.6 28.7 28.6 1.00 1.00
configure.tcc no-host 26.2 26.0 26.4 26.3 26.3 1.01 1.00
configure.util-linux no-host 39.6 39.5 39.6 39.6 39.7 1.00 1.00
configure.yash no-host 33.4 33.4 33.2 33.4 33.4 1.00 1.00
hello-world no-host 3.1 1.6 6.4 6.9 3.3 2.04 1.04

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.4 3,913 3,913 0 723 1,921 1,269 2 0 50,000 0
bin-true no-host 802 1 2 3.5 8.7 151,898 10,761 2,975 14,782 72,395 64,721 3,008 3 50,000 0
configure.cpython no-host 13,458 2 66 14.8 34.6 1,750,825 35,396 28,951 93,078 869,762 787,985 25,789 61 50,000 0
configure.util-linux no-host 12,485 3 65 21.6 39.6 2,705,391 37,468 66,339 119,746 1,291,872 1,293,773 32,527 42 132,678 1
configure.ocaml no-host 3,744 1 2 2.8 28.6 149,698 12,653 6,568 9,214 70,295 70,189 1,693 3 50,000 0
configure.tcc no-host 56 0 0 1.4 26.4 30,549 30,549 0 1,681 14,473 14,395 271 0 50,000 0
configure.yash no-host 1,689 1 2 2.7 33.2 143,474 11,505 6,622 7,168 70,525 65,781 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 3.0 9.4 117,232 65,798 42,005 4,977 54,599 57,656 277 3 84,010 1
hello-world no-host 3 0 0 0.3 6.9 3,912 3,912 0 722 1,921 1,269 2 0 50,000 0
bin-true no-host 815 1 2 3.5 9.3 151,898 10,765 2,979 14,782 72,395 64,721 3,008 3 50,000 0
configure.cpython no-host 13,514 1 65 14.8 34.7 1,750,824 35,401 28,956 93,077 869,762 787,985 25,789 61 50,000 0
configure.util-linux no-host 12,497 3 63 21.6 39.6 2,705,391 37,474 66,345 119,746 1,291,872 1,293,773 32,527 42 132,690 1
configure.ocaml no-host 3,693 1 2 2.8 28.7 149,698 12,658 6,573 9,214 70,295 70,189 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.3 30,549 30,549 0 1,681 14,473 14,395 271 0 50,000 0
configure.yash no-host 1,697 1 2 2.7 33.4 143,474 11,509 6,626 7,168 70,525 65,781 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 10.1 117,232 65,802 42,009 4,977 54,599 57,656 277 3 84,018 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 8 4.8 bash
15 no-host abuild-print-help 9 4 5 3.9 dash
23 no-host abuild-print-help 20 12 9 9.4 osh-native
31 no-host abuild-print-help 22 13 10 10.1 osh-nosouffle
39 no-host abuild-print-help 19 9 10 6.3 osh-static
1 no-host bin-true 632 322 350 3.3 bash
9 no-host bin-true 448 278 175 1.4 dash
17 no-host bin-true 802 312 507 8.7 osh-native
25 no-host bin-true 815 305 527 9.3 osh-nosouffle
33 no-host bin-true 658 322 353 5.1 osh-static
2 no-host configure.cpython 13,952 7,671 6,631 34.5 bash
10 no-host configure.cpython 13,963 7,687 6,691 34.7 dash
18 no-host configure.cpython 13,458 7,044 6,693 34.6 osh-native
26 no-host configure.cpython 13,514 7,123 6,683 34.7 osh-nosouffle
34 no-host configure.cpython 12,909 7,136 6,011 34.5 osh-static
4 no-host configure.ocaml 3,695 1,479 1,258 28.7 bash
12 no-host configure.ocaml 3,612 1,446 1,190 28.6 dash
20 no-host configure.ocaml 3,744 1,453 1,335 28.6 osh-native
28 no-host configure.ocaml 3,693 1,471 1,263 28.7 osh-nosouffle
36 no-host configure.ocaml 3,654 1,462 1,223 28.6 osh-static
5 no-host configure.tcc 47 24 23 26.2 bash
13 no-host configure.tcc 41 26 15 26.0 dash
21 no-host configure.tcc 56 24 33 26.4 osh-native
29 no-host configure.tcc 47 26 21 26.3 osh-nosouffle
37 no-host configure.tcc 43 22 22 26.3 osh-static
3 no-host configure.util-linux 12,706 6,567 6,617 39.6 bash
11 no-host configure.util-linux 13,310 6,544 7,245 39.5 dash
19 no-host configure.util-linux 12,485 6,116 6,594 39.6 osh-native
27 no-host configure.util-linux 12,497 6,194 6,528 39.6 osh-nosouffle
35 no-host configure.util-linux 12,037 6,125 6,128 39.7 osh-static
6 no-host configure.yash 1,713 977 745 33.4 bash
14 no-host configure.yash 1,637 951 687 33.4 dash
22 no-host configure.yash 1,689 957 734 33.2 osh-native
30 no-host configure.yash 1,697 960 740 33.4 osh-nosouffle
38 no-host configure.yash 1,663 929 737 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 0 3 6.4 osh-native
24 no-host hello-world 3 2 1 6.9 osh-nosouffle
32 no-host hello-world 1 1 0 3.3 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,365 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,177 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,264 0 0 0 16 0 39 2 osh-native
31 no-host abuild-print-help 3,403 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,839 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 99,422 0 0 0 8 0 1,998 65 bash
9 no-host bin-true 49,394 0 0 0 8 0 2,994 58 dash
17 no-host bin-true 131,979 0 0 0 16 0 1,999 76 osh-native
25 no-host bin-true 135,342 0 0 0 16 0 1,998 65 osh-nosouffle
33 no-host bin-true 112,720 0 0 0 8 0 1,998 56 osh-static
2 no-host configure.cpython 1,621,907 0 0 0 25,272 0 14,082 1,033 bash
10 no-host configure.cpython 1,645,664 0 0 0 25,272 0 14,127 1,054 dash
18 no-host configure.cpython 1,588,429 0 0 0 25,280 0 11,299 866 osh-native
26 no-host configure.cpython 1,611,718 0 0 0 25,280 0 11,306 864 osh-nosouffle
34 no-host configure.cpython 1,522,854 0 0 0 25,272 0 11,309 875 osh-static
4 no-host configure.ocaml 299,218 0 0 0 4,432 0 2,016 184 bash
12 no-host configure.ocaml 280,770 0 0 0 4,432 0 2,104 198 dash
20 no-host configure.ocaml 306,393 0 0 0 4,440 0 2,002 202 osh-native
28 no-host configure.ocaml 306,765 0 0 0 4,440 0 2,001 200 osh-nosouffle
36 no-host configure.ocaml 300,301 0 0 0 4,432 0 2,004 219 osh-static
5 no-host configure.tcc 5,246 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,220 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,608 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,651 0 0 0 96 0 45 1 osh-nosouffle
37 no-host configure.tcc 5,135 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,536,287 1 0 0 35,944 0 18,920 1,119 bash
11 no-host configure.util-linux 1,699,957 1 0 336 35,936 0 17,066 1,237 dash
19 no-host configure.util-linux 1,522,263 2 0 0 35,952 0 16,203 961 osh-native
27 no-host configure.util-linux 1,519,959 0 0 0 35,952 0 16,171 944 osh-nosouffle
35 no-host configure.util-linux 1,447,736 1 0 0 35,944 0 16,154 890 osh-static
6 no-host configure.yash 173,265 0 0 0 3,616 0 877 91 bash
14 no-host configure.yash 159,622 0 0 0 3,616 0 1,001 106 dash
22 no-host configure.yash 176,191 0 0 0 3,632 0 858 108 osh-native
30 no-host configure.yash 177,136 0 0 0 3,624 0 858 105 osh-nosouffle
38 no-host configure.yash 172,948 0 0 0 3,616 0 856 97 osh-static
0 no-host hello-world 154 0 0 0 8 0 1 1 bash
8 no-host hello-world 85 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 399 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-c27df3c5
osh-nosouffle osh-591dd16e
osh-static osh-static-5564862e
host label host id
no-host no-host-9c670df1