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.32 1.19
bin-true no-host 626 444 814 803 659 1.30 1.05
configure.cpython no-host 13,881 13,894 13,726 13,715 13,305 0.99 0.96
configure.ocaml no-host 3,694 3,674 3,737 3,780 3,732 1.01 1.01
configure.tcc no-host 46 41 47 49 43 1.02 0.95
configure.util-linux no-host 12,588 13,433 12,557 12,715 12,454 1.00 0.99
configure.yash no-host 1,716 1,668 1,732 1,756 1,727 1.01 1.01
hello-world no-host 1 1 3 3 1 2.34 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,177 3,318 3,432 2,815 1.40 1.19
bin-true no-host 102,417 49,410 133,300 132,034 111,322 1.30 1.09
configure.cpython no-host 1,629,267 1,632,603 1,582,309 1,598,581 1,513,243 0.97 0.93
configure.ocaml no-host 299,626 280,963 305,930 307,744 299,977 1.02 1.00
configure.tcc no-host 5,255 4,203 5,541 5,655 5,095 1.05 0.97
configure.util-linux no-host 1,532,081 1,694,209 1,497,666 1,517,182 1,469,628 0.98 0.96
configure.yash no-host 173,333 159,489 176,801 177,096 172,778 1.02 1.00
hello-world no-host 154 86 389 399 182 2.53 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.9 9.4 10.0 6.3 2.00 1.33
bin-true no-host 3.1 1.7 8.7 9.2 5.2 2.75 1.67
configure.cpython no-host 34.4 34.5 34.5 34.5 34.7 1.00 1.01
configure.ocaml no-host 28.7 28.5 28.8 28.7 28.7 1.00 1.00
configure.tcc no-host 26.0 26.3 26.1 26.0 26.1 1.00 1.00
configure.util-linux no-host 39.7 39.7 39.5 39.7 39.6 0.99 1.00
configure.yash no-host 33.4 33.4 33.1 33.4 33.2 0.99 1.00
hello-world no-host 3.3 1.6 6.4 6.9 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 814 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,726 1 67 14.8 34.5 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,557 3 65 21.6 39.5 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,737 1 2 2.8 28.8 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,732 1 2 2.7 33.1 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 6.9 3,919 3,919 0 725 1,923 1,271 2 0 50,000 0
bin-true no-host 803 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,715 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,715 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,780 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 49 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,756 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 11 5 4.7 bash
15 no-host abuild-print-help 9 4 6 3.9 dash
23 no-host abuild-print-help 21 10 12 9.4 osh-native
31 no-host abuild-print-help 22 13 9 10.0 osh-nosouffle
39 no-host abuild-print-help 19 10 9 6.3 osh-static
1 no-host bin-true 626 320 347 3.1 bash
9 no-host bin-true 444 278 173 1.7 dash
17 no-host bin-true 814 303 531 8.7 osh-native
25 no-host bin-true 803 317 502 9.2 osh-nosouffle
33 no-host bin-true 659 317 360 5.2 osh-static
2 no-host configure.cpython 13,881 7,591 6,668 34.4 bash
10 no-host configure.cpython 13,894 7,621 6,682 34.5 dash
18 no-host configure.cpython 13,726 7,289 6,711 34.5 osh-native
26 no-host configure.cpython 13,715 7,232 6,772 34.5 osh-nosouffle
34 no-host configure.cpython 13,305 7,369 6,163 34.7 osh-static
4 no-host configure.ocaml 3,694 1,505 1,230 28.7 bash
12 no-host configure.ocaml 3,674 1,474 1,224 28.5 dash
20 no-host configure.ocaml 3,737 1,489 1,289 28.8 osh-native
28 no-host configure.ocaml 3,780 1,497 1,325 28.7 osh-nosouffle
36 no-host configure.ocaml 3,732 1,459 1,304 28.7 osh-static
5 no-host configure.tcc 46 23 23 26.0 bash
13 no-host configure.tcc 41 19 22 26.3 dash
21 no-host configure.tcc 47 24 24 26.1 osh-native
29 no-host configure.tcc 49 28 21 26.0 osh-nosouffle
37 no-host configure.tcc 43 20 24 26.1 osh-static
3 no-host configure.util-linux 12,588 6,561 6,501 39.7 bash
11 no-host configure.util-linux 13,433 6,522 7,409 39.7 dash
19 no-host configure.util-linux 12,557 6,143 6,642 39.5 osh-native
27 no-host configure.util-linux 12,715 6,167 6,764 39.7 osh-nosouffle
35 no-host configure.util-linux 12,454 6,394 6,287 39.6 osh-static
6 no-host configure.yash 1,716 950 774 33.4 bash
14 no-host configure.yash 1,668 931 738 33.4 dash
22 no-host configure.yash 1,732 940 795 33.1 osh-native
30 no-host configure.yash 1,756 947 812 33.4 osh-nosouffle
38 no-host configure.yash 1,727 990 739 33.2 osh-static
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 3 2 1 6.4 osh-native
24 no-host hello-world 3 0 3 6.9 osh-nosouffle
32 no-host hello-world 1 1 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 1 bash
15 no-host abuild-print-help 1,177 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,318 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,432 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,815 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 102,417 0 0 0 8 0 1,996 50 bash
9 no-host bin-true 49,410 0 0 0 8 0 2,997 53 dash
17 no-host bin-true 133,300 0 0 0 16 0 1,998 76 osh-native
25 no-host bin-true 132,034 0 0 0 16 0 2,000 72 osh-nosouffle
33 no-host bin-true 111,322 0 0 0 8 0 1,997 74 osh-static
2 no-host configure.cpython 1,629,267 0 0 0 25,272 0 14,064 1,075 bash
10 no-host configure.cpython 1,632,603 0 0 0 25,272 0 14,108 1,001 dash
18 no-host configure.cpython 1,582,309 0 0 0 25,280 0 11,287 862 osh-native
26 no-host configure.cpython 1,598,581 0 0 0 25,280 0 11,295 832 osh-nosouffle
34 no-host configure.cpython 1,513,243 0 0 0 25,272 0 11,300 832 osh-static
4 no-host configure.ocaml 299,626 0 0 0 4,432 0 2,020 192 bash
12 no-host configure.ocaml 280,963 0 0 0 4,432 0 2,107 305 dash
20 no-host configure.ocaml 305,930 0 0 0 4,440 0 1,997 220 osh-native
28 no-host configure.ocaml 307,744 0 0 0 4,440 0 1,998 214 osh-nosouffle
36 no-host configure.ocaml 299,977 0 0 0 4,432 0 2,001 214 osh-static
5 no-host configure.tcc 5,255 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,203 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,541 0 0 0 96 0 45 1 osh-native
29 no-host configure.tcc 5,655 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,095 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,532,081 1 0 0 35,936 0 18,924 1,057 bash
11 no-host configure.util-linux 1,694,209 1 0 0 35,936 0 17,006 1,175 dash
19 no-host configure.util-linux 1,497,666 4 0 0 35,952 0 16,123 975 osh-native
27 no-host configure.util-linux 1,517,182 1 0 0 35,944 0 16,171 958 osh-nosouffle
35 no-host configure.util-linux 1,469,628 2 0 0 35,936 0 16,126 892 osh-static
6 no-host configure.yash 173,333 0 0 0 3,616 0 879 103 bash
14 no-host configure.yash 159,489 0 0 0 3,616 0 1,002 100 dash
22 no-host configure.yash 176,801 0 0 0 3,624 0 858 100 osh-native
30 no-host configure.yash 177,096 0 0 0 3,624 0 858 107 osh-nosouffle
38 no-host configure.yash 172,778 0 0 0 3,616 0 856 113 osh-static
0 no-host hello-world 154 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 389 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-76ca5d2a
osh-nosouffle osh-f8f0c158
osh-static osh-static-9a40d9f6
host label host id
no-host no-host-bba74091