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 18 16 1.42 1.26
bin-true no-host 446 315 608 596 491 1.36 1.10
configure.cpython no-host 11,841 11,959 11,684 11,697 11,203 0.99 0.95
configure.ocaml no-host 3,356 3,273 3,347 3,363 3,340 1.00 1.00
configure.tcc no-host 38 34 41 40 38 1.07 0.98
configure.util-linux no-host 10,547 11,119 10,739 10,742 10,344 1.02 0.98
configure.yash no-host 1,480 1,411 1,483 1,475 1,468 1.00 0.99
hello-world no-host 1 1 2 2 1 2.36 1.08

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,390 1,175 3,302 3,459 2,832 1.38 1.18
bin-true no-host 102,904 49,881 132,731 133,491 111,511 1.29 1.08
configure.cpython no-host 1,636,846 1,651,241 1,580,481 1,607,350 1,522,506 0.97 0.93
configure.ocaml no-host 300,303 281,825 307,780 308,600 300,892 1.02 1.00
configure.tcc no-host 5,251 4,242 5,633 5,660 5,126 1.07 0.98
configure.util-linux no-host 1,539,391 1,704,832 1,511,950 1,528,185 1,485,262 0.98 0.96
configure.yash no-host 173,826 159,931 177,128 177,763 173,083 1.02 1.00
hello-world no-host 154 85 395 400 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.1 6.3 2.03 1.33
bin-true no-host 3.1 1.6 8.7 9.0 5.1 2.75 1.62
configure.cpython no-host 34.6 34.7 34.4 34.7 34.7 0.99 1.00
configure.ocaml no-host 28.8 28.9 28.6 28.7 28.7 1.00 1.00
configure.tcc no-host 26.6 26.4 26.3 26.2 26.1 0.99 0.98
configure.util-linux no-host 39.6 39.6 39.3 39.7 40.0 0.99 1.01
configure.yash no-host 33.3 33.3 33.4 33.4 33.4 1.00 1.00
hello-world no-host 3.3 1.6 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 2 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 608 1 2 3.5 8.7 151,905 10,764 2,978 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 11,684 1 60 14.8 34.4 1,750,832 35,399 28,954 93,081 869,764 787,987 25,789 61 50,000 0
configure.util-linux no-host 10,739 3 64 21.6 39.3 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,347 1 2 2.8 28.6 149,705 12,656 6,571 9,217 70,297 70,191 1,693 3 50,000 0
configure.tcc no-host 41 0 0 1.4 26.3 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,483 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 18 1 2 3.0 9.6 117,239 65,801 42,008 4,980 54,601 57,658 277 3 84,016 1
hello-world no-host 2 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 596 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,697 1 60 14.9 34.7 1,750,831 36,458 28,959 93,080 869,764 787,987 25,789 61 50,000 0
configure.util-linux no-host 10,742 3 64 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,363 1 2 2.8 28.7 149,705 12,661 6,576 9,217 70,297 70,191 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,475 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 18 1 2 3.0 10.1 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 13 7 6 4.7 bash
15 no-host abuild-print-help 7 2 5 3.9 dash
23 no-host abuild-print-help 18 13 5 9.6 osh-native
31 no-host abuild-print-help 18 10 9 10.1 osh-nosouffle
39 no-host abuild-print-help 16 12 5 6.3 osh-static
1 no-host bin-true 446 271 205 3.1 bash
9 no-host bin-true 315 237 79 1.6 dash
17 no-host bin-true 608 299 320 8.7 osh-native
25 no-host bin-true 596 322 288 9.0 osh-nosouffle
33 no-host bin-true 491 296 206 5.1 osh-static
2 no-host configure.cpython 11,841 7,722 4,370 34.6 bash
10 no-host configure.cpython 11,959 7,694 4,514 34.7 dash
18 no-host configure.cpython 11,684 7,194 4,637 34.4 osh-native
26 no-host configure.cpython 11,697 7,364 4,489 34.7 osh-nosouffle
34 no-host configure.cpython 11,203 7,296 4,031 34.7 osh-static
4 no-host configure.ocaml 3,356 1,482 878 28.8 bash
12 no-host configure.ocaml 3,273 1,463 800 28.9 dash
20 no-host configure.ocaml 3,347 1,515 850 28.6 osh-native
28 no-host configure.ocaml 3,363 1,546 826 28.7 osh-nosouffle
36 no-host configure.ocaml 3,340 1,457 884 28.7 osh-static
5 no-host configure.tcc 38 23 16 26.6 bash
13 no-host configure.tcc 34 21 13 26.4 dash
21 no-host configure.tcc 41 30 11 26.3 osh-native
29 no-host configure.tcc 40 22 18 26.2 osh-nosouffle
37 no-host configure.tcc 38 25 12 26.1 osh-static
3 no-host configure.util-linux 10,547 6,703 4,167 39.6 bash
11 no-host configure.util-linux 11,119 6,721 4,745 39.6 dash
19 no-host configure.util-linux 10,739 6,328 4,522 39.3 osh-native
27 no-host configure.util-linux 10,742 6,287 4,570 39.7 osh-nosouffle
35 no-host configure.util-linux 10,344 6,295 4,163 40.0 osh-static
6 no-host configure.yash 1,480 942 529 33.3 bash
14 no-host configure.yash 1,411 947 450 33.3 dash
22 no-host configure.yash 1,483 981 483 33.4 osh-native
30 no-host configure.yash 1,475 984 476 33.4 osh-nosouffle
38 no-host configure.yash 1,468 948 507 33.4 osh-static
0 no-host hello-world 1 1 0 3.3 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 2 2 0 6.7 osh-native
24 no-host hello-world 2 1 1 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,390 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,175 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,302 0 0 0 16 0 40 0 osh-native
31 no-host abuild-print-help 3,459 0 0 0 16 0 39 2 osh-nosouffle
39 no-host abuild-print-help 2,832 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 102,904 0 0 0 8 0 1,999 56 bash
9 no-host bin-true 49,881 0 0 0 8 0 2,997 43 dash
17 no-host bin-true 132,731 0 0 0 16 0 2,001 67 osh-native
25 no-host bin-true 133,491 0 0 0 16 0 1,998 51 osh-nosouffle
33 no-host bin-true 111,511 0 0 0 8 0 1,999 60 osh-static
2 no-host configure.cpython 1,636,846 0 0 0 25,272 0 14,069 965 bash
10 no-host configure.cpython 1,651,241 0 0 0 25,272 0 14,100 941 dash
18 no-host configure.cpython 1,580,481 0 0 0 25,280 0 11,302 818 osh-native
26 no-host configure.cpython 1,607,350 0 0 0 25,280 0 11,279 831 osh-nosouffle
34 no-host configure.cpython 1,522,506 1 0 0 25,272 0 11,325 789 osh-static
4 no-host configure.ocaml 300,303 0 0 0 4,432 0 2,020 165 bash
12 no-host configure.ocaml 281,825 0 0 0 4,432 0 2,110 170 dash
20 no-host configure.ocaml 307,780 1 0 0 4,440 0 2,000 226 osh-native
28 no-host configure.ocaml 308,600 0 0 0 4,440 0 2,003 198 osh-nosouffle
36 no-host configure.ocaml 300,892 0 0 0 4,432 0 2,001 192 osh-static
5 no-host configure.tcc 5,251 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,242 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,633 0 0 0 96 0 45 4 osh-native
29 no-host configure.tcc 5,660 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,126 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,539,391 0 0 0 35,936 0 18,871 1,063 bash
11 no-host configure.util-linux 1,704,832 2 0 0 35,936 0 17,010 1,077 dash
19 no-host configure.util-linux 1,511,950 3 0 0 35,960 0 16,249 1,014 osh-native
27 no-host configure.util-linux 1,528,185 3 0 0 35,944 0 16,195 835 osh-nosouffle
35 no-host configure.util-linux 1,485,262 5 0 0 35,936 0 16,167 857 osh-static
6 no-host configure.yash 173,826 0 0 0 3,616 0 879 83 bash
14 no-host configure.yash 159,931 0 0 0 3,616 0 1,003 85 dash
22 no-host configure.yash 177,128 0 0 0 3,624 0 860 90 osh-native
30 no-host configure.yash 177,763 0 0 0 3,624 0 854 96 osh-nosouffle
38 no-host configure.yash 173,083 0 0 0 3,616 0 857 92 osh-static
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 0 0 0 8 0 1 0 dash
16 no-host hello-world 395 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 400 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-5c6d8067
osh-nosouffle osh-bd25d686
osh-static osh-static-dd72c0f1
host label host id
no-host no-host-bba74091