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 20 22 18 1.30 1.16
bin-true no-host 627 447 797 804 656 1.27 1.05
configure.cpython no-host 14,078 14,020 13,734 13,811 13,254 0.98 0.94
configure.ocaml no-host 3,741 3,644 3,745 3,801 3,706 1.00 0.99
configure.tcc no-host 46 41 47 47 43 1.03 0.95
configure.util-linux no-host 12,709 13,534 12,707 12,816 12,474 1.00 0.98
configure.yash no-host 1,750 1,669 1,731 1,730 1,702 0.99 0.97
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,419 1,153 3,324 3,425 2,835 1.37 1.17
bin-true no-host 102,444 49,410 130,287 131,003 110,994 1.27 1.08
configure.cpython no-host 1,624,689 1,638,197 1,588,180 1,608,622 1,512,835 0.98 0.93
configure.ocaml no-host 299,448 280,637 305,720 307,626 300,073 1.02 1.00
configure.tcc no-host 5,219 4,207 5,560 5,676 5,123 1.07 0.98
configure.util-linux no-host 1,535,267 1,696,206 1,497,338 1,516,404 1,470,512 0.98 0.96
configure.yash no-host 173,393 159,595 176,999 177,047 172,778 1.02 1.00
hello-world no-host 151 80 391 396 184 2.59 1.22

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.8 3.9 9.4 10.0 6.3 1.95 1.30
bin-true no-host 3.1 1.6 8.8 9.2 5.4 2.79 1.71
configure.cpython no-host 34.3 34.7 34.3 34.4 34.3 1.00 1.00
configure.ocaml no-host 28.7 28.8 28.7 28.7 28.8 1.00 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.6 39.6 39.6 39.6 39.9 1.00 1.01
configure.yash no-host 33.4 33.4 33.2 33.3 33.2 1.00 1.00
hello-world no-host 3.1 1.4 6.6 6.9 3.4 2.08 1.08

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,920 3,920 0 726 1,923 1,271 2 0 50,000 0
bin-true no-host 797 1 2 3.5 8.8 151,905 10,764 2,978 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,734 1 67 14.8 34.3 1,750,907 35,429 28,954 93,081 869,789 788,037 25,789 61 50,000 0
configure.util-linux no-host 12,707 3 66 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,745 1 2 2.8 28.7 149,720 12,656 6,571 9,217 70,302 70,201 1,693 3 50,000 0
configure.tcc no-host 47 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,731 1 2 2.7 33.2 143,496 11,508 6,625 7,171 70,532 65,793 2,095 3 50,000 0
abuild-print-help no-host 20 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 804 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,811 1 68 14.9 34.4 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,816 3 67 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,801 1 2 2.8 28.7 149,720 12,661 6,576 9,217 70,302 70,201 1,693 3 50,000 0
configure.tcc no-host 47 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,730 1 2 2.7 33.3 143,496 11,512 6,629 7,171 70,532 65,793 2,095 3 50,000 0
abuild-print-help no-host 22 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 16 8 8 4.8 bash
15 no-host abuild-print-help 9 2 7 3.9 dash
23 no-host abuild-print-help 20 13 8 9.4 osh-native
31 no-host abuild-print-help 22 13 9 10.0 osh-nosouffle
39 no-host abuild-print-help 18 10 9 6.3 osh-static
1 no-host bin-true 627 318 348 3.1 bash
9 no-host bin-true 447 275 175 1.6 dash
17 no-host bin-true 797 328 484 8.8 osh-native
25 no-host bin-true 804 314 506 9.2 osh-nosouffle
33 no-host bin-true 656 323 349 5.4 osh-static
2 no-host configure.cpython 14,078 7,713 6,763 34.3 bash
10 no-host configure.cpython 14,020 7,659 6,763 34.7 dash
18 no-host configure.cpython 13,734 7,342 6,646 34.3 osh-native
26 no-host configure.cpython 13,811 7,459 6,639 34.4 osh-nosouffle
34 no-host configure.cpython 13,254 7,269 6,204 34.3 osh-static
4 no-host configure.ocaml 3,741 1,526 1,249 28.7 bash
12 no-host configure.ocaml 3,644 1,482 1,183 28.8 dash
20 no-host configure.ocaml 3,745 1,493 1,291 28.7 osh-native
28 no-host configure.ocaml 3,801 1,520 1,321 28.7 osh-nosouffle
36 no-host configure.ocaml 3,706 1,469 1,267 28.8 osh-static
5 no-host configure.tcc 46 22 25 26.1 bash
13 no-host configure.tcc 41 22 20 26.2 dash
21 no-host configure.tcc 47 28 20 26.1 osh-native
29 no-host configure.tcc 47 18 30 26.1 osh-nosouffle
37 no-host configure.tcc 43 22 22 26.2 osh-static
3 no-host configure.util-linux 12,709 6,726 6,454 39.6 bash
11 no-host configure.util-linux 13,534 6,645 7,362 39.6 dash
19 no-host configure.util-linux 12,707 6,265 6,658 39.6 osh-native
27 no-host configure.util-linux 12,816 6,370 6,654 39.6 osh-nosouffle
35 no-host configure.util-linux 12,474 6,416 6,271 39.9 osh-static
6 no-host configure.yash 1,750 972 781 33.4 bash
14 no-host configure.yash 1,669 976 694 33.4 dash
22 no-host configure.yash 1,731 1,002 732 33.2 osh-native
30 no-host configure.yash 1,730 976 756 33.3 osh-nosouffle
38 no-host configure.yash 1,702 971 729 33.2 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 3 0 3 6.6 osh-native
24 no-host hello-world 3 2 1 6.9 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,419 0 0 0 8 0 41 2 bash
15 no-host abuild-print-help 1,153 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,324 0 0 0 16 0 38 1 osh-native
31 no-host abuild-print-help 3,425 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,835 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 102,444 0 0 0 8 0 1,997 61 bash
9 no-host bin-true 49,410 0 0 0 8 0 2,997 51 dash
17 no-host bin-true 130,287 0 0 0 16 0 1,996 104 osh-native
25 no-host bin-true 131,003 0 0 0 16 0 1,994 83 osh-nosouffle
33 no-host bin-true 110,994 0 0 0 8 0 2,001 66 osh-static
2 no-host configure.cpython 1,624,689 0 0 0 25,272 0 14,091 1,034 bash
10 no-host configure.cpython 1,638,197 0 0 0 25,272 0 14,121 950 dash
18 no-host configure.cpython 1,588,180 1 0 0 25,280 0 11,297 977 osh-native
26 no-host configure.cpython 1,608,622 0 0 0 25,280 0 11,305 831 osh-nosouffle
34 no-host configure.cpython 1,512,835 0 0 0 25,272 0 11,308 868 osh-static
4 no-host configure.ocaml 299,448 0 0 0 4,432 0 2,018 189 bash
12 no-host configure.ocaml 280,637 0 0 0 4,432 0 2,106 212 dash
20 no-host configure.ocaml 305,720 0 0 0 4,440 0 2,001 231 osh-native
28 no-host configure.ocaml 307,626 0 0 0 4,440 0 2,001 194 osh-nosouffle
36 no-host configure.ocaml 300,073 0 0 0 4,432 0 1,998 202 osh-static
5 no-host configure.tcc 5,219 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,207 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,560 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,676 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,123 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,535,267 1 0 0 35,936 0 18,972 1,189 bash
11 no-host configure.util-linux 1,696,206 1 0 0 35,936 0 17,088 1,216 dash
19 no-host configure.util-linux 1,497,338 0 0 0 35,952 0 16,170 953 osh-native
27 no-host configure.util-linux 1,516,404 2 0 528 35,944 0 16,230 968 osh-nosouffle
35 no-host configure.util-linux 1,470,512 2 0 0 35,936 0 16,146 907 osh-static
6 no-host configure.yash 173,393 0 0 0 3,616 0 877 91 bash
14 no-host configure.yash 159,595 0 0 0 3,624 0 1,001 106 dash
22 no-host configure.yash 176,999 0 0 0 3,624 0 857 99 osh-native
30 no-host configure.yash 177,047 0 0 0 3,632 0 858 112 osh-nosouffle
38 no-host configure.yash 172,778 0 0 0 3,624 0 858 99 osh-static
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 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 396 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 184 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-9a43831e
osh-nosouffle osh-cfabba97
osh-static osh-static-0a2df696
host label host id
no-host no-host-bba74091