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 10 21 23 19 1.32 1.20
bin-true no-host 624 445 818 807 679 1.31 1.09
configure.cpython no-host 14,456 14,405 14,261 13,967 13,550 0.99 0.94
configure.ocaml no-host 3,866 3,751 3,847 3,828 3,745 1.00 0.97
configure.tcc no-host 46 42 48 49 45 1.04 0.97
configure.util-linux no-host 13,143 13,968 13,384 13,063 12,539 1.02 0.95
configure.yash no-host 1,714 1,737 1,763 1,797 1,737 1.03 1.01
hello-world no-host 1 1 3 3 1 2.77 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,396 1,195 3,301 3,391 2,831 1.38 1.18
bin-true no-host 99,428 49,399 130,995 131,378 112,739 1.32 1.13
configure.cpython no-host 1,622,314 1,634,468 1,587,937 1,608,944 1,524,066 0.98 0.94
configure.ocaml no-host 298,963 280,884 305,287 306,602 299,916 1.02 1.00
configure.tcc no-host 5,225 4,208 5,623 5,685 5,138 1.08 0.98
configure.util-linux no-host 1,536,336 1,703,590 1,524,566 1,518,667 1,447,503 0.99 0.94
configure.yash no-host 173,264 159,587 176,061 177,111 172,931 1.02 1.00
hello-world no-host 150 85 389 402 182 2.59 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 4.1 9.3 10.0 6.3 1.92 1.30
bin-true no-host 3.3 1.4 8.7 9.0 5.0 2.64 1.52
configure.cpython no-host 34.5 34.5 34.5 34.6 34.6 1.00 1.00
configure.ocaml no-host 28.7 28.7 28.7 28.6 28.5 1.00 0.99
configure.tcc no-host 26.1 26.2 26.2 26.2 26.2 1.00 1.00
configure.util-linux no-host 39.9 39.5 39.6 39.7 39.7 0.99 1.00
configure.yash no-host 33.4 33.4 33.5 33.4 33.5 1.00 1.00
hello-world no-host 3.1 1.6 6.6 7.1 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,913 3,913 0 723 1,921 1,269 2 0 50,000 0
bin-true no-host 818 1 2 3.5 8.7 151,898 10,761 2,975 14,782 72,395 64,721 3,008 3 50,000 0
configure.cpython no-host 14,261 1 71 14.8 34.5 1,750,825 35,396 28,951 93,078 869,762 787,985 25,789 61 50,000 0
configure.util-linux no-host 13,384 3 71 21.6 39.6 2,705,391 37,468 66,339 119,746 1,291,872 1,293,773 32,527 42 132,678 1
configure.ocaml no-host 3,847 1 2 2.8 28.7 149,698 12,653 6,568 9,214 70,295 70,189 1,693 3 50,000 0
configure.tcc no-host 48 0 0 1.4 26.2 30,549 30,549 0 1,681 14,473 14,395 271 0 50,000 0
configure.yash no-host 1,763 1 2 2.7 33.5 143,474 11,505 6,622 7,168 70,525 65,781 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.3 117,232 65,798 42,005 4,977 54,599 57,656 277 3 84,010 1
hello-world no-host 3 0 0 0.3 7.1 3,912 3,912 0 722 1,921 1,269 2 0 50,000 0
bin-true no-host 807 1 2 3.5 9.0 151,898 10,765 2,979 14,782 72,395 64,721 3,008 3 50,000 0
configure.cpython no-host 13,967 1 69 14.8 34.6 1,750,824 35,401 28,956 93,077 869,762 787,985 25,789 61 50,000 0
configure.util-linux no-host 13,063 3 68 21.6 39.7 2,705,391 37,474 66,345 119,746 1,291,872 1,293,773 32,527 42 132,690 1
configure.ocaml no-host 3,828 1 2 2.8 28.6 149,698 12,658 6,573 9,214 70,295 70,189 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.4 26.2 30,549 30,549 0 1,681 14,473 14,395 271 0 50,000 0
configure.yash no-host 1,797 1 2 2.7 33.4 143,474 11,509 6,626 7,168 70,525 65,781 2,095 3 50,000 0
abuild-print-help no-host 23 1 2 3.0 10.0 117,232 65,802 42,009 4,977 54,599 57,656 277 3 84,018 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 6 10 4.8 bash
15 no-host abuild-print-help 10 4 6 4.1 dash
23 no-host abuild-print-help 21 12 9 9.3 osh-native
31 no-host abuild-print-help 23 12 12 10.0 osh-nosouffle
39 no-host abuild-print-help 19 13 6 6.3 osh-static
1 no-host bin-true 624 310 355 3.3 bash
9 no-host bin-true 445 278 172 1.4 dash
17 no-host bin-true 818 316 520 8.7 osh-native
25 no-host bin-true 807 318 508 9.0 osh-nosouffle
33 no-host bin-true 679 330 368 5.0 osh-static
2 no-host configure.cpython 14,456 7,814 7,055 34.5 bash
10 no-host configure.cpython 14,405 7,785 7,042 34.5 dash
18 no-host configure.cpython 14,261 7,568 6,988 34.5 osh-native
26 no-host configure.cpython 13,967 7,394 6,878 34.6 osh-nosouffle
34 no-host configure.cpython 13,550 7,487 6,318 34.6 osh-static
4 no-host configure.ocaml 3,866 1,558 1,349 28.7 bash
12 no-host configure.ocaml 3,751 1,506 1,270 28.7 dash
20 no-host configure.ocaml 3,847 1,539 1,347 28.7 osh-native
28 no-host configure.ocaml 3,828 1,488 1,381 28.6 osh-nosouffle
36 no-host configure.ocaml 3,745 1,510 1,268 28.5 osh-static
5 no-host configure.tcc 46 23 24 26.1 bash
13 no-host configure.tcc 42 25 18 26.2 dash
21 no-host configure.tcc 48 26 23 26.2 osh-native
29 no-host configure.tcc 49 22 27 26.2 osh-nosouffle
37 no-host configure.tcc 45 25 21 26.2 osh-static
3 no-host configure.util-linux 13,143 6,771 6,864 39.9 bash
11 no-host configure.util-linux 13,968 6,884 7,594 39.5 dash
19 no-host configure.util-linux 13,384 6,698 6,925 39.6 osh-native
27 no-host configure.util-linux 13,063 6,465 6,834 39.7 osh-nosouffle
35 no-host configure.util-linux 12,539 6,378 6,386 39.7 osh-static
6 no-host configure.yash 1,714 990 732 33.4 bash
14 no-host configure.yash 1,737 984 755 33.4 dash
22 no-host configure.yash 1,763 1,006 760 33.5 osh-native
30 no-host configure.yash 1,797 976 824 33.4 osh-nosouffle
38 no-host configure.yash 1,737 988 751 33.5 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 3 2 1 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,396 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,195 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,301 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,391 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,831 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 99,428 0 0 0 8 0 1,992 55 bash
9 no-host bin-true 49,399 0 0 0 8 0 2,995 55 dash
17 no-host bin-true 130,995 0 0 0 16 0 1,994 83 osh-native
25 no-host bin-true 131,378 0 0 0 16 0 2,000 53 osh-nosouffle
33 no-host bin-true 112,739 0 0 0 8 0 1,997 64 osh-static
2 no-host configure.cpython 1,622,314 0 0 0 25,272 0 14,089 999 bash
10 no-host configure.cpython 1,634,468 0 0 0 25,272 0 14,133 1,167 dash
18 no-host configure.cpython 1,587,937 0 0 0 25,280 0 11,308 898 osh-native
26 no-host configure.cpython 1,608,944 0 0 0 25,280 0 11,304 912 osh-nosouffle
34 no-host configure.cpython 1,524,066 0 0 0 25,272 0 11,298 806 osh-static
4 no-host configure.ocaml 298,963 0 0 0 4,432 0 2,016 193 bash
12 no-host configure.ocaml 280,884 0 0 0 4,432 0 2,104 194 dash
20 no-host configure.ocaml 305,287 0 0 0 4,440 0 1,998 249 osh-native
28 no-host configure.ocaml 306,602 0 0 0 4,440 0 1,999 192 osh-nosouffle
36 no-host configure.ocaml 299,916 0 0 0 4,432 0 1,997 228 osh-static
5 no-host configure.tcc 5,225 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,208 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,623 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,685 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,138 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,536,336 0 0 0 35,944 0 19,083 1,053 bash
11 no-host configure.util-linux 1,703,590 1 0 336 35,944 0 17,121 1,261 dash
19 no-host configure.util-linux 1,524,566 1 0 0 35,960 0 16,154 923 osh-native
27 no-host configure.util-linux 1,518,667 1 0 0 35,952 0 16,146 917 osh-nosouffle
35 no-host configure.util-linux 1,447,503 0 0 0 35,944 0 16,213 962 osh-static
6 no-host configure.yash 173,264 0 0 0 3,616 0 880 96 bash
14 no-host configure.yash 159,587 0 0 0 3,616 0 996 108 dash
22 no-host configure.yash 176,061 0 0 0 3,624 0 857 111 osh-native
30 no-host configure.yash 177,111 0 0 0 3,632 0 855 107 osh-nosouffle
38 no-host configure.yash 172,931 0 0 0 3,616 0 856 116 osh-static
0 no-host hello-world 150 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 389 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 402 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-e69e26b1
osh-nosouffle osh-dd0da2b8
osh-static osh-static-1ded4572
host label host id
no-host no-host-9c670df1