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 20 21 18 1.29 1.15
bin-true no-host 621 438 815 816 655 1.31 1.06
configure.cpython no-host 13,780 13,902 13,542 13,510 13,152 0.98 0.95
configure.ocaml no-host 3,681 3,609 3,717 3,757 3,727 1.01 1.01
configure.tcc no-host 46 41 46 47 43 1.01 0.94
configure.util-linux no-host 12,566 13,289 12,658 12,646 12,324 1.01 0.98
configure.yash no-host 1,709 1,636 1,694 1,714 1,701 0.99 1.00
hello-world no-host 1 1 3 3 1 2.42 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,407 1,155 3,276 3,417 2,839 1.36 1.18
bin-true no-host 103,461 49,417 134,943 137,750 111,698 1.30 1.08
configure.cpython no-host 1,620,163 1,646,359 1,588,453 1,595,687 1,516,751 0.98 0.94
configure.ocaml no-host 299,352 281,158 306,164 307,266 300,218 1.02 1.00
configure.tcc no-host 5,245 4,219 5,598 5,689 5,119 1.07 0.98
configure.util-linux no-host 1,539,607 1,698,776 1,524,926 1,518,138 1,454,615 0.99 0.94
configure.yash no-host 173,297 159,606 176,856 176,757 172,875 1.02 1.00
hello-world no-host 155 84 392 396 181 2.53 1.17

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.1 6.3 1.97 1.30
bin-true no-host 3.1 1.6 8.9 9.2 5.2 2.83 1.67
configure.cpython no-host 34.4 34.7 34.5 34.6 34.5 1.00 1.00
configure.ocaml no-host 28.7 28.6 28.7 28.7 28.6 1.00 1.00
configure.tcc no-host 26.2 26.2 26.3 26.2 26.0 1.00 0.99
configure.util-linux no-host 39.5 39.6 39.7 39.6 39.7 1.01 1.01
configure.yash no-host 33.4 33.3 33.0 33.2 33.4 0.99 1.00
hello-world no-host 3.1 1.4 6.6 6.8 3.3 2.08 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.6 3,915 3,915 0 723 1,921 1,271 2 0 50,000 0
bin-true no-host 815 1 2 3.5 8.9 151,900 10,763 2,977 14,782 72,395 64,723 3,008 3 50,000 0
configure.cpython no-host 13,542 1 67 14.8 34.5 1,750,827 35,398 28,953 93,078 869,762 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,658 3 66 21.6 39.7 2,705,393 37,470 66,341 119,746 1,291,872 1,293,775 32,527 42 132,682 1
configure.ocaml no-host 3,717 1 2 2.8 28.7 149,700 12,655 6,570 9,214 70,295 70,191 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.3 30,551 30,551 0 1,681 14,473 14,397 271 0 50,000 0
configure.yash no-host 1,694 1 2 2.7 33.0 143,476 11,507 6,624 7,168 70,525 65,783 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 3.0 9.6 117,234 65,800 42,007 4,977 54,599 57,658 277 3 84,014 1
hello-world no-host 3 0 0 0.3 6.8 3,914 3,914 0 722 1,921 1,271 2 0 50,000 0
bin-true no-host 816 1 2 3.5 9.2 151,900 10,767 2,981 14,782 72,395 64,723 3,008 3 50,000 0
configure.cpython no-host 13,510 1 65 14.8 34.6 1,750,826 36,457 28,958 93,077 869,762 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,646 3 65 21.6 39.6 2,705,393 37,476 66,347 119,746 1,291,872 1,293,775 32,527 42 132,694 1
configure.ocaml no-host 3,757 1 2 2.8 28.7 149,700 12,660 6,575 9,214 70,295 70,191 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.2 30,551 30,551 0 1,681 14,473 14,397 271 0 50,000 0
configure.yash no-host 1,714 1 2 2.7 33.2 143,476 11,511 6,628 7,168 70,525 65,783 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 10.1 117,234 65,804 42,011 4,977 54,599 57,658 277 3 84,022 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 12 5 4.8 bash
15 no-host abuild-print-help 9 3 7 3.9 dash
23 no-host abuild-print-help 20 11 10 9.6 osh-native
31 no-host abuild-print-help 21 11 12 10.1 osh-nosouffle
39 no-host abuild-print-help 18 14 5 6.3 osh-static
1 no-host bin-true 621 308 350 3.1 bash
9 no-host bin-true 438 281 165 1.6 dash
17 no-host bin-true 815 305 525 8.9 osh-native
25 no-host bin-true 816 314 517 9.2 osh-nosouffle
33 no-host bin-true 655 316 358 5.2 osh-static
2 no-host configure.cpython 13,780 7,606 6,558 34.4 bash
10 no-host configure.cpython 13,902 7,535 6,771 34.7 dash
18 no-host configure.cpython 13,542 7,161 6,649 34.5 osh-native
26 no-host configure.cpython 13,510 7,223 6,555 34.6 osh-nosouffle
34 no-host configure.cpython 13,152 7,259 6,110 34.5 osh-static
4 no-host configure.ocaml 3,681 1,454 1,268 28.7 bash
12 no-host configure.ocaml 3,609 1,415 1,220 28.6 dash
20 no-host configure.ocaml 3,717 1,477 1,270 28.7 osh-native
28 no-host configure.ocaml 3,757 1,497 1,303 28.7 osh-nosouffle
36 no-host configure.ocaml 3,727 1,464 1,296 28.6 osh-static
5 no-host configure.tcc 46 20 26 26.2 bash
13 no-host configure.tcc 41 23 18 26.2 dash
21 no-host configure.tcc 46 26 21 26.3 osh-native
29 no-host configure.tcc 47 22 26 26.2 osh-nosouffle
37 no-host configure.tcc 43 19 25 26.0 osh-static
3 no-host configure.util-linux 12,566 6,537 6,459 39.5 bash
11 no-host configure.util-linux 13,289 6,495 7,279 39.6 dash
19 no-host configure.util-linux 12,658 6,305 6,577 39.7 osh-native
27 no-host configure.util-linux 12,646 6,242 6,624 39.6 osh-nosouffle
35 no-host configure.util-linux 12,324 6,376 6,141 39.7 osh-static
6 no-host configure.yash 1,709 948 768 33.4 bash
14 no-host configure.yash 1,636 945 693 33.3 dash
22 no-host configure.yash 1,694 930 768 33.0 osh-native
30 no-host configure.yash 1,714 958 759 33.2 osh-nosouffle
38 no-host configure.yash 1,701 947 757 33.4 osh-static
0 no-host hello-world 1 0 1 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 2 1 6.8 osh-nosouffle
32 no-host hello-world 1 0 1 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,407 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,155 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,276 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,417 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,839 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 103,461 0 0 0 8 0 1,999 42 bash
9 no-host bin-true 49,417 0 0 0 8 0 2,998 48 dash
17 no-host bin-true 134,943 0 0 0 16 0 1,998 75 osh-native
25 no-host bin-true 137,750 0 0 0 16 0 1,999 92 osh-nosouffle
33 no-host bin-true 111,698 0 0 0 8 0 2,000 81 osh-static
2 no-host configure.cpython 1,620,163 0 0 0 25,272 0 14,076 998 bash
10 no-host configure.cpython 1,646,359 0 0 0 25,272 0 14,125 1,010 dash
18 no-host configure.cpython 1,588,453 0 0 0 25,280 0 11,306 831 osh-native
26 no-host configure.cpython 1,595,687 0 0 0 25,280 0 11,309 954 osh-nosouffle
34 no-host configure.cpython 1,516,751 1 0 0 25,272 0 11,315 853 osh-static
4 no-host configure.ocaml 299,352 0 0 0 4,432 0 2,019 197 bash
12 no-host configure.ocaml 281,158 0 0 0 4,432 0 2,112 192 dash
20 no-host configure.ocaml 306,164 0 0 0 4,440 0 2,002 232 osh-native
28 no-host configure.ocaml 307,266 0 0 0 4,440 0 1,996 198 osh-nosouffle
36 no-host configure.ocaml 300,218 0 0 0 4,432 0 2,002 219 osh-static
5 no-host configure.tcc 5,245 0 0 0 80 0 49 4 bash
13 no-host configure.tcc 4,219 0 0 0 88 0 53 2 dash
21 no-host configure.tcc 5,598 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,689 0 0 0 96 0 45 0 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,539,607 2 0 0 35,944 0 18,995 1,109 bash
11 no-host configure.util-linux 1,698,776 1 0 336 35,936 0 17,097 1,189 dash
19 no-host configure.util-linux 1,524,926 1 0 0 35,952 0 16,135 902 osh-native
27 no-host configure.util-linux 1,518,138 4 0 0 35,944 0 16,190 912 osh-nosouffle
35 no-host configure.util-linux 1,454,615 3 0 0 35,944 0 16,149 918 osh-static
6 no-host configure.yash 173,297 0 0 0 3,616 0 878 110 bash
14 no-host configure.yash 159,606 0 0 0 3,624 0 1,000 104 dash
22 no-host configure.yash 176,856 0 0 0 3,624 0 858 95 osh-native
30 no-host configure.yash 176,757 0 0 0 3,624 0 858 99 osh-nosouffle
38 no-host configure.yash 172,875 0 0 0 3,616 0 858 108 osh-static
0 no-host hello-world 155 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 1 dash
16 no-host hello-world 392 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 396 0 0 0 16 0 1 1 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-a7360018
osh-nosouffle osh-de72ad4f
osh-static osh-static-9929b385
host label host id
no-host no-host-9c670df1