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 16 9 21 22 19 1.31 1.16
bin-true no-host 630 457 824 823 660 1.31 1.05
configure.cpython no-host 14,497 14,508 13,805 14,100 13,265 0.95 0.92
configure.ocaml no-host 3,857 3,787 3,841 3,779 3,750 1.00 0.97
configure.tcc no-host 49 45 48 49 44 0.98 0.90
configure.util-linux no-host 12,789 13,834 13,226 12,931 12,612 1.03 0.99
configure.yash no-host 1,794 1,728 1,719 1,745 1,715 0.96 0.96
hello-world no-host 1 1 3 3 1 2.43 1.07

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,373 1,168 3,308 3,403 2,815 1.39 1.19
bin-true no-host 104,499 49,363 135,299 135,075 111,309 1.29 1.07
configure.cpython no-host 1,627,809 1,644,547 1,588,460 1,603,187 1,513,445 0.98 0.93
configure.ocaml no-host 299,019 280,790 305,654 307,729 300,053 1.02 1.00
configure.tcc no-host 5,189 4,206 5,542 5,660 5,119 1.07 0.99
configure.util-linux no-host 1,535,263 1,704,016 1,500,383 1,516,669 1,471,094 0.98 0.96
configure.yash no-host 173,185 159,599 176,177 176,699 172,817 1.02 1.00
hello-world no-host 155 86 391 401 183 2.52 1.18

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 9.0 9.2 5.4 2.76 1.64
configure.cpython no-host 34.6 34.7 34.4 34.7 34.4 0.99 0.99
configure.ocaml no-host 28.6 28.7 28.5 28.6 28.6 1.00 1.00
configure.tcc no-host 26.3 26.2 26.3 26.4 26.1 1.00 1.00
configure.util-linux no-host 39.6 39.6 39.6 39.6 39.9 1.00 1.01
configure.yash no-host 33.1 33.4 33.5 33.4 33.2 1.01 1.00
hello-world no-host 3.3 1.4 6.4 7.1 3.4 1.96 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.4 3,920 3,920 0 726 1,923 1,271 2 0 50,000 0
bin-true no-host 824 1 2 3.5 9.0 151,905 10,764 2,978 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,805 1 69 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 13,226 3 69 21.6 39.6 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,841 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 48 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,719 1 2 2.7 33.5 143,538 11,666 6,632 7,172 70,560 65,806 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.4 117,263 65,801 42,008 4,981 54,612 57,670 277 3 84,016 1
hello-world no-host 3 0 0 0.3 7.1 3,919 3,919 0 725 1,923 1,271 2 0 50,000 0
bin-true no-host 823 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 14,100 1 70 14.9 34.7 1,750,906 36,488 28,959 93,080 869,789 788,037 25,789 61 50,000 0
configure.util-linux no-host 12,931 3 68 21.6 39.6 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,779 1 2 2.8 28.6 149,720 12,661 6,576 9,217 70,302 70,201 1,693 3 50,000 0
configure.tcc no-host 49 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,745 1 2 2.7 33.4 143,538 11,670 6,636 7,172 70,560 65,806 2,095 3 50,000 0
abuild-print-help no-host 22 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 16 9 8 4.7 bash
15 no-host abuild-print-help 9 6 4 3.8 dash
23 no-host abuild-print-help 21 12 10 9.4 osh-native
31 no-host abuild-print-help 22 12 11 10.0 osh-nosouffle
39 no-host abuild-print-help 19 12 7 6.3 osh-static
1 no-host bin-true 630 302 368 3.3 bash
9 no-host bin-true 457 276 187 1.7 dash
17 no-host bin-true 824 311 531 9.0 osh-native
25 no-host bin-true 823 317 521 9.2 osh-nosouffle
33 no-host bin-true 660 333 343 5.4 osh-static
2 no-host configure.cpython 14,497 7,919 6,988 34.6 bash
10 no-host configure.cpython 14,508 7,857 7,076 34.7 dash
18 no-host configure.cpython 13,805 7,260 6,827 34.4 osh-native
26 no-host configure.cpython 14,100 7,481 6,918 34.7 osh-nosouffle
34 no-host configure.cpython 13,265 7,314 6,196 34.4 osh-static
4 no-host configure.ocaml 3,857 1,521 1,379 28.6 bash
12 no-host configure.ocaml 3,787 1,547 1,266 28.7 dash
20 no-host configure.ocaml 3,841 1,566 1,316 28.5 osh-native
28 no-host configure.ocaml 3,779 1,528 1,294 28.6 osh-nosouffle
36 no-host configure.ocaml 3,750 1,529 1,238 28.6 osh-static
5 no-host configure.tcc 49 26 24 26.3 bash
13 no-host configure.tcc 45 24 21 26.2 dash
21 no-host configure.tcc 48 26 22 26.3 osh-native
29 no-host configure.tcc 49 26 24 26.4 osh-nosouffle
37 no-host configure.tcc 44 23 22 26.1 osh-static
3 no-host configure.util-linux 12,789 6,730 6,546 39.6 bash
11 no-host configure.util-linux 13,834 6,774 7,581 39.6 dash
19 no-host configure.util-linux 13,226 6,473 6,996 39.6 osh-native
27 no-host configure.util-linux 12,931 6,471 6,698 39.6 osh-nosouffle
35 no-host configure.util-linux 12,612 6,417 6,431 39.9 osh-static
6 no-host configure.yash 1,794 1,015 786 33.1 bash
14 no-host configure.yash 1,728 958 771 33.4 dash
22 no-host configure.yash 1,719 948 773 33.5 osh-native
30 no-host configure.yash 1,745 980 768 33.4 osh-nosouffle
38 no-host configure.yash 1,715 980 738 33.2 osh-static
0 no-host hello-world 1 1 0 3.3 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 3 2 1 6.4 osh-native
24 no-host hello-world 3 1 2 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,373 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,308 0 0 0 16 0 38 0 osh-native
31 no-host abuild-print-help 3,403 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,815 0 0 0 8 0 39 1 osh-static
1 no-host bin-true 104,499 0 0 0 8 0 1,999 68 bash
9 no-host bin-true 49,363 0 0 0 8 0 2,989 57 dash
17 no-host bin-true 135,299 0 0 0 16 0 1,998 75 osh-native
25 no-host bin-true 135,075 0 0 0 16 0 1,999 113 osh-nosouffle
33 no-host bin-true 111,309 0 0 0 8 0 1,996 73 osh-static
2 no-host configure.cpython 1,627,809 0 0 0 25,272 0 14,070 1,051 bash
10 no-host configure.cpython 1,644,547 0 0 0 25,272 0 14,131 1,106 dash
18 no-host configure.cpython 1,588,460 0 0 0 25,280 0 11,296 852 osh-native
26 no-host configure.cpython 1,603,187 0 0 0 25,280 0 11,291 896 osh-nosouffle
34 no-host configure.cpython 1,513,445 0 0 0 25,272 0 11,297 842 osh-static
4 no-host configure.ocaml 299,019 0 0 0 4,432 0 2,019 191 bash
12 no-host configure.ocaml 280,790 0 0 0 4,432 0 2,104 194 dash
20 no-host configure.ocaml 305,654 0 0 0 4,440 0 1,997 233 osh-native
28 no-host configure.ocaml 307,729 0 0 0 4,440 0 1,998 197 osh-nosouffle
36 no-host configure.ocaml 300,053 0 0 0 4,432 0 2,000 207 osh-static
5 no-host configure.tcc 5,189 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,206 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,542 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,660 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,119 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,535,263 0 0 0 35,936 0 19,022 1,093 bash
11 no-host configure.util-linux 1,704,016 0 0 0 35,936 0 17,165 1,265 dash
19 no-host configure.util-linux 1,500,383 1 0 0 35,952 0 16,181 933 osh-native
27 no-host configure.util-linux 1,516,669 2 0 0 35,944 0 16,121 895 osh-nosouffle
35 no-host configure.util-linux 1,471,094 3 0 0 35,944 0 16,211 934 osh-static
6 no-host configure.yash 173,185 0 0 0 3,616 0 879 94 bash
14 no-host configure.yash 159,599 0 0 0 3,616 0 1,000 103 dash
22 no-host configure.yash 176,177 0 0 0 3,624 0 858 106 osh-native
30 no-host configure.yash 176,699 0 0 0 3,632 0 856 91 osh-nosouffle
38 no-host configure.yash 172,817 0 0 0 3,616 0 858 111 osh-static
0 no-host hello-world 155 0 0 0 8 0 1 0 bash
8 no-host hello-world 86 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 401 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 183 0 0 0 8 0 1 1 osh-static

Shell and Host

shell label shell id
bash bash-36833674
dash dash-cea41b3e
osh-native osh-103be910
osh-nosouffle osh-9ff5632b
osh-static osh-static-c6e55e81
host label host id
no-host no-host-bba74091