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 20 21 19 1.31 1.22
bin-true no-host 613 441 792 813 667 1.29 1.09
configure.cpython no-host 13,651 13,774 13,287 13,478 12,866 0.97 0.94
configure.ocaml no-host 3,650 3,582 3,728 3,644 3,721 1.02 1.02
configure.tcc no-host 45 40 46 47 43 1.02 0.96
configure.util-linux no-host 12,392 13,201 12,363 12,353 12,300 1.00 0.99
configure.yash no-host 1,650 1,617 1,681 1,663 1,683 1.02 1.02
hello-world no-host 1 1 3 3 1 2.38 1.00

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,372 1,147 3,310 3,435 2,833 1.40 1.19
bin-true no-host 101,381 49,395 131,346 137,348 112,064 1.30 1.11
configure.cpython no-host 1,627,252 1,637,403 1,594,161 1,611,629 1,514,237 0.98 0.93
configure.ocaml no-host 298,701 280,946 306,433 307,037 300,138 1.03 1.00
configure.tcc no-host 5,198 4,228 5,568 5,667 5,122 1.07 0.99
configure.util-linux no-host 1,533,004 1,696,888 1,506,564 1,517,850 1,480,045 0.98 0.97
configure.yash no-host 173,289 159,618 177,129 177,338 172,792 1.02 1.00
hello-world no-host 152 87 391 399 182 2.57 1.20

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.8 9.4 10.0 6.3 2.00 1.33
bin-true no-host 3.3 1.7 8.9 9.3 5.2 2.72 1.60
configure.cpython no-host 34.4 34.7 34.4 34.4 34.5 1.00 1.00
configure.ocaml no-host 28.8 28.7 28.6 28.4 28.8 0.99 1.00
configure.tcc no-host 26.1 26.2 26.1 26.1 26.2 1.00 1.00
configure.util-linux no-host 39.9 39.6 39.7 39.6 39.7 1.00 1.00
configure.yash no-host 33.4 33.4 33.4 33.4 33.2 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 3 0 0 0.3 6.6 3,919 3,919 0 726 1,922 1,271 2 0 50,000 0
bin-true no-host 792 1 2 3.5 8.9 151,904 10,764 2,978 14,785 72,396 64,723 3,008 3 50,000 0
configure.cpython no-host 13,287 2 66 14.8 34.4 1,750,831 35,399 28,954 93,081 869,763 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,363 3 63 21.6 39.7 2,705,397 37,471 66,342 119,749 1,291,873 1,293,775 32,527 42 132,684 1
configure.ocaml no-host 3,728 1 2 2.8 28.6 149,704 12,656 6,571 9,217 70,296 70,191 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.1 30,555 30,555 0 1,684 14,474 14,397 271 0 50,000 0
configure.yash no-host 1,681 1 2 2.7 33.4 143,480 11,508 6,625 7,171 70,526 65,783 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 3.0 9.4 117,238 65,801 42,008 4,980 54,600 57,658 277 3 84,016 1
hello-world no-host 3 0 0 0.3 7.1 3,918 3,918 0 725 1,922 1,271 2 0 50,000 0
bin-true no-host 813 1 2 3.5 9.3 151,904 10,768 2,982 14,785 72,396 64,723 3,008 3 50,000 0
configure.cpython no-host 13,478 1 65 14.9 34.4 1,750,830 36,458 28,959 93,080 869,763 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,353 3 62 21.6 39.6 2,705,397 37,477 66,348 119,749 1,291,873 1,293,775 32,527 42 132,696 1
configure.ocaml no-host 3,644 1 2 2.8 28.4 149,704 12,661 6,576 9,217 70,296 70,191 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.1 30,555 30,555 0 1,684 14,474 14,397 271 0 50,000 0
configure.yash no-host 1,663 1 2 2.7 33.4 143,480 11,512 6,629 7,171 70,526 65,783 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 10.0 117,238 65,805 42,012 4,980 54,600 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 3 6 3.8 dash
23 no-host abuild-print-help 20 11 9 9.4 osh-native
31 no-host abuild-print-help 21 14 8 10.0 osh-nosouffle
39 no-host abuild-print-help 19 11 9 6.3 osh-static
1 no-host bin-true 613 316 337 3.3 bash
9 no-host bin-true 441 266 181 1.7 dash
17 no-host bin-true 792 318 494 8.9 osh-native
25 no-host bin-true 813 314 516 9.3 osh-nosouffle
33 no-host bin-true 667 300 384 5.2 osh-static
2 no-host configure.cpython 13,651 7,429 6,612 34.4 bash
10 no-host configure.cpython 13,774 7,507 6,666 34.7 dash
18 no-host configure.cpython 13,287 7,104 6,459 34.4 osh-native
26 no-host configure.cpython 13,478 7,142 6,629 34.4 osh-nosouffle
34 no-host configure.cpython 12,866 7,166 5,935 34.5 osh-static
4 no-host configure.ocaml 3,650 1,468 1,222 28.8 bash
12 no-host configure.ocaml 3,582 1,459 1,148 28.7 dash
20 no-host configure.ocaml 3,728 1,473 1,297 28.6 osh-native
28 no-host configure.ocaml 3,644 1,486 1,197 28.4 osh-nosouffle
36 no-host configure.ocaml 3,721 1,516 1,237 28.8 osh-static
5 no-host configure.tcc 45 23 23 26.1 bash
13 no-host configure.tcc 40 23 18 26.2 dash
21 no-host configure.tcc 46 26 20 26.1 osh-native
29 no-host configure.tcc 47 26 21 26.1 osh-nosouffle
37 no-host configure.tcc 43 25 19 26.2 osh-static
3 no-host configure.util-linux 12,392 6,495 6,370 39.9 bash
11 no-host configure.util-linux 13,201 6,502 7,199 39.6 dash
19 no-host configure.util-linux 12,363 6,106 6,481 39.7 osh-native
27 no-host configure.util-linux 12,353 6,145 6,434 39.6 osh-nosouffle
35 no-host configure.util-linux 12,300 6,244 6,278 39.7 osh-static
6 no-host configure.yash 1,650 947 712 33.4 bash
14 no-host configure.yash 1,617 920 699 33.4 dash
22 no-host configure.yash 1,681 938 746 33.4 osh-native
30 no-host configure.yash 1,663 961 706 33.4 osh-nosouffle
38 no-host configure.yash 1,683 954 732 33.2 osh-static
0 no-host hello-world 1 1 0 3.3 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 3 2 1 6.6 osh-native
24 no-host hello-world 3 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,372 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,147 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,310 0 0 0 16 0 38 1 osh-native
31 no-host abuild-print-help 3,435 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,833 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 101,381 0 0 0 8 0 1,994 44 bash
9 no-host bin-true 49,395 0 0 0 8 0 2,998 61 dash
17 no-host bin-true 131,346 0 0 0 16 0 1,995 55 osh-native
25 no-host bin-true 137,348 0 0 0 16 0 1,997 85 osh-nosouffle
33 no-host bin-true 112,064 0 0 0 8 0 1,998 92 osh-static
2 no-host configure.cpython 1,627,252 0 0 0 25,272 0 14,078 1,068 bash
10 no-host configure.cpython 1,637,403 0 0 0 25,272 0 14,113 1,014 dash
18 no-host configure.cpython 1,594,161 0 0 0 25,280 0 11,311 869 osh-native
26 no-host configure.cpython 1,611,629 0 0 0 25,280 0 11,305 961 osh-nosouffle
34 no-host configure.cpython 1,514,237 0 0 0 25,272 0 11,310 856 osh-static
4 no-host configure.ocaml 298,701 0 0 0 4,432 0 2,021 191 bash
12 no-host configure.ocaml 280,946 0 0 0 4,432 0 2,107 188 dash
20 no-host configure.ocaml 306,433 0 0 0 4,440 0 2,003 218 osh-native
28 no-host configure.ocaml 307,037 0 0 0 4,440 0 2,001 203 osh-nosouffle
36 no-host configure.ocaml 300,138 0 0 0 4,432 0 1,996 204 osh-static
5 no-host configure.tcc 5,198 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,228 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,568 0 0 0 96 0 45 4 osh-native
29 no-host configure.tcc 5,667 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,122 0 0 0 88 0 45 3 osh-static
3 no-host configure.util-linux 1,533,004 1 0 0 35,936 0 18,995 1,085 bash
11 no-host configure.util-linux 1,696,888 2 0 0 35,936 0 17,090 1,222 dash
19 no-host configure.util-linux 1,506,564 0 0 0 35,952 0 16,234 910 osh-native
27 no-host configure.util-linux 1,517,850 0 0 0 35,944 0 16,181 934 osh-nosouffle
35 no-host configure.util-linux 1,480,045 2 0 0 35,936 0 16,127 942 osh-static
6 no-host configure.yash 173,289 0 0 0 3,616 0 879 94 bash
14 no-host configure.yash 159,618 0 0 0 3,624 0 1,001 105 dash
22 no-host configure.yash 177,129 0 0 0 3,624 0 855 94 osh-native
30 no-host configure.yash 177,338 0 0 0 3,624 0 856 99 osh-nosouffle
38 no-host configure.yash 172,792 0 0 0 3,616 0 858 108 osh-static
0 no-host hello-world 152 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 391 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 399 0 0 0 16 0 1 0 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-c1641ad5
osh-nosouffle osh-b21156f1
osh-static osh-static-0602af30
host label host id
no-host no-host-bba74091