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 15 9 21 21 19 1.34 1.22
bin-true no-host 621 438 787 808 651 1.27 1.05
configure.cpython no-host 13,739 13,789 13,386 13,434 12,956 0.97 0.94
configure.ocaml no-host 3,639 3,603 3,698 3,705 3,648 1.02 1.00
configure.tcc no-host 46 41 46 47 43 1.01 0.94
configure.util-linux no-host 12,445 13,258 12,472 12,520 12,241 1.00 0.98
configure.yash no-host 1,697 1,631 1,687 1,704 1,665 0.99 0.98
hello-world no-host 1 1 3 3 1 2.42 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,363 1,154 3,315 3,423 2,833 1.40 1.20
bin-true no-host 103,448 49,430 130,330 135,040 112,044 1.26 1.08
configure.cpython no-host 1,622,599 1,634,411 1,587,471 1,607,202 1,519,077 0.98 0.94
configure.ocaml no-host 299,217 280,482 306,339 307,940 300,047 1.02 1.00
configure.tcc no-host 5,259 4,208 5,622 5,633 5,116 1.07 0.97
configure.util-linux no-host 1,530,243 1,697,375 1,511,979 1,510,699 1,481,318 0.99 0.97
configure.yash no-host 173,080 159,510 176,673 177,048 172,806 1.02 1.00
hello-world no-host 152 82 393 398 181 2.59 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.4 10.0 6.3 2.00 1.33
bin-true no-host 3.3 1.4 8.9 9.2 5.1 2.72 1.56
configure.cpython no-host 34.5 34.6 34.8 34.5 34.5 1.01 1.00
configure.ocaml no-host 28.6 28.7 28.7 28.6 28.6 1.00 1.00
configure.tcc no-host 26.0 26.2 26.1 26.4 26.2 1.01 1.01
configure.util-linux no-host 39.5 39.7 39.7 39.7 39.7 1.01 1.01
configure.yash no-host 33.4 33.3 33.4 33.4 33.4 1.00 1.00
hello-world no-host 3.3 1.4 6.7 6.9 3.3 2.04 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 3 0 0 0.3 6.7 3,920 3,920 0 726 1,923 1,271 2 0 50,000 0
bin-true no-host 787 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 13,386 1 66 14.8 34.8 1,750,832 35,399 28,954 93,081 869,764 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,472 3 67 21.6 39.7 2,705,398 37,471 66,342 119,749 1,291,874 1,293,775 32,527 42 132,684 1
configure.ocaml no-host 3,698 1 2 2.8 28.7 149,705 12,656 6,571 9,217 70,297 70,191 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.1 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,687 1 2 2.7 33.4 143,481 11,508 6,625 7,171 70,527 65,783 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.4 117,239 65,801 42,008 4,980 54,601 57,658 277 3 84,016 1
hello-world no-host 3 0 0 0.3 6.9 3,919 3,919 0 725 1,923 1,271 2 0 50,000 0
bin-true no-host 808 1 2 3.5 9.2 151,905 10,768 2,982 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,434 2 66 14.9 34.5 1,750,831 36,458 28,959 93,080 869,764 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,520 3 65 21.6 39.7 2,705,398 37,477 66,348 119,749 1,291,874 1,293,775 32,527 42 132,696 1
configure.ocaml no-host 3,705 1 2 2.8 28.6 149,705 12,661 6,576 9,217 70,297 70,191 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.4 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,704 1 2 2.7 33.4 143,481 11,512 6,629 7,171 70,527 65,783 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 10.0 117,239 65,805 42,012 4,980 54,601 57,658 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 15 6 10 4.7 bash
15 no-host abuild-print-help 9 2 7 3.9 dash
23 no-host abuild-print-help 21 13 8 9.4 osh-native
31 no-host abuild-print-help 21 11 11 10.0 osh-nosouffle
39 no-host abuild-print-help 19 11 8 6.3 osh-static
1 no-host bin-true 621 299 359 3.3 bash
9 no-host bin-true 438 277 167 1.4 dash
17 no-host bin-true 787 318 486 8.9 osh-native
25 no-host bin-true 808 317 507 9.2 osh-nosouffle
33 no-host bin-true 651 315 352 5.1 osh-static
2 no-host configure.cpython 13,739 7,610 6,505 34.5 bash
10 no-host configure.cpython 13,789 7,684 6,504 34.6 dash
18 no-host configure.cpython 13,386 7,061 6,598 34.8 osh-native
26 no-host configure.cpython 13,434 7,139 6,582 34.5 osh-nosouffle
34 no-host configure.cpython 12,956 7,206 5,990 34.5 osh-static
4 no-host configure.ocaml 3,639 1,478 1,201 28.6 bash
12 no-host configure.ocaml 3,603 1,465 1,161 28.7 dash
20 no-host configure.ocaml 3,698 1,536 1,201 28.7 osh-native
28 no-host configure.ocaml 3,705 1,470 1,278 28.6 osh-nosouffle
36 no-host configure.ocaml 3,648 1,462 1,215 28.6 osh-static
5 no-host configure.tcc 46 27 19 26.0 bash
13 no-host configure.tcc 41 24 18 26.2 dash
21 no-host configure.tcc 46 20 27 26.1 osh-native
29 no-host configure.tcc 47 27 21 26.4 osh-nosouffle
37 no-host configure.tcc 43 19 25 26.2 osh-static
3 no-host configure.util-linux 12,445 6,618 6,289 39.5 bash
11 no-host configure.util-linux 13,258 6,573 7,170 39.7 dash
19 no-host configure.util-linux 12,472 6,166 6,531 39.7 osh-native
27 no-host configure.util-linux 12,520 6,213 6,534 39.7 osh-nosouffle
35 no-host configure.util-linux 12,241 6,181 6,276 39.7 osh-static
6 no-host configure.yash 1,697 925 780 33.4 bash
14 no-host configure.yash 1,631 953 678 33.3 dash
22 no-host configure.yash 1,687 959 732 33.4 osh-native
30 no-host configure.yash 1,704 962 746 33.4 osh-nosouffle
38 no-host configure.yash 1,665 951 717 33.4 osh-static
0 no-host hello-world 1 1 1 3.3 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 3 0 3 6.7 osh-native
24 no-host hello-world 3 1 2 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,363 0 0 0 8 0 40 1 bash
15 no-host abuild-print-help 1,154 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,315 0 0 0 16 0 38 1 osh-native
31 no-host abuild-print-help 3,423 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,833 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 103,448 0 0 0 8 0 1,998 64 bash
9 no-host bin-true 49,430 0 0 0 8 0 2,995 52 dash
17 no-host bin-true 130,330 0 0 0 16 0 1,998 68 osh-native
25 no-host bin-true 135,040 0 0 0 16 0 1,999 80 osh-nosouffle
33 no-host bin-true 112,044 0 0 0 8 0 2,000 77 osh-static
2 no-host configure.cpython 1,622,599 1 0 0 25,272 0 14,076 1,091 bash
10 no-host configure.cpython 1,634,411 0 0 0 25,272 0 14,114 999 dash
18 no-host configure.cpython 1,587,471 0 0 0 25,280 0 11,302 811 osh-native
26 no-host configure.cpython 1,607,202 0 0 0 25,280 0 11,303 862 osh-nosouffle
34 no-host configure.cpython 1,519,077 0 0 0 25,272 0 11,298 780 osh-static
4 no-host configure.ocaml 299,217 0 0 0 4,432 0 2,020 206 bash
12 no-host configure.ocaml 280,482 0 0 0 4,432 0 2,106 187 dash
20 no-host configure.ocaml 306,339 0 0 0 4,440 0 2,001 215 osh-native
28 no-host configure.ocaml 307,940 0 0 0 4,440 0 1,998 197 osh-nosouffle
36 no-host configure.ocaml 300,047 0 0 0 4,432 0 1,999 217 osh-static
5 no-host configure.tcc 5,259 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,208 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 5,622 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,633 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,116 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,530,243 0 0 0 35,936 0 18,996 1,045 bash
11 no-host configure.util-linux 1,697,375 0 0 0 35,936 0 17,073 1,236 dash
19 no-host configure.util-linux 1,511,979 1 0 0 35,952 0 16,141 888 osh-native
27 no-host configure.util-linux 1,510,699 0 0 0 35,952 0 16,222 1,024 osh-nosouffle
35 no-host configure.util-linux 1,481,318 1 0 0 35,936 0 16,143 922 osh-static
6 no-host configure.yash 173,080 0 0 0 3,616 0 880 96 bash
14 no-host configure.yash 159,510 0 0 0 3,616 0 1,001 227 dash
22 no-host configure.yash 176,673 0 0 0 3,624 0 855 105 osh-native
30 no-host configure.yash 177,048 0 0 0 3,624 0 855 102 osh-nosouffle
38 no-host configure.yash 172,806 0 0 0 3,616 0 857 106 osh-static
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 393 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 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-30d27e9a
osh-nosouffle osh-24892b22
osh-static osh-static-6100b129
host label host id
no-host no-host-bba74091