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 13 7 19 19 16 1.42 1.23
bin-true no-host 452 317 619 619 515 1.37 1.14
configure.cpython no-host 11,957 12,058 11,838 11,932 11,721 0.99 0.98
configure.ocaml no-host 3,365 3,339 3,495 3,446 3,401 1.04 1.01
configure.tcc no-host 39 35 40 46 37 1.02 0.94
configure.util-linux no-host 10,595 11,359 10,840 10,969 10,692 1.02 1.01
configure.yash no-host 1,474 1,456 1,708 1,519 1,480 1.16 1.00
hello-world no-host 1 1 2 2 1 2.36 1.06

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,398 1,173 3,360 3,404 2,802 1.40 1.17
bin-true no-host 100,841 49,872 135,999 139,038 111,739 1.35 1.11
configure.cpython no-host 1,637,373 1,637,962 1,592,560 1,613,443 1,525,853 0.97 0.93
configure.ocaml no-host 300,023 281,625 305,833 307,730 300,723 1.02 1.00
configure.tcc no-host 5,257 4,239 5,650 5,716 5,142 1.07 0.98
configure.util-linux no-host 1,542,649 1,711,126 1,502,111 1,516,733 1,456,391 0.97 0.94
configure.yash no-host 173,743 159,958 177,256 177,217 173,012 1.02 1.00
hello-world no-host 155 88 394 401 182 2.54 1.17

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 4.1 9.4 9.7 6.4 1.95 1.32
bin-true no-host 3.3 1.6 8.8 9.0 5.2 2.68 1.60
configure.cpython no-host 34.5 34.6 34.6 34.5 34.6 1.00 1.00
configure.ocaml no-host 28.8 28.8 28.9 28.8 28.7 1.00 1.00
configure.tcc no-host 26.2 26.2 26.2 26.3 26.2 1.00 1.00
configure.util-linux no-host 39.6 39.6 39.7 39.7 39.6 1.00 1.00
configure.yash no-host 33.5 33.3 33.4 33.3 33.4 1.00 1.00
hello-world no-host 3.3 1.6 6.6 7.1 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 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 619 1 2 3.5 8.8 152,882 11,691 2,964 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 11,838 1 63 14.8 34.6 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,840 3 67 21.6 39.7 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,495 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 40 0 0 1.4 26.2 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,708 1 2 2.7 33.4 143,778 11,764 6,618 7,161 70,824 65,793 2,095 3 50,000 0
abuild-print-help no-host 19 1 2 3.0 9.4 117,276 65,784 41,994 4,970 54,643 57,663 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 619 1 2 3.5 9.0 152,882 11,695 2,968 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 11,932 1 63 14.9 34.5 1,753,363 36,450 28,940 93,070 872,316 787,977 25,789 61 50,000 0
configure.util-linux no-host 10,969 3 65 21.6 39.7 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,446 1 2 2.8 28.8 149,932 12,657 6,562 9,207 70,540 70,185 1,693 3 50,000 0
configure.tcc no-host 46 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,519 1 2 2.7 33.3 143,778 11,768 6,622 7,161 70,824 65,793 2,095 3 50,000 0
abuild-print-help no-host 19 1 2 3.0 9.7 117,276 65,788 41,998 4,970 54,643 57,663 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 13 10 3 4.8 bash
15 no-host abuild-print-help 7 5 2 4.1 dash
23 no-host abuild-print-help 19 12 7 9.4 osh-native
31 no-host abuild-print-help 19 11 8 9.7 osh-nosouffle
39 no-host abuild-print-help 16 10 6 6.4 osh-static
1 no-host bin-true 452 288 194 3.3 bash
9 no-host bin-true 317 222 89 1.6 dash
17 no-host bin-true 619 322 308 8.8 osh-native
25 no-host bin-true 619 323 309 9.0 osh-nosouffle
33 no-host bin-true 515 296 227 5.2 osh-static
2 no-host configure.cpython 11,957 7,757 4,471 34.5 bash
10 no-host configure.cpython 12,058 7,800 4,537 34.6 dash
18 no-host configure.cpython 11,838 7,259 4,753 34.6 osh-native
26 no-host configure.cpython 11,932 7,361 4,765 34.5 osh-nosouffle
34 no-host configure.cpython 11,721 7,272 4,581 34.6 osh-static
4 no-host configure.ocaml 3,365 1,538 844 28.8 bash
12 no-host configure.ocaml 3,339 1,498 845 28.8 dash
20 no-host configure.ocaml 3,495 1,529 979 28.9 osh-native
28 no-host configure.ocaml 3,446 1,503 958 28.8 osh-nosouffle
36 no-host configure.ocaml 3,401 1,540 868 28.7 osh-static
5 no-host configure.tcc 39 26 14 26.2 bash
13 no-host configure.tcc 35 20 15 26.2 dash
21 no-host configure.tcc 40 22 19 26.2 osh-native
29 no-host configure.tcc 46 25 17 26.3 osh-nosouffle
37 no-host configure.tcc 37 24 14 26.2 osh-static
3 no-host configure.util-linux 10,595 6,723 4,224 39.6 bash
11 no-host configure.util-linux 11,359 6,698 5,027 39.6 dash
19 no-host configure.util-linux 10,840 6,396 4,550 39.7 osh-native
27 no-host configure.util-linux 10,969 6,465 4,634 39.7 osh-nosouffle
35 no-host configure.util-linux 10,692 6,362 4,439 39.6 osh-static
6 no-host configure.yash 1,474 957 515 33.5 bash
14 no-host configure.yash 1,456 936 513 33.3 dash
22 no-host configure.yash 1,708 933 554 33.4 osh-native
30 no-host configure.yash 1,519 932 575 33.3 osh-nosouffle
38 no-host configure.yash 1,480 938 538 33.4 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 2 1 6.6 osh-native
24 no-host hello-world 2 2 1 7.1 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,398 0 0 0 8 0 40 1 bash
15 no-host abuild-print-help 1,173 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,404 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,802 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 100,841 0 0 0 8 0 2,001 45 bash
9 no-host bin-true 49,872 0 0 0 8 0 2,998 40 dash
17 no-host bin-true 135,999 0 0 0 16 0 1,994 82 osh-native
25 no-host bin-true 139,038 0 0 0 16 0 1,999 72 osh-nosouffle
33 no-host bin-true 111,739 0 0 0 8 0 1,998 63 osh-static
2 no-host configure.cpython 1,637,373 0 0 0 25,272 0 14,046 1,009 bash
10 no-host configure.cpython 1,637,962 0 0 0 25,272 0 14,050 945 dash
18 no-host configure.cpython 1,592,560 0 0 0 25,280 0 11,324 826 osh-native
26 no-host configure.cpython 1,613,443 0 0 0 25,280 0 11,317 822 osh-nosouffle
34 no-host configure.cpython 1,525,853 0 0 0 25,272 0 11,316 774 osh-static
4 no-host configure.ocaml 300,023 0 0 0 4,432 0 2,022 169 bash
12 no-host configure.ocaml 281,625 0 0 0 4,432 0 2,112 181 dash
20 no-host configure.ocaml 305,833 0 0 8 4,440 0 2,008 186 osh-native
28 no-host configure.ocaml 307,730 0 0 0 4,440 0 2,009 204 osh-nosouffle
36 no-host configure.ocaml 300,723 0 0 0 4,432 0 2,006 202 osh-static
5 no-host configure.tcc 5,257 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,239 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,650 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,716 0 0 0 96 0 45 1 osh-nosouffle
37 no-host configure.tcc 5,142 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,542,649 1 0 0 35,944 0 18,786 861 bash
11 no-host configure.util-linux 1,711,126 1 0 0 35,936 0 16,960 1,099 dash
19 no-host configure.util-linux 1,502,111 1 0 0 35,952 0 16,174 866 osh-native
27 no-host configure.util-linux 1,516,733 0 0 0 35,952 0 16,224 860 osh-nosouffle
35 no-host configure.util-linux 1,456,391 4 0 0 35,936 0 16,173 853 osh-static
6 no-host configure.yash 173,743 0 0 0 3,616 0 877 95 bash
14 no-host configure.yash 159,958 0 0 0 3,616 0 1,004 96 dash
22 no-host configure.yash 177,256 0 0 0 3,624 0 858 221 osh-native
30 no-host configure.yash 177,217 0 0 0 3,624 0 856 95 osh-nosouffle
38 no-host configure.yash 173,012 0 0 0 3,616 0 857 88 osh-static
0 no-host hello-world 155 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 394 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 182 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-ec49645c
osh-nosouffle osh-f012ea38
osh-static osh-static-3f3fba45
host label host id
no-host no-host-9c670df1