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.29 1.16
bin-true no-host 626 456 808 820 656 1.29 1.05
configure.cpython no-host 14,149 14,025 14,042 13,831 13,186 0.99 0.93
configure.ocaml no-host 3,691 3,643 3,750 3,755 3,690 1.02 1.00
configure.tcc no-host 46 42 50 48 44 1.07 0.95
configure.util-linux no-host 12,693 13,419 12,704 12,825 12,397 1.00 0.98
configure.yash no-host 1,722 1,663 1,719 1,719 1,705 1.00 0.99
hello-world no-host 1 1 3 3 1 2.40 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,401 1,158 3,307 3,451 2,834 1.38 1.18
bin-true no-host 102,472 49,362 133,296 136,047 111,069 1.30 1.08
configure.cpython no-host 1,621,153 1,641,473 1,593,121 1,606,095 1,518,739 0.98 0.94
configure.ocaml no-host 299,243 281,021 305,748 307,033 299,946 1.02 1.00
configure.tcc no-host 5,231 4,232 5,575 5,630 5,119 1.07 0.98
configure.util-linux no-host 1,531,708 1,702,164 1,511,207 1,520,110 1,480,375 0.99 0.97
configure.yash no-host 173,113 159,579 176,772 176,957 172,771 1.02 1.00
hello-world no-host 153 85 398 400 183 2.60 1.20

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.1 6.3 1.95 1.30
bin-true no-host 3.3 1.6 8.8 9.3 5.1 2.68 1.56
configure.cpython no-host 34.4 34.7 34.7 34.7 34.4 1.01 1.00
configure.ocaml no-host 28.8 28.7 28.6 28.7 28.5 0.99 0.99
configure.tcc no-host 26.1 26.3 26.2 26.2 26.3 1.00 1.01
configure.util-linux no-host 39.7 39.7 39.5 39.9 39.6 0.99 1.00
configure.yash no-host 33.4 33.4 33.3 33.2 33.2 1.00 1.00
hello-world no-host 3.1 1.6 6.7 7.1 3.4 2.12 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.7 3,920 3,920 0 726 1,923 1,271 2 0 50,000 0
bin-true no-host 808 1 2 3.5 8.8 151,905 10,764 2,978 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 14,042 1 70 14.8 34.7 1,750,832 35,399 28,954 93,081 869,764 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,704 3 67 21.6 39.5 2,705,398 37,471 66,342 119,749 1,291,874 1,293,775 32,527 42 132,684 1
configure.ocaml no-host 3,750 1 2 2.8 28.6 149,705 12,656 6,571 9,217 70,297 70,191 1,693 3 50,000 0
configure.tcc no-host 50 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,719 1 2 2.7 33.3 143,481 11,508 6,625 7,171 70,527 65,783 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.4 117,239 65,801 42,008 4,980 54,601 57,658 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 820 1 2 3.5 9.3 151,905 10,768 2,982 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,831 1 70 14.9 34.7 1,750,831 36,458 28,959 93,080 869,764 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,825 3 67 21.6 39.9 2,705,398 37,477 66,348 119,749 1,291,874 1,293,775 32,527 42 132,696 1
configure.ocaml no-host 3,755 1 2 2.8 28.7 149,705 12,661 6,576 9,217 70,297 70,191 1,693 3 50,000 0
configure.tcc no-host 48 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,719 1 2 2.7 33.2 143,481 11,512 6,629 7,171 70,527 65,783 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 10.1 117,239 65,805 42,012 4,980 54,601 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 11 6 4.8 bash
15 no-host abuild-print-help 9 4 5 3.9 dash
23 no-host abuild-print-help 21 13 8 9.4 osh-native
31 no-host abuild-print-help 22 11 11 10.1 osh-nosouffle
39 no-host abuild-print-help 18 13 6 6.3 osh-static
1 no-host bin-true 626 323 345 3.3 bash
9 no-host bin-true 456 282 181 1.6 dash
17 no-host bin-true 808 304 521 8.8 osh-native
25 no-host bin-true 820 306 531 9.3 osh-nosouffle
33 no-host bin-true 656 330 344 5.1 osh-static
2 no-host configure.cpython 14,149 7,739 6,786 34.4 bash
10 no-host configure.cpython 14,025 7,730 6,706 34.7 dash
18 no-host configure.cpython 14,042 7,424 6,901 34.7 osh-native
26 no-host configure.cpython 13,831 7,359 6,771 34.7 osh-nosouffle
34 no-host configure.cpython 13,186 7,244 6,186 34.4 osh-static
4 no-host configure.ocaml 3,691 1,479 1,254 28.8 bash
12 no-host configure.ocaml 3,643 1,500 1,167 28.7 dash
20 no-host configure.ocaml 3,750 1,519 1,270 28.6 osh-native
28 no-host configure.ocaml 3,755 1,508 1,288 28.7 osh-nosouffle
36 no-host configure.ocaml 3,690 1,476 1,246 28.5 osh-static
5 no-host configure.tcc 46 25 22 26.1 bash
13 no-host configure.tcc 42 28 15 26.3 dash
21 no-host configure.tcc 50 27 23 26.2 osh-native
29 no-host configure.tcc 48 27 22 26.2 osh-nosouffle
37 no-host configure.tcc 44 24 20 26.3 osh-static
3 no-host configure.util-linux 12,693 6,629 6,532 39.7 bash
11 no-host configure.util-linux 13,419 6,608 7,310 39.7 dash
19 no-host configure.util-linux 12,704 6,321 6,611 39.5 osh-native
27 no-host configure.util-linux 12,825 6,316 6,731 39.9 osh-nosouffle
35 no-host configure.util-linux 12,397 6,406 6,209 39.6 osh-static
6 no-host configure.yash 1,722 971 759 33.4 bash
14 no-host configure.yash 1,663 944 722 33.4 dash
22 no-host configure.yash 1,719 989 733 33.3 osh-native
30 no-host configure.yash 1,719 953 768 33.2 osh-nosouffle
38 no-host configure.yash 1,705 959 749 33.2 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 3 3 0 6.7 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,401 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,158 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,307 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,451 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,834 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 102,472 0 0 0 8 0 1,997 44 bash
9 no-host bin-true 49,362 0 0 0 8 0 2,993 43 dash
17 no-host bin-true 133,296 0 0 0 16 0 1,999 84 osh-native
25 no-host bin-true 136,047 0 0 0 16 0 1,998 78 osh-nosouffle
33 no-host bin-true 111,069 0 0 0 8 0 2,000 79 osh-static
2 no-host configure.cpython 1,621,153 0 0 0 25,272 0 14,094 1,026 bash
10 no-host configure.cpython 1,641,473 0 0 0 25,272 0 14,101 1,020 dash
18 no-host configure.cpython 1,593,121 0 0 0 25,280 0 11,291 863 osh-native
26 no-host configure.cpython 1,606,095 0 0 0 25,280 0 11,304 826 osh-nosouffle
34 no-host configure.cpython 1,518,739 0 0 0 25,272 0 11,299 832 osh-static
4 no-host configure.ocaml 299,243 0 0 0 4,432 0 2,016 194 bash
12 no-host configure.ocaml 281,021 0 0 0 4,432 0 2,109 196 dash
20 no-host configure.ocaml 305,748 0 0 0 4,440 0 2,001 234 osh-native
28 no-host configure.ocaml 307,033 0 0 0 4,440 0 1,999 215 osh-nosouffle
36 no-host configure.ocaml 299,946 0 0 0 4,432 0 1,998 214 osh-static
5 no-host configure.tcc 5,231 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,232 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,575 0 0 0 96 0 46 2 osh-native
29 no-host configure.tcc 5,630 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,119 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,531,708 0 0 0 35,936 0 19,016 1,081 bash
11 no-host configure.util-linux 1,702,164 0 0 0 35,936 0 17,086 1,205 dash
19 no-host configure.util-linux 1,511,207 2 0 0 35,952 0 16,138 884 osh-native
27 no-host configure.util-linux 1,520,110 0 0 0 35,944 0 16,185 921 osh-nosouffle
35 no-host configure.util-linux 1,480,375 2 0 0 35,936 0 16,168 963 osh-static
6 no-host configure.yash 173,113 0 0 0 3,616 0 877 100 bash
14 no-host configure.yash 159,579 0 0 0 3,616 0 1,000 107 dash
22 no-host configure.yash 176,772 0 0 0 3,632 0 854 99 osh-native
30 no-host configure.yash 176,957 0 0 0 3,624 0 858 95 osh-nosouffle
38 no-host configure.yash 172,771 0 0 0 3,616 0 857 104 osh-static
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 0 0 0 8 0 1 0 dash
16 no-host hello-world 398 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 400 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-a74c6567
osh-nosouffle osh-19f461d6
osh-static osh-static-dff82304
host label host id
no-host no-host-bba74091