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 12 7 17 19 16 1.37 1.30
bin-true no-host 437 297 606 590 507 1.38 1.16
configure.cpython no-host 11,385 11,519 11,283 11,571 11,497 0.99 1.01
configure.ocaml no-host 3,188 3,214 3,275 3,433 3,392 1.03 1.06
configure.tcc no-host 37 35 38 41 38 1.04 1.02
configure.util-linux no-host 9,951 10,812 10,110 11,084 10,576 1.02 1.06
configure.yash no-host 1,403 1,373 1,396 1,511 1,477 0.99 1.05
hello-world no-host 1 1 2 2 1 2.33 1.07

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,399 1,174 3,360 3,444 2,808 1.40 1.17
bin-true no-host 101,898 49,861 136,015 136,994 110,791 1.33 1.09
configure.cpython no-host 1,633,048 1,647,428 1,598,190 1,616,679 1,524,654 0.98 0.93
configure.ocaml no-host 299,953 281,450 307,478 307,735 300,557 1.03 1.00
configure.tcc no-host 5,223 4,222 5,613 5,717 5,143 1.07 0.98
configure.util-linux no-host 1,546,675 1,710,037 1,503,312 1,510,517 1,454,135 0.97 0.94
configure.yash no-host 173,896 159,930 177,202 177,250 173,021 1.02 0.99
hello-world no-host 154 84 391 401 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.7 10.1 6.4 2.00 1.32
bin-true no-host 3.3 1.7 8.7 9.2 5.1 2.64 1.56
configure.cpython no-host 34.4 34.6 34.7 34.4 34.4 1.01 1.00
configure.ocaml no-host 28.8 28.8 28.9 28.6 28.5 1.00 0.99
configure.tcc no-host 26.0 26.0 26.3 26.0 26.4 1.01 1.02
configure.util-linux no-host 39.5 39.5 39.6 39.4 39.7 1.00 1.01
configure.yash no-host 33.1 33.5 33.5 33.4 33.5 1.01 1.01
hello-world no-host 3.3 1.6 6.6 7.1 3.3 2.00 1.00

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,896 3,896 0 716 1,916 1,264 2 0 50,000 0
bin-true no-host 606 1 2 3.5 8.7 152,882 11,691 2,964 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 11,283 1 59 14.8 34.7 1,753,364 36,445 28,935 93,071 872,316 787,977 25,789 61 50,000 0
configure.util-linux no-host 10,110 3 61 21.6 39.6 2,709,910 37,457 66,323 119,739 1,296,433 1,293,738 32,527 42 132,646 1
configure.ocaml no-host 3,275 1 2 2.8 28.9 149,932 12,652 6,557 9,207 70,540 70,185 1,693 3 50,000 0
configure.tcc no-host 38 0 0 1.4 26.3 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,396 1 2 2.7 33.5 143,736 11,764 6,618 7,160 70,796 65,780 2,095 3 50,000 0
abuild-print-help no-host 17 1 2 3.0 9.7 117,251 65,784 41,994 4,969 54,631 57,651 277 3 83,988 1
hello-world no-host 2 0 0 0.3 7.1 3,895 3,895 0 715 1,916 1,264 2 0 50,000 0
bin-true no-host 590 1 2 3.5 9.2 152,882 11,695 2,968 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 11,571 1 60 14.9 34.4 1,753,363 36,450 28,940 93,070 872,316 787,977 25,789 61 50,000 0
configure.util-linux no-host 11,084 3 65 21.6 39.4 2,709,910 37,463 66,329 119,739 1,296,433 1,293,738 32,527 42 132,658 1
configure.ocaml no-host 3,433 1 2 2.8 28.6 149,932 12,657 6,562 9,207 70,540 70,185 1,693 3 50,000 0
configure.tcc no-host 41 0 0 1.4 26.0 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,511 1 2 2.7 33.4 143,736 11,768 6,622 7,160 70,796 65,780 2,095 3 50,000 0
abuild-print-help no-host 19 1 2 3.0 10.1 117,251 65,788 41,998 4,969 54,631 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 12 10 3 4.8 bash
15 no-host abuild-print-help 7 5 2 3.9 dash
23 no-host abuild-print-help 17 11 7 9.7 osh-native
31 no-host abuild-print-help 19 11 8 10.1 osh-nosouffle
39 no-host abuild-print-help 16 9 8 6.4 osh-static
1 no-host bin-true 437 276 189 3.3 bash
9 no-host bin-true 297 221 77 1.7 dash
17 no-host bin-true 606 319 298 8.7 osh-native
25 no-host bin-true 590 309 293 9.2 osh-nosouffle
33 no-host bin-true 507 276 244 5.1 osh-static
2 no-host configure.cpython 11,385 7,557 4,080 34.4 bash
10 no-host configure.cpython 11,519 7,559 4,230 34.6 dash
18 no-host configure.cpython 11,283 7,097 4,366 34.7 osh-native
26 no-host configure.cpython 11,571 7,287 4,472 34.4 osh-nosouffle
34 no-host configure.cpython 11,497 7,325 4,321 34.4 osh-static
4 no-host configure.ocaml 3,188 1,428 776 28.8 bash
12 no-host configure.ocaml 3,214 1,438 778 28.8 dash
20 no-host configure.ocaml 3,275 1,448 840 28.9 osh-native
28 no-host configure.ocaml 3,433 1,517 933 28.6 osh-nosouffle
36 no-host configure.ocaml 3,392 1,501 901 28.5 osh-static
5 no-host configure.tcc 37 24 13 26.0 bash
13 no-host configure.tcc 35 22 13 26.0 dash
21 no-host configure.tcc 38 24 15 26.3 osh-native
29 no-host configure.tcc 41 25 16 26.0 osh-nosouffle
37 no-host configure.tcc 38 22 16 26.4 osh-static
3 no-host configure.util-linux 9,951 6,529 3,752 39.5 bash
11 no-host configure.util-linux 10,812 6,559 4,607 39.5 dash
19 no-host configure.util-linux 10,110 6,076 4,168 39.6 osh-native
27 no-host configure.util-linux 11,084 6,525 4,697 39.4 osh-nosouffle
35 no-host configure.util-linux 10,576 6,418 4,292 39.7 osh-static
6 no-host configure.yash 1,403 917 485 33.1 bash
14 no-host configure.yash 1,373 909 456 33.5 dash
22 no-host configure.yash 1,396 884 506 33.5 osh-native
30 no-host configure.yash 1,511 932 570 33.4 osh-nosouffle
38 no-host configure.yash 1,477 968 501 33.5 osh-static
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 2 1 1 6.6 osh-native
24 no-host hello-world 2 1 1 7.1 osh-nosouffle
32 no-host hello-world 1 0 1 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,399 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,174 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,360 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,444 0 0 0 16 0 39 1 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,898 0 0 0 8 0 2,000 52 bash
9 no-host bin-true 49,861 0 0 0 8 0 2,999 36 dash
17 no-host bin-true 136,015 0 0 0 16 0 1,998 75 osh-native
25 no-host bin-true 136,994 0 0 0 16 0 2,001 58 osh-nosouffle
33 no-host bin-true 110,791 0 0 0 8 0 2,000 66 osh-static
2 no-host configure.cpython 1,633,048 0 0 0 25,272 0 14,054 952 bash
10 no-host configure.cpython 1,647,428 0 0 0 25,272 0 14,112 1,116 dash
18 no-host configure.cpython 1,598,190 0 0 0 25,280 0 11,277 795 osh-native
26 no-host configure.cpython 1,616,679 1 0 0 25,280 0 11,297 768 osh-nosouffle
34 no-host configure.cpython 1,524,654 0 0 0 25,272 0 11,309 814 osh-static
4 no-host configure.ocaml 299,953 0 0 0 4,432 0 2,020 179 bash
12 no-host configure.ocaml 281,450 0 0 0 4,432 0 2,111 168 dash
20 no-host configure.ocaml 307,478 0 0 0 4,440 0 2,003 197 osh-native
28 no-host configure.ocaml 307,735 0 0 0 4,440 0 1,994 199 osh-nosouffle
36 no-host configure.ocaml 300,557 0 0 0 4,432 0 2,004 211 osh-static
5 no-host configure.tcc 5,223 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,222 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,613 0 0 0 96 0 44 2 osh-native
29 no-host configure.tcc 5,717 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,143 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,546,675 0 0 0 35,944 0 18,858 956 bash
11 no-host configure.util-linux 1,710,037 0 0 0 35,936 0 16,956 1,090 dash
19 no-host configure.util-linux 1,503,312 4 0 0 35,960 0 16,208 775 osh-native
27 no-host configure.util-linux 1,510,517 1 0 0 35,944 0 16,234 980 osh-nosouffle
35 no-host configure.util-linux 1,454,135 3 0 0 35,936 0 16,186 915 osh-static
6 no-host configure.yash 173,896 0 0 0 3,616 0 878 94 bash
14 no-host configure.yash 159,930 0 0 0 3,616 0 1,002 86 dash
22 no-host configure.yash 177,202 0 0 8 3,624 0 856 91 osh-native
30 no-host configure.yash 177,250 0 0 0 3,624 0 860 94 osh-nosouffle
38 no-host configure.yash 173,021 0 0 0 3,616 0 859 86 osh-static
0 no-host hello-world 154 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 391 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 401 0 0 0 16 0 1 1 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-9a9eec35
osh-nosouffle osh-5edea4ca
osh-static osh-static-117df458
host label host id
no-host no-host-9c670df1