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 21 22 18 1.34 1.18
bin-true no-host 627 443 795 805 651 1.27 1.04
configure.cpython no-host 13,819 13,893 13,446 13,557 13,016 0.97 0.94
configure.ocaml no-host 3,664 3,614 3,741 3,711 3,676 1.02 1.00
configure.tcc no-host 46 41 47 47 43 1.02 0.94
configure.util-linux no-host 12,597 13,329 12,814 12,582 12,218 1.02 0.97
configure.yash no-host 1,697 1,640 1,701 1,713 1,676 1.00 0.99
hello-world no-host 1 1 3 3 1 2.49 1.06

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,388 1,193 3,326 3,376 2,822 1.39 1.18
bin-true no-host 103,414 49,434 130,317 134,030 110,398 1.26 1.07
configure.cpython no-host 1,621,559 1,639,517 1,578,474 1,594,315 1,513,294 0.97 0.93
configure.ocaml no-host 298,542 280,874 306,109 307,426 299,952 1.03 1.00
configure.tcc no-host 5,251 4,211 5,573 5,674 5,116 1.06 0.97
configure.util-linux no-host 1,535,315 1,698,759 1,500,493 1,520,449 1,471,595 0.98 0.96
configure.yash no-host 173,444 159,602 176,372 177,197 172,744 1.02 1.00
hello-world no-host 152 83 395 401 184 2.60 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.8 3.9 9.6 10.0 6.3 1.97 1.30
bin-true no-host 3.1 1.7 8.7 9.2 5.2 2.75 1.67
configure.cpython no-host 34.7 34.5 34.6 34.5 34.6 1.00 1.00
configure.ocaml no-host 28.6 28.7 28.5 28.7 28.7 1.00 1.00
configure.tcc no-host 26.1 26.2 26.2 26.2 26.2 1.00 1.00
configure.util-linux no-host 39.6 39.7 39.7 39.7 39.6 1.00 1.00
configure.yash no-host 33.4 33.4 33.4 33.3 33.2 1.00 0.99
hello-world no-host 3.1 1.4 6.6 7.1 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 795 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 13,446 1 68 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 12,814 3 68 21.6 39.7 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,741 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 47 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,701 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 21 1 2 3.0 9.6 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 805 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,557 1 68 14.9 34.5 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,582 3 66 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,711 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.2 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,713 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 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 15 11 5 4.8 bash
15 no-host abuild-print-help 9 3 6 3.9 dash
23 no-host abuild-print-help 21 13 8 9.6 osh-native
31 no-host abuild-print-help 22 13 9 10.0 osh-nosouffle
39 no-host abuild-print-help 18 12 7 6.3 osh-static
1 no-host bin-true 627 320 347 3.1 bash
9 no-host bin-true 443 281 168 1.7 dash
17 no-host bin-true 795 303 510 8.7 osh-native
25 no-host bin-true 805 329 494 9.2 osh-nosouffle
33 no-host bin-true 651 317 349 5.2 osh-static
2 no-host configure.cpython 13,819 7,573 6,640 34.7 bash
10 no-host configure.cpython 13,893 7,650 6,654 34.5 dash
18 no-host configure.cpython 13,446 7,202 6,514 34.6 osh-native
26 no-host configure.cpython 13,557 7,267 6,579 34.5 osh-nosouffle
34 no-host configure.cpython 13,016 7,292 5,965 34.6 osh-static
4 no-host configure.ocaml 3,664 1,470 1,233 28.6 bash
12 no-host configure.ocaml 3,614 1,468 1,171 28.7 dash
20 no-host configure.ocaml 3,741 1,545 1,235 28.5 osh-native
28 no-host configure.ocaml 3,711 1,508 1,243 28.7 osh-nosouffle
36 no-host configure.ocaml 3,676 1,472 1,236 28.7 osh-static
5 no-host configure.tcc 46 24 22 26.1 bash
13 no-host configure.tcc 41 22 19 26.2 dash
21 no-host configure.tcc 47 31 16 26.2 osh-native
29 no-host configure.tcc 47 27 21 26.2 osh-nosouffle
37 no-host configure.tcc 43 22 21 26.2 osh-static
3 no-host configure.util-linux 12,597 6,589 6,480 39.6 bash
11 no-host configure.util-linux 13,329 6,599 7,227 39.7 dash
19 no-host configure.util-linux 12,814 6,199 6,586 39.7 osh-native
27 no-host configure.util-linux 12,582 6,225 6,588 39.7 osh-nosouffle
35 no-host configure.util-linux 12,218 6,180 6,259 39.6 osh-static
6 no-host configure.yash 1,697 936 770 33.4 bash
14 no-host configure.yash 1,640 956 686 33.4 dash
22 no-host configure.yash 1,701 960 744 33.4 osh-native
30 no-host configure.yash 1,713 969 747 33.3 osh-nosouffle
38 no-host configure.yash 1,676 943 736 33.2 osh-static
0 no-host hello-world 1 1 0 3.1 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 3 1 2 6.6 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,388 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,193 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,326 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,376 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,822 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 103,414 0 0 0 8 0 2,000 63 bash
9 no-host bin-true 49,434 0 0 0 8 0 2,994 52 dash
17 no-host bin-true 130,317 0 0 0 16 0 1,998 83 osh-native
25 no-host bin-true 134,030 0 0 0 16 0 1,999 85 osh-nosouffle
33 no-host bin-true 110,398 0 0 0 8 0 1,999 82 osh-static
2 no-host configure.cpython 1,621,559 0 0 0 25,272 0 14,077 1,027 bash
10 no-host configure.cpython 1,639,517 0 0 0 25,272 0 14,124 1,013 dash
18 no-host configure.cpython 1,578,474 0 0 0 25,280 0 11,295 837 osh-native
26 no-host configure.cpython 1,594,315 0 0 0 25,280 0 11,300 856 osh-nosouffle
34 no-host configure.cpython 1,513,294 0 0 0 25,272 0 11,299 856 osh-static
4 no-host configure.ocaml 298,542 0 0 0 4,432 0 2,016 190 bash
12 no-host configure.ocaml 280,874 0 0 0 4,432 0 2,108 198 dash
20 no-host configure.ocaml 306,109 0 0 0 4,440 0 2,002 218 osh-native
28 no-host configure.ocaml 307,426 0 0 0 4,440 0 1,998 196 osh-nosouffle
36 no-host configure.ocaml 299,952 0 0 0 4,432 0 2,000 215 osh-static
5 no-host configure.tcc 5,251 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,211 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,573 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,674 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,116 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,535,315 0 0 0 35,936 0 18,977 1,066 bash
11 no-host configure.util-linux 1,698,759 3 0 0 35,936 0 17,094 1,309 dash
19 no-host configure.util-linux 1,500,493 2 0 0 35,952 0 16,155 874 osh-native
27 no-host configure.util-linux 1,520,449 0 0 0 35,944 0 16,213 923 osh-nosouffle
35 no-host configure.util-linux 1,471,595 2 0 0 35,944 0 16,129 944 osh-static
6 no-host configure.yash 173,444 0 0 0 3,616 0 879 102 bash
14 no-host configure.yash 159,602 0 0 0 3,624 0 1,001 111 dash
22 no-host configure.yash 176,372 0 0 0 3,624 0 858 107 osh-native
30 no-host configure.yash 177,197 0 0 0 3,632 0 858 107 osh-nosouffle
38 no-host configure.yash 172,744 0 0 0 3,616 0 858 96 osh-static
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 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 401 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-f6cffb81
osh-nosouffle osh-80865b73
osh-static osh-static-9798a836
host label host id
no-host no-host-bba74091