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 18 1.31 1.16
bin-true no-host 629 446 826 824 667 1.31 1.06
configure.cpython no-host 14,153 14,203 13,830 13,929 13,372 0.98 0.94
configure.ocaml no-host 3,743 3,679 3,782 3,825 3,771 1.01 1.01
configure.tcc no-host 46 42 49 49 44 1.05 0.95
configure.util-linux no-host 12,917 13,646 12,778 13,030 12,553 0.99 0.97
configure.yash no-host 1,727 1,699 1,753 1,760 1,739 1.01 1.01
hello-world no-host 1 1 3 3 1 2.43 0.98

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,425 1,173 3,278 3,424 2,826 1.35 1.17
bin-true no-host 102,429 49,454 135,296 135,021 112,061 1.32 1.09
configure.cpython no-host 1,620,601 1,640,659 1,573,841 1,608,580 1,515,148 0.97 0.93
configure.ocaml no-host 298,443 281,211 306,473 307,438 300,271 1.03 1.01
configure.tcc no-host 5,213 4,213 5,584 5,667 5,111 1.07 0.98
configure.util-linux no-host 1,537,623 1,698,963 1,505,917 1,521,007 1,480,071 0.98 0.96
configure.yash no-host 173,293 159,601 177,279 176,892 172,752 1.02 1.00
hello-world no-host 149 86 395 400 181 2.65 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.4 10.0 6.3 1.95 1.30
bin-true no-host 3.3 1.7 8.7 9.2 5.1 2.64 1.56
configure.cpython no-host 34.5 34.7 34.5 34.4 34.3 1.00 0.99
configure.ocaml no-host 28.7 28.7 28.5 28.8 28.8 1.00 1.00
configure.tcc no-host 26.1 26.2 26.2 26.0 26.1 1.00 1.00
configure.util-linux no-host 39.6 39.9 39.6 39.7 39.9 1.00 1.01
configure.yash no-host 33.3 33.3 33.4 33.3 33.1 1.00 1.00
hello-world no-host 3.0 1.6 6.6 7.1 3.3 2.17 1.09

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,919 3,919 0 726 1,922 1,271 2 0 50,000 0
bin-true no-host 826 1 2 3.5 8.7 151,904 10,764 2,978 14,785 72,396 64,723 3,008 3 50,000 0
configure.cpython no-host 13,830 1 69 14.8 34.5 1,750,831 35,399 28,954 93,081 869,763 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,778 3 68 21.6 39.6 2,705,397 37,471 66,342 119,749 1,291,873 1,293,775 32,527 42 132,684 1
configure.ocaml no-host 3,782 1 2 2.8 28.5 149,704 12,656 6,571 9,217 70,296 70,191 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.4 26.2 30,555 30,555 0 1,684 14,474 14,397 271 0 50,000 0
configure.yash no-host 1,753 1 2 2.7 33.4 143,480 11,508 6,625 7,171 70,526 65,783 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.4 117,238 65,801 42,008 4,980 54,600 57,658 277 3 84,016 1
hello-world no-host 3 0 0 0.3 7.1 3,918 3,918 0 725 1,922 1,271 2 0 50,000 0
bin-true no-host 824 1 2 3.5 9.2 151,904 10,768 2,982 14,785 72,396 64,723 3,008 3 50,000 0
configure.cpython no-host 13,929 1 71 14.9 34.4 1,750,830 36,458 28,959 93,080 869,763 787,987 25,789 61 50,000 0
configure.util-linux no-host 13,030 3 69 21.6 39.7 2,705,397 37,477 66,348 119,749 1,291,873 1,293,775 32,527 42 132,696 1
configure.ocaml no-host 3,825 1 2 2.8 28.8 149,704 12,661 6,576 9,217 70,296 70,191 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.4 26.0 30,555 30,555 0 1,684 14,474 14,397 271 0 50,000 0
configure.yash no-host 1,760 1 2 2.7 33.3 143,480 11,512 6,629 7,171 70,526 65,783 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 10.0 117,238 65,805 42,012 4,980 54,600 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 10 6 4.8 bash
15 no-host abuild-print-help 9 5 5 3.9 dash
23 no-host abuild-print-help 21 11 10 9.4 osh-native
31 no-host abuild-print-help 22 13 10 10.0 osh-nosouffle
39 no-host abuild-print-help 18 10 9 6.3 osh-static
1 no-host bin-true 629 312 359 3.3 bash
9 no-host bin-true 446 283 168 1.7 dash
17 no-host bin-true 826 305 537 8.7 osh-native
25 no-host bin-true 824 304 535 9.2 osh-nosouffle
33 no-host bin-true 667 320 364 5.1 osh-static
2 no-host configure.cpython 14,153 7,742 6,810 34.5 bash
10 no-host configure.cpython 14,203 7,784 6,835 34.7 dash
18 no-host configure.cpython 13,830 7,346 6,761 34.5 osh-native
26 no-host configure.cpython 13,929 7,344 6,882 34.4 osh-nosouffle
34 no-host configure.cpython 13,372 7,246 6,371 34.3 osh-static
4 no-host configure.ocaml 3,743 1,474 1,310 28.7 bash
12 no-host configure.ocaml 3,679 1,469 1,236 28.7 dash
20 no-host configure.ocaml 3,782 1,560 1,262 28.5 osh-native
28 no-host configure.ocaml 3,825 1,508 1,357 28.8 osh-nosouffle
36 no-host configure.ocaml 3,771 1,508 1,296 28.8 osh-static
5 no-host configure.tcc 46 24 23 26.1 bash
13 no-host configure.tcc 42 23 20 26.2 dash
21 no-host configure.tcc 49 22 27 26.2 osh-native
29 no-host configure.tcc 49 22 28 26.0 osh-nosouffle
37 no-host configure.tcc 44 23 21 26.1 osh-static
3 no-host configure.util-linux 12,917 6,727 6,666 39.6 bash
11 no-host configure.util-linux 13,646 6,670 7,480 39.9 dash
19 no-host configure.util-linux 12,778 6,310 6,696 39.6 osh-native
27 no-host configure.util-linux 13,030 6,352 6,916 39.7 osh-nosouffle
35 no-host configure.util-linux 12,553 6,386 6,394 39.9 osh-static
6 no-host configure.yash 1,727 942 793 33.3 bash
14 no-host configure.yash 1,699 938 763 33.3 dash
22 no-host configure.yash 1,753 979 776 33.4 osh-native
30 no-host configure.yash 1,760 946 817 33.3 osh-nosouffle
38 no-host configure.yash 1,739 978 763 33.1 osh-static
0 no-host hello-world 1 0 1 3.0 bash
8 no-host hello-world 1 0 1 1.6 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 1 0 3.3 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,425 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,173 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,278 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,424 0 0 0 16 0 38 0 osh-nosouffle
39 no-host abuild-print-help 2,826 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 102,429 0 0 0 8 0 1,994 72 bash
9 no-host bin-true 49,454 0 0 0 8 0 2,995 62 dash
17 no-host bin-true 135,296 0 0 0 16 0 1,996 101 osh-native
25 no-host bin-true 135,021 0 0 0 16 0 1,997 79 osh-nosouffle
33 no-host bin-true 112,061 0 0 0 8 0 1,998 68 osh-static
2 no-host configure.cpython 1,620,601 0 0 0 25,296 0 14,068 983 bash
10 no-host configure.cpython 1,640,659 0 0 0 25,272 0 14,111 1,066 dash
18 no-host configure.cpython 1,573,841 0 0 0 25,280 0 11,292 865 osh-native
26 no-host configure.cpython 1,608,580 0 0 0 25,280 0 11,308 1,005 osh-nosouffle
34 no-host configure.cpython 1,515,148 0 0 0 25,272 0 11,297 843 osh-static
4 no-host configure.ocaml 298,443 0 0 0 4,432 0 2,020 184 bash
12 no-host configure.ocaml 281,211 0 0 0 4,432 0 2,108 184 dash
20 no-host configure.ocaml 306,473 0 0 0 4,440 0 2,000 218 osh-native
28 no-host configure.ocaml 307,438 0 0 0 4,440 0 2,000 203 osh-nosouffle
36 no-host configure.ocaml 300,271 0 0 0 4,432 0 1,996 208 osh-static
5 no-host configure.tcc 5,213 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,213 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 5,584 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,667 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,111 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,537,623 0 0 0 35,936 0 18,970 1,113 bash
11 no-host configure.util-linux 1,698,963 1 0 0 35,944 0 17,129 1,449 dash
19 no-host configure.util-linux 1,505,917 0 0 0 35,960 0 16,046 949 osh-native
27 no-host configure.util-linux 1,521,007 1 0 0 35,952 0 16,143 878 osh-nosouffle
35 no-host configure.util-linux 1,480,071 1 0 0 35,944 0 16,190 967 osh-static
6 no-host configure.yash 173,293 0 0 0 3,616 0 878 96 bash
14 no-host configure.yash 159,601 0 0 0 3,616 0 999 107 dash
22 no-host configure.yash 177,279 0 0 0 3,632 0 858 100 osh-native
30 no-host configure.yash 176,892 0 0 0 3,624 0 857 104 osh-nosouffle
38 no-host configure.yash 172,752 0 0 0 3,624 0 858 91 osh-static
0 no-host hello-world 149 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 395 0 0 0 16 0 1 1 osh-native
24 no-host hello-world 400 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 181 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-6433e72c
osh-nosouffle osh-38964d46
osh-static osh-static-3a0e57a9
host label host id
no-host no-host-9c670df1