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 13 7 28 19 17 2.11 1.27
bin-true no-host 487 317 622 626 505 1.28 1.04
configure.cpython no-host 12,134 12,082 12,087 12,019 11,530 1.00 0.95
configure.ocaml no-host 3,380 3,323 3,464 3,428 3,381 1.02 1.00
configure.tcc no-host 40 35 41 41 37 1.02 0.92
configure.util-linux no-host 10,761 11,400 11,178 11,050 10,698 1.04 0.99
configure.yash no-host 1,496 1,439 1,520 1,502 1,492 1.02 1.00
hello-world no-host 1 1 2 2 1 2.43 1.00

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,418 1,170 3,339 3,425 2,828 1.38 1.17
bin-true no-host 105,870 49,820 132,734 133,505 111,800 1.25 1.06
configure.cpython no-host 1,630,747 1,648,804 1,584,660 1,608,948 1,516,911 0.97 0.93
configure.ocaml no-host 300,026 281,337 307,212 308,230 300,903 1.02 1.00
configure.tcc no-host 5,256 4,233 5,588 5,684 5,116 1.06 0.97
configure.util-linux no-host 1,541,894 1,701,571 1,507,344 1,518,497 1,475,082 0.98 0.96
configure.yash no-host 173,561 159,919 176,961 176,990 173,135 1.02 1.00
hello-world no-host 155 82 393 401 183 2.54 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.6 4.1 9.6 10.1 6.3 2.09 1.37
bin-true no-host 3.3 1.6 8.7 9.0 5.2 2.64 1.60
configure.cpython no-host 34.7 34.8 34.4 34.4 34.5 0.99 1.00
configure.ocaml no-host 28.8 28.5 28.6 28.8 28.8 0.99 1.00
configure.tcc no-host 26.2 26.2 26.4 26.2 26.1 1.01 1.00
configure.util-linux no-host 39.7 39.5 39.9 39.7 39.5 1.00 0.99
configure.yash no-host 33.5 33.1 33.3 33.4 33.5 0.99 1.00
hello-world no-host 3.4 1.4 6.6 7.1 3.4 1.92 1.00

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 2 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 622 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 12,087 1 63 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 11,178 3 67 21.6 39.9 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,464 1 2 2.8 28.6 149,720 12,656 6,571 9,217 70,302 70,201 1,693 3 50,000 0
configure.tcc no-host 41 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,520 1 2 2.7 33.3 143,538 11,666 6,632 7,172 70,560 65,806 2,095 3 50,000 0
abuild-print-help no-host 28 2 4 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 2 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 626 1 2 3.5 9.0 151,905 10,768 2,982 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 12,019 1 63 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 11,050 3 65 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,428 1 2 2.8 28.8 149,720 12,661 6,576 9,217 70,302 70,201 1,693 3 50,000 0
configure.tcc no-host 41 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,502 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 19 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 13 7 6 4.6 bash
15 no-host abuild-print-help 7 5 3 4.1 dash
23 no-host abuild-print-help 28 18 11 9.6 osh-native
31 no-host abuild-print-help 19 12 7 10.1 osh-nosouffle
39 no-host abuild-print-help 17 12 5 6.3 osh-static
1 no-host bin-true 487 283 240 3.3 bash
9 no-host bin-true 317 230 87 1.6 dash
17 no-host bin-true 622 319 317 8.7 osh-native
25 no-host bin-true 626 311 330 9.0 osh-nosouffle
33 no-host bin-true 505 306 213 5.2 osh-static
2 no-host configure.cpython 12,134 7,737 4,680 34.7 bash
10 no-host configure.cpython 12,082 7,761 4,615 34.8 dash
18 no-host configure.cpython 12,087 7,441 4,817 34.4 osh-native
26 no-host configure.cpython 12,019 7,443 4,760 34.4 osh-nosouffle
34 no-host configure.cpython 11,530 7,293 4,370 34.5 osh-static
4 no-host configure.ocaml 3,380 1,511 876 28.8 bash
12 no-host configure.ocaml 3,323 1,451 864 28.5 dash
20 no-host configure.ocaml 3,464 1,534 933 28.6 osh-native
28 no-host configure.ocaml 3,428 1,512 925 28.8 osh-nosouffle
36 no-host configure.ocaml 3,381 1,537 843 28.8 osh-static
5 no-host configure.tcc 40 21 20 26.2 bash
13 no-host configure.tcc 35 26 9 26.2 dash
21 no-host configure.tcc 41 24 17 26.4 osh-native
29 no-host configure.tcc 41 17 24 26.2 osh-nosouffle
37 no-host configure.tcc 37 23 14 26.1 osh-static
3 no-host configure.util-linux 10,761 6,759 4,350 39.7 bash
11 no-host configure.util-linux 11,400 6,674 5,102 39.5 dash
19 no-host configure.util-linux 11,178 6,516 4,793 39.9 osh-native
27 no-host configure.util-linux 11,050 6,440 4,733 39.7 osh-nosouffle
35 no-host configure.util-linux 10,698 6,349 4,470 39.5 osh-static
6 no-host configure.yash 1,496 938 554 33.5 bash
14 no-host configure.yash 1,439 971 455 33.1 dash
22 no-host configure.yash 1,520 972 538 33.3 osh-native
30 no-host configure.yash 1,502 941 550 33.4 osh-nosouffle
38 no-host configure.yash 1,492 966 516 33.5 osh-static
0 no-host hello-world 1 0 1 3.4 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 2 1 2 6.6 osh-native
24 no-host hello-world 2 1 1 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,418 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,170 0 0 0 8 0 40 1 dash
23 no-host abuild-print-help 3,339 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,425 0 0 0 16 0 39 2 osh-nosouffle
39 no-host abuild-print-help 2,828 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 105,870 0 0 0 8 0 1,997 60 bash
9 no-host bin-true 49,820 0 0 0 8 0 2,992 42 dash
17 no-host bin-true 132,734 0 0 0 16 0 2,000 76 osh-native
25 no-host bin-true 133,505 0 0 0 16 0 1,999 67 osh-nosouffle
33 no-host bin-true 111,800 0 0 0 8 0 2,000 58 osh-static
2 no-host configure.cpython 1,630,747 0 0 0 25,272 0 14,034 947 bash
10 no-host configure.cpython 1,648,804 0 0 0 25,272 0 14,072 990 dash
18 no-host configure.cpython 1,584,660 1 0 0 25,280 0 11,317 811 osh-native
26 no-host configure.cpython 1,608,948 0 0 0 25,280 0 11,288 866 osh-nosouffle
34 no-host configure.cpython 1,516,911 1 0 0 25,272 0 11,316 809 osh-static
4 no-host configure.ocaml 300,026 0 0 0 4,432 0 2,016 189 bash
12 no-host configure.ocaml 281,337 0 0 0 4,432 0 2,114 184 dash
20 no-host configure.ocaml 307,212 0 0 0 4,440 0 1,999 301 osh-native
28 no-host configure.ocaml 308,230 0 0 0 4,440 0 2,001 192 osh-nosouffle
36 no-host configure.ocaml 300,903 0 0 0 4,432 0 1,997 205 osh-static
5 no-host configure.tcc 5,256 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,233 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,588 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,684 0 0 0 96 0 45 5 osh-nosouffle
37 no-host configure.tcc 5,116 0 0 0 88 0 45 3 osh-static
3 no-host configure.util-linux 1,541,894 1 0 0 35,936 0 18,805 1,039 bash
11 no-host configure.util-linux 1,701,571 0 0 0 35,936 0 16,903 1,135 dash
19 no-host configure.util-linux 1,507,344 3 0 0 35,960 0 16,183 901 osh-native
27 no-host configure.util-linux 1,518,497 4 0 0 35,944 0 16,207 852 osh-nosouffle
35 no-host configure.util-linux 1,475,082 7 0 0 35,936 0 16,182 853 osh-static
6 no-host configure.yash 173,561 0 0 0 3,616 0 878 100 bash
14 no-host configure.yash 159,919 0 0 0 3,616 0 1,002 99 dash
22 no-host configure.yash 176,961 0 0 0 3,624 0 854 87 osh-native
30 no-host configure.yash 176,990 0 0 0 3,624 0 858 91 osh-nosouffle
38 no-host configure.yash 173,135 0 0 0 3,616 0 854 121 osh-static
0 no-host hello-world 155 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 393 0 0 0 16 0 1 1 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 0 osh-static

Shell and Host

shell label shell id
bash bash-36833674
dash dash-cea41b3e
osh-native osh-ba9230fa
osh-nosouffle osh-572396fd
osh-static osh-static-42521294
host label host id
no-host no-host-bba74091