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 10 22 23 19 1.39 1.21
bin-true no-host 631 446 858 835 669 1.36 1.06
configure.cpython no-host 14,763 14,240 14,511 14,867 13,939 0.98 0.94
configure.ocaml no-host 3,844 3,834 3,892 3,963 3,858 1.01 1.00
configure.tcc no-host 49 45 49 50 45 0.99 0.91
configure.util-linux no-host 13,130 14,290 13,264 13,984 13,109 1.01 1.00
configure.yash no-host 1,772 1,805 1,819 1,831 1,800 1.03 1.02
hello-world no-host 1 1 3 3 1 2.42 0.99

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,364 1,160 3,268 3,426 2,826 1.38 1.20
bin-true no-host 100,444 49,409 129,329 134,032 111,410 1.29 1.11
configure.cpython no-host 1,628,751 1,640,628 1,592,930 1,606,952 1,514,061 0.98 0.93
configure.ocaml no-host 299,395 280,620 306,635 308,008 299,826 1.02 1.00
configure.tcc no-host 5,224 4,215 5,585 5,662 5,117 1.07 0.98
configure.util-linux no-host 1,527,538 1,695,764 1,500,283 1,512,525 1,470,809 0.98 0.96
configure.yash no-host 173,269 159,545 176,470 176,684 172,846 1.02 1.00
hello-world no-host 151 84 394 398 183 2.61 1.21

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.1 6.3 2.00 1.33
bin-true no-host 3.3 1.4 8.5 9.2 5.2 2.60 1.60
configure.cpython no-host 34.5 34.5 34.6 34.4 34.5 1.00 1.00
configure.ocaml no-host 28.8 28.7 28.7 28.6 28.7 1.00 1.00
configure.tcc no-host 26.0 26.2 26.1 26.0 26.3 1.01 1.01
configure.util-linux no-host 39.7 39.9 39.6 39.7 39.7 1.00 1.00
configure.yash no-host 33.4 33.1 33.4 33.3 33.4 1.00 1.00
hello-world no-host 3.1 1.6 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 858 1 2 3.5 8.5 151,905 10,764 2,978 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 14,511 2 76 14.8 34.6 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,264 5 75 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,892 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 49 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,819 1 2 2.7 33.4 143,538 11,666 6,632 7,172 70,560 65,806 2,095 3 50,000 0
abuild-print-help no-host 22 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 6.9 3,919 3,919 0 725 1,923 1,271 2 0 50,000 0
bin-true no-host 835 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,867 2 78 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 13,984 3 79 21.6 39.7 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,963 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 50 0 0 1.4 26.0 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,831 1 2 2.7 33.3 143,538 11,670 6,636 7,172 70,560 65,806 2,095 3 50,000 0
abuild-print-help no-host 23 1 2 3.0 10.1 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 10 6 4.7 bash
15 no-host abuild-print-help 10 4 6 3.9 dash
23 no-host abuild-print-help 22 14 9 9.4 osh-native
31 no-host abuild-print-help 23 15 9 10.1 osh-nosouffle
39 no-host abuild-print-help 19 10 10 6.3 osh-static
1 no-host bin-true 631 317 353 3.3 bash
9 no-host bin-true 446 281 170 1.4 dash
17 no-host bin-true 858 302 575 8.5 osh-native
25 no-host bin-true 835 313 539 9.2 osh-nosouffle
33 no-host bin-true 669 324 363 5.2 osh-static
2 no-host configure.cpython 14,763 8,173 7,010 34.5 bash
10 no-host configure.cpython 14,240 7,752 6,910 34.5 dash
18 no-host configure.cpython 14,511 7,708 7,108 34.6 osh-native
26 no-host configure.cpython 14,867 7,851 7,333 34.4 osh-nosouffle
34 no-host configure.cpython 13,939 7,727 6,466 34.5 osh-static
4 no-host configure.ocaml 3,844 1,549 1,338 28.8 bash
12 no-host configure.ocaml 3,834 1,584 1,275 28.7 dash
20 no-host configure.ocaml 3,892 1,530 1,402 28.7 osh-native
28 no-host configure.ocaml 3,963 1,623 1,385 28.6 osh-nosouffle
36 no-host configure.ocaml 3,858 1,568 1,323 28.7 osh-static
5 no-host configure.tcc 49 24 26 26.0 bash
13 no-host configure.tcc 45 28 18 26.2 dash
21 no-host configure.tcc 49 25 24 26.1 osh-native
29 no-host configure.tcc 50 28 22 26.0 osh-nosouffle
37 no-host configure.tcc 45 22 23 26.3 osh-static
3 no-host configure.util-linux 13,130 6,819 6,800 39.7 bash
11 no-host configure.util-linux 14,290 7,006 7,819 39.9 dash
19 no-host configure.util-linux 13,264 6,550 6,954 39.6 osh-native
27 no-host configure.util-linux 13,984 6,812 7,426 39.7 osh-nosouffle
35 no-host configure.util-linux 13,109 6,705 6,639 39.7 osh-static
6 no-host configure.yash 1,772 973 807 33.4 bash
14 no-host configure.yash 1,805 1,049 756 33.1 dash
22 no-host configure.yash 1,819 1,017 804 33.4 osh-native
30 no-host configure.yash 1,831 996 837 33.3 osh-nosouffle
38 no-host configure.yash 1,800 1,034 768 33.4 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 3 0 3 6.6 osh-native
24 no-host hello-world 3 1 2 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,364 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,160 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,268 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,426 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,826 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 100,444 0 0 0 8 0 1,999 81 bash
9 no-host bin-true 49,409 0 0 0 8 0 2,994 48 dash
17 no-host bin-true 129,329 0 0 0 16 0 1,996 82 osh-native
25 no-host bin-true 134,032 0 0 0 16 0 1,996 97 osh-nosouffle
33 no-host bin-true 111,410 0 0 0 8 0 1,993 66 osh-static
2 no-host configure.cpython 1,628,751 0 0 0 25,272 0 14,098 1,154 bash
10 no-host configure.cpython 1,640,628 1 0 0 25,272 0 14,145 1,023 dash
18 no-host configure.cpython 1,592,930 0 0 0 25,280 0 11,321 837 osh-native
26 no-host configure.cpython 1,606,952 0 0 0 25,280 0 11,310 844 osh-nosouffle
34 no-host configure.cpython 1,514,061 0 0 0 25,272 0 11,295 889 osh-static
4 no-host configure.ocaml 299,395 0 0 0 4,432 0 2,019 192 bash
12 no-host configure.ocaml 280,620 0 0 0 4,432 0 2,105 326 dash
20 no-host configure.ocaml 306,635 0 0 0 4,440 0 2,000 229 osh-native
28 no-host configure.ocaml 308,008 0 0 0 4,440 0 2,001 211 osh-nosouffle
36 no-host configure.ocaml 299,826 0 0 0 4,432 0 1,999 226 osh-static
5 no-host configure.tcc 5,224 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,215 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,585 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,662 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,117 0 0 0 88 0 45 0 osh-static
3 no-host configure.util-linux 1,527,538 1 0 0 35,936 0 19,070 1,080 bash
11 no-host configure.util-linux 1,695,764 2 0 0 35,936 0 17,169 1,218 dash
19 no-host configure.util-linux 1,500,283 0 0 0 35,952 0 16,198 955 osh-native
27 no-host configure.util-linux 1,512,525 0 0 0 35,944 0 16,206 966 osh-nosouffle
35 no-host configure.util-linux 1,470,809 3 0 0 35,936 0 16,106 937 osh-static
6 no-host configure.yash 173,269 0 0 0 3,616 0 879 93 bash
14 no-host configure.yash 159,545 0 0 0 3,616 0 998 111 dash
22 no-host configure.yash 176,470 0 0 0 3,624 0 857 101 osh-native
30 no-host configure.yash 176,684 0 0 0 3,624 0 858 91 osh-nosouffle
38 no-host configure.yash 172,846 0 0 0 3,616 0 856 106 osh-static
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 394 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 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-66762fb4
osh-nosouffle osh-4b3af450
osh-static osh-static-a7ecaee1
host label host id
no-host no-host-bba74091