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 18 19 16 1.38 1.27
bin-true no-host 448 310 616 634 501 1.38 1.12
configure.cpython no-host 11,789 11,816 11,721 11,919 11,314 0.99 0.96
configure.ocaml no-host 3,302 3,252 3,392 3,364 3,340 1.03 1.01
configure.tcc no-host 38 35 40 40 37 1.03 0.96
configure.util-linux no-host 10,646 11,111 10,737 10,854 10,490 1.01 0.99
configure.yash no-host 1,449 1,416 1,480 1,485 1,455 1.02 1.00
hello-world no-host 1 1 2 2 1 2.38 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,413 1,168 3,327 3,397 2,821 1.38 1.17
bin-true no-host 101,918 49,819 135,755 136,443 111,782 1.33 1.10
configure.cpython no-host 1,624,270 1,650,363 1,594,113 1,613,019 1,515,931 0.98 0.93
configure.ocaml no-host 300,140 281,682 306,869 307,789 300,758 1.02 1.00
configure.tcc no-host 5,251 4,236 5,593 5,668 5,134 1.07 0.98
configure.util-linux no-host 1,538,715 1,698,607 1,500,966 1,525,531 1,474,930 0.98 0.96
configure.yash no-host 173,696 159,878 176,895 177,137 173,119 1.02 1.00
hello-world no-host 154 87 394 403 183 2.56 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.7 3.9 9.6 10.0 6.3 2.03 1.33
bin-true no-host 3.0 1.6 8.9 9.0 5.2 2.96 1.74
configure.cpython no-host 34.5 34.5 34.4 34.5 34.7 1.00 1.00
configure.ocaml no-host 28.8 28.7 28.5 28.5 28.7 0.99 1.00
configure.tcc no-host 26.3 26.2 26.2 26.0 26.2 1.00 1.00
configure.util-linux no-host 39.6 39.5 39.7 39.7 39.7 1.00 1.00
configure.yash no-host 33.4 33.1 33.1 33.3 33.4 0.99 1.00
hello-world no-host 3.3 1.7 6.6 7.2 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,920 3,920 0 726 1,923 1,271 2 0 50,000 0
bin-true no-host 616 1 2 3.5 8.9 151,905 10,764 2,978 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 11,721 1 61 14.8 34.4 1,750,907 35,429 28,954 93,081 869,789 788,037 25,789 61 50,000 0
configure.util-linux no-host 10,737 3 64 21.6 39.7 2,705,473 37,501 66,342 119,749 1,291,899 1,293,825 32,527 42 132,684 1
configure.ocaml no-host 3,392 1 2 2.8 28.5 149,720 12,656 6,571 9,217 70,302 70,201 1,693 3 50,000 0
configure.tcc no-host 40 0 0 1.4 26.2 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,480 1 2 2.7 33.1 143,538 11,666 6,632 7,172 70,560 65,806 2,095 3 50,000 0
abuild-print-help no-host 18 1 2 3.0 9.6 117,263 65,801 42,008 4,981 54,612 57,670 277 3 84,016 1
hello-world no-host 2 0 0 0.3 7.2 3,919 3,919 0 725 1,923 1,271 2 0 50,000 0
bin-true no-host 634 1 2 3.5 9.0 151,905 10,768 2,982 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 11,919 1 61 14.9 34.5 1,750,906 36,488 28,959 93,080 869,789 788,037 25,789 61 50,000 0
configure.util-linux no-host 10,854 3 64 21.6 39.7 2,705,473 37,507 66,348 119,749 1,291,899 1,293,825 32,527 42 132,696 1
configure.ocaml no-host 3,364 1 2 2.8 28.5 149,720 12,661 6,576 9,217 70,302 70,201 1,693 3 50,000 0
configure.tcc no-host 40 0 0 1.4 26.0 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,485 1 2 2.7 33.3 143,538 11,670 6,636 7,172 70,560 65,806 2,095 3 50,000 0
abuild-print-help no-host 19 1 2 3.0 10.0 117,263 65,805 42,012 4,981 54,612 57,670 277 3 84,024 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 7 6 4.7 bash
15 no-host abuild-print-help 7 5 2 3.9 dash
23 no-host abuild-print-help 18 13 6 9.6 osh-native
31 no-host abuild-print-help 19 14 5 10.0 osh-nosouffle
39 no-host abuild-print-help 16 13 4 6.3 osh-static
1 no-host bin-true 448 279 203 3.0 bash
9 no-host bin-true 310 232 79 1.6 dash
17 no-host bin-true 616 317 314 8.9 osh-native
25 no-host bin-true 634 327 321 9.0 osh-nosouffle
33 no-host bin-true 501 312 202 5.2 osh-static
2 no-host configure.cpython 11,789 7,673 4,403 34.5 bash
10 no-host configure.cpython 11,816 7,694 4,427 34.5 dash
18 no-host configure.cpython 11,721 7,255 4,632 34.4 osh-native
26 no-host configure.cpython 11,919 7,368 4,744 34.5 osh-nosouffle
34 no-host configure.cpython 11,314 7,346 4,103 34.7 osh-static
4 no-host configure.ocaml 3,302 1,551 767 28.8 bash
12 no-host configure.ocaml 3,252 1,438 806 28.7 dash
20 no-host configure.ocaml 3,392 1,507 892 28.5 osh-native
28 no-host configure.ocaml 3,364 1,513 862 28.5 osh-nosouffle
36 no-host configure.ocaml 3,340 1,492 851 28.7 osh-static
5 no-host configure.tcc 38 25 13 26.3 bash
13 no-host configure.tcc 35 21 14 26.2 dash
21 no-host configure.tcc 40 25 15 26.2 osh-native
29 no-host configure.tcc 40 17 23 26.0 osh-nosouffle
37 no-host configure.tcc 37 22 15 26.2 osh-static
3 no-host configure.util-linux 10,646 6,786 4,216 39.6 bash
11 no-host configure.util-linux 11,111 6,637 4,857 39.5 dash
19 no-host configure.util-linux 10,737 6,307 4,561 39.7 osh-native
27 no-host configure.util-linux 10,854 6,398 4,590 39.7 osh-nosouffle
35 no-host configure.util-linux 10,490 6,443 4,177 39.7 osh-static
6 no-host configure.yash 1,449 935 510 33.4 bash
14 no-host configure.yash 1,416 925 479 33.1 dash
22 no-host configure.yash 1,480 959 510 33.1 osh-native
30 no-host configure.yash 1,485 942 533 33.3 osh-nosouffle
38 no-host configure.yash 1,455 976 470 33.4 osh-static
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 1 0 1 1.7 dash
16 no-host hello-world 2 2 1 6.6 osh-native
24 no-host hello-world 2 2 0 7.2 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,413 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,168 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,327 0 0 0 16 0 39 2 osh-native
31 no-host abuild-print-help 3,397 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,821 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 101,918 0 0 0 8 0 1,997 56 bash
9 no-host bin-true 49,819 0 0 0 8 0 2,997 41 dash
17 no-host bin-true 135,755 0 0 0 16 0 1,996 77 osh-native
25 no-host bin-true 136,443 0 0 0 16 0 2,001 73 osh-nosouffle
33 no-host bin-true 111,782 0 0 0 8 0 1,998 63 osh-static
2 no-host configure.cpython 1,624,270 0 0 0 25,272 0 14,018 955 bash
10 no-host configure.cpython 1,650,363 0 0 0 25,280 0 14,075 1,020 dash
18 no-host configure.cpython 1,594,113 0 0 0 25,280 0 11,314 809 osh-native
26 no-host configure.cpython 1,613,019 0 0 0 25,280 0 11,319 871 osh-nosouffle
34 no-host configure.cpython 1,515,931 0 0 0 25,272 0 11,283 835 osh-static
4 no-host configure.ocaml 300,140 0 0 0 4,432 0 2,021 181 bash
12 no-host configure.ocaml 281,682 0 0 0 4,432 0 2,109 167 dash
20 no-host configure.ocaml 306,869 0 0 0 4,440 0 2,002 252 osh-native
28 no-host configure.ocaml 307,789 1 0 0 4,440 0 2,002 189 osh-nosouffle
36 no-host configure.ocaml 300,758 0 0 0 4,432 0 2,002 212 osh-static
5 no-host configure.tcc 5,251 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,236 0 0 0 88 0 51 4 dash
21 no-host configure.tcc 5,593 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,668 0 0 0 96 0 45 4 osh-nosouffle
37 no-host configure.tcc 5,134 0 0 0 88 0 45 3 osh-static
3 no-host configure.util-linux 1,538,715 0 0 0 35,936 0 18,832 1,018 bash
11 no-host configure.util-linux 1,698,607 0 0 0 35,936 0 16,923 1,130 dash
19 no-host configure.util-linux 1,500,966 2 0 0 35,952 0 16,211 867 osh-native
27 no-host configure.util-linux 1,525,531 3 0 0 35,952 0 16,233 870 osh-nosouffle
35 no-host configure.util-linux 1,474,930 6 0 0 35,936 0 16,221 849 osh-static
6 no-host configure.yash 173,696 0 0 0 3,616 0 877 79 bash
14 no-host configure.yash 159,878 0 0 0 3,616 0 1,005 101 dash
22 no-host configure.yash 176,895 0 0 0 3,624 0 857 93 osh-native
30 no-host configure.yash 177,137 0 0 0 3,624 0 857 96 osh-nosouffle
38 no-host configure.yash 173,119 0 0 0 3,616 0 856 99 osh-static
0 no-host hello-world 154 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 403 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 183 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-6caa90e7
osh-nosouffle osh-647e18a2
osh-static osh-static-3afd612f
host label host id
no-host no-host-bba74091