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 21 18 1.32 1.16
bin-true no-host 622 440 800 814 657 1.29 1.06
configure.cpython no-host 13,804 13,713 13,515 13,401 12,851 0.98 0.93
configure.ocaml no-host 3,645 3,602 3,664 3,674 3,634 1.01 1.00
configure.tcc no-host 45 41 47 47 43 1.03 0.94
configure.util-linux no-host 12,425 13,183 12,398 12,428 12,014 1.00 0.97
configure.yash no-host 1,667 1,643 1,682 1,684 1,655 1.01 0.99
hello-world no-host 1 1 3 3 1 2.47 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,382 1,154 3,284 3,394 2,852 1.38 1.20
bin-true no-host 100,446 49,409 129,007 133,338 112,726 1.28 1.12
configure.cpython no-host 1,623,061 1,636,795 1,581,195 1,607,952 1,525,412 0.97 0.94
configure.ocaml no-host 299,048 280,643 305,652 306,444 300,405 1.02 1.00
configure.tcc no-host 5,219 4,210 5,613 5,654 5,144 1.08 0.99
configure.util-linux no-host 1,543,712 1,697,147 1,501,188 1,516,958 1,452,717 0.97 0.94
configure.yash no-host 173,560 159,604 177,233 177,280 172,940 1.02 1.00
hello-world no-host 152 84 392 398 184 2.58 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.8 3.9 9.3 10.0 6.4 1.92 1.32
bin-true no-host 3.3 1.4 8.7 9.0 5.2 2.64 1.60
configure.cpython no-host 34.7 34.5 34.5 34.6 34.5 1.00 1.00
configure.ocaml no-host 28.7 28.9 28.7 28.6 28.6 1.00 1.00
configure.tcc no-host 26.3 26.1 26.1 26.1 26.2 0.99 1.00
configure.util-linux no-host 39.6 39.7 39.5 39.5 39.7 1.00 1.00
configure.yash no-host 33.1 33.3 33.3 33.1 33.1 1.00 1.00
hello-world no-host 3.3 1.6 6.6 6.9 3.4 2.00 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.6 3,907 3,907 0 722 1,921 1,264 2 0 50,000 0
bin-true no-host 800 1 2 3.5 8.7 151,892 10,755 2,969 14,781 72,395 64,716 3,008 3 50,000 0
configure.cpython no-host 13,515 1 67 14.8 34.5 1,750,754 35,383 28,940 93,077 869,712 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,398 3 65 21.6 39.5 2,705,290 37,455 66,328 119,745 1,291,807 1,293,738 32,527 42 132,656 1
configure.ocaml no-host 3,664 1 2 2.8 28.7 149,692 12,647 6,562 9,213 70,295 70,184 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.1 30,541 30,541 0 1,680 14,472 14,389 271 0 50,000 0
configure.yash no-host 1,682 1 2 2.7 33.3 143,454 11,460 6,616 7,166 70,508 65,780 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.3 117,223 65,789 41,999 4,975 54,597 57,651 277 3 83,998 1
hello-world no-host 3 0 0 0.3 6.9 3,906 3,906 0 721 1,921 1,264 2 0 50,000 0
bin-true no-host 814 1 2 3.5 9.0 151,892 10,759 2,973 14,781 72,395 64,716 3,008 3 50,000 0
configure.cpython no-host 13,401 1 65 14.8 34.6 1,750,753 35,388 28,945 93,076 869,712 787,965 25,789 61 50,000 0
configure.util-linux no-host 12,428 3 63 21.6 39.5 2,705,290 37,461 66,334 119,745 1,291,807 1,293,738 32,527 42 132,668 1
configure.ocaml no-host 3,674 1 2 2.8 28.6 149,692 12,652 6,567 9,213 70,295 70,184 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.1 30,541 30,541 0 1,680 14,472 14,389 271 0 50,000 0
configure.yash no-host 1,684 1 2 2.7 33.1 143,454 11,464 6,620 7,166 70,508 65,780 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 10.0 117,223 65,793 42,003 4,975 54,597 57,651 277 3 84,006 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 4 6 3.9 dash
23 no-host abuild-print-help 21 11 10 9.3 osh-native
31 no-host abuild-print-help 21 14 8 10.0 osh-nosouffle
39 no-host abuild-print-help 18 7 12 6.4 osh-static
1 no-host bin-true 622 302 358 3.3 bash
9 no-host bin-true 440 280 167 1.4 dash
17 no-host bin-true 800 314 503 8.7 osh-native
25 no-host bin-true 814 302 529 9.0 osh-nosouffle
33 no-host bin-true 657 309 366 5.2 osh-static
2 no-host configure.cpython 13,804 7,557 6,647 34.7 bash
10 no-host configure.cpython 13,713 7,542 6,571 34.5 dash
18 no-host configure.cpython 13,515 7,186 6,604 34.5 osh-native
26 no-host configure.cpython 13,401 7,069 6,624 34.6 osh-nosouffle
34 no-host configure.cpython 12,851 7,154 5,937 34.5 osh-static
4 no-host configure.ocaml 3,645 1,440 1,246 28.7 bash
12 no-host configure.ocaml 3,602 1,436 1,191 28.9 dash
20 no-host configure.ocaml 3,664 1,513 1,191 28.7 osh-native
28 no-host configure.ocaml 3,674 1,494 1,220 28.6 osh-nosouffle
36 no-host configure.ocaml 3,634 1,433 1,234 28.6 osh-static
5 no-host configure.tcc 45 19 27 26.3 bash
13 no-host configure.tcc 41 20 22 26.1 dash
21 no-host configure.tcc 47 25 22 26.1 osh-native
29 no-host configure.tcc 47 26 22 26.1 osh-nosouffle
37 no-host configure.tcc 43 28 15 26.2 osh-static
3 no-host configure.util-linux 12,425 6,453 6,436 39.6 bash
11 no-host configure.util-linux 13,183 6,456 7,201 39.7 dash
19 no-host configure.util-linux 12,398 6,214 6,409 39.5 osh-native
27 no-host configure.util-linux 12,428 6,154 6,498 39.5 osh-nosouffle
35 no-host configure.util-linux 12,014 6,159 6,068 39.7 osh-static
6 no-host configure.yash 1,667 953 722 33.1 bash
14 no-host configure.yash 1,643 954 690 33.3 dash
22 no-host configure.yash 1,682 962 723 33.3 osh-native
30 no-host configure.yash 1,684 924 763 33.1 osh-nosouffle
38 no-host configure.yash 1,655 943 714 33.1 osh-static
0 no-host hello-world 1 0 1 3.3 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 0 3 6.9 osh-nosouffle
32 no-host hello-world 1 1 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,382 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,154 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,284 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,394 0 0 0 16 0 39 2 osh-nosouffle
39 no-host abuild-print-help 2,852 0 0 0 8 0 39 1 osh-static
1 no-host bin-true 100,446 0 0 0 8 0 1,997 43 bash
9 no-host bin-true 49,409 0 0 0 8 0 2,999 43 dash
17 no-host bin-true 129,007 0 0 0 16 0 1,998 64 osh-native
25 no-host bin-true 133,338 0 0 0 16 0 2,000 68 osh-nosouffle
33 no-host bin-true 112,726 0 0 0 8 0 2,001 67 osh-static
2 no-host configure.cpython 1,623,061 0 0 0 25,272 0 14,087 1,046 bash
10 no-host configure.cpython 1,636,795 0 0 0 25,272 0 14,114 1,001 dash
18 no-host configure.cpython 1,581,195 0 0 0 25,280 0 11,305 854 osh-native
26 no-host configure.cpython 1,607,952 0 0 0 25,280 0 11,307 845 osh-nosouffle
34 no-host configure.cpython 1,525,412 1 0 0 25,272 0 11,296 861 osh-static
4 no-host configure.ocaml 299,048 0 0 0 4,432 0 2,019 202 bash
12 no-host configure.ocaml 280,643 0 0 0 4,432 0 2,103 201 dash
20 no-host configure.ocaml 305,652 0 0 0 4,440 0 2,002 235 osh-native
28 no-host configure.ocaml 306,444 0 0 0 4,440 0 1,999 220 osh-nosouffle
36 no-host configure.ocaml 300,405 0 0 0 4,432 0 1,998 209 osh-static
5 no-host configure.tcc 5,219 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,210 0 0 0 88 0 52 0 dash
21 no-host configure.tcc 5,613 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,654 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,144 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,543,712 0 0 0 35,944 0 18,972 997 bash
11 no-host configure.util-linux 1,697,147 0 0 496 35,936 0 17,046 1,126 dash
19 no-host configure.util-linux 1,501,188 1 0 0 35,952 0 16,130 881 osh-native
27 no-host configure.util-linux 1,516,958 0 0 0 35,944 0 16,175 902 osh-nosouffle
35 no-host configure.util-linux 1,452,717 1 0 0 35,936 0 16,122 889 osh-static
6 no-host configure.yash 173,560 0 0 0 3,616 0 876 102 bash
14 no-host configure.yash 159,604 0 0 0 3,616 0 1,004 97 dash
22 no-host configure.yash 177,233 0 0 0 3,632 0 857 93 osh-native
30 no-host configure.yash 177,280 0 0 0 3,624 0 859 88 osh-nosouffle
38 no-host configure.yash 172,940 0 0 0 3,616 0 858 103 osh-static
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 392 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 398 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 184 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-710580a8
osh-nosouffle osh-f501cad3
osh-static osh-static-fe3ec30c
host label host id
no-host no-host-9c670df1