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 14 7 18 19 17 1.30 1.20
bin-true no-host 455 324 612 616 501 1.35 1.10
configure.cpython no-host 12,323 12,485 12,160 12,136 11,687 0.99 0.95
configure.ocaml no-host 3,455 3,387 3,441 3,458 3,420 1.00 0.99
configure.tcc no-host 40 37 41 41 38 1.01 0.93
configure.util-linux no-host 10,994 11,611 11,153 11,221 10,795 1.01 0.98
configure.yash no-host 1,539 1,460 1,526 1,509 1,495 0.99 0.97
hello-world no-host 1 1 2 2 1 2.39 1.12

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,378 1,179 3,362 3,452 2,837 1.41 1.19
bin-true no-host 100,892 49,893 130,452 134,798 112,168 1.29 1.11
configure.cpython no-host 1,629,532 1,647,013 1,598,142 1,600,457 1,521,756 0.98 0.93
configure.ocaml no-host 299,708 281,509 306,771 307,190 300,793 1.02 1.00
configure.tcc no-host 5,261 4,231 5,615 5,685 5,153 1.07 0.98
configure.util-linux no-host 1,548,474 1,707,636 1,523,573 1,526,666 1,452,394 0.98 0.94
configure.yash no-host 173,702 159,948 177,414 177,246 173,421 1.02 1.00
hello-world no-host 155 87 396 403 181 2.55 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.7 3.9 9.4 10.1 6.2 2.00 1.31
bin-true no-host 3.3 1.6 8.7 9.3 5.2 2.64 1.60
configure.cpython no-host 34.4 34.7 34.6 34.5 34.3 1.01 1.00
configure.ocaml no-host 28.8 28.6 28.7 28.6 28.8 1.00 1.00
configure.tcc no-host 26.2 26.2 26.3 26.3 26.3 1.00 1.01
configure.util-linux no-host 39.6 39.9 39.9 39.6 39.6 1.01 1.00
configure.yash no-host 33.3 33.3 33.3 33.4 33.4 1.00 1.00
hello-world no-host 3.3 1.6 6.7 7.1 3.3 2.04 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.7 3,913 3,913 0 722 1,921 1,270 2 0 50,000 0
bin-true no-host 612 1 2 3.5 8.7 151,898 10,761 2,975 14,781 72,395 64,722 3,008 3 50,000 0
configure.cpython no-host 12,160 1 63 14.8 34.6 1,750,825 35,396 28,951 93,077 869,762 787,986 25,789 61 50,000 0
configure.util-linux no-host 11,153 3 67 21.6 39.9 2,705,391 37,468 66,339 119,745 1,291,872 1,293,774 32,527 42 132,678 1
configure.ocaml no-host 3,441 1 2 2.8 28.7 149,698 12,653 6,568 9,213 70,295 70,190 1,693 3 50,000 0
configure.tcc no-host 41 0 0 1.4 26.3 30,549 30,549 0 1,680 14,473 14,396 271 0 50,000 0
configure.yash no-host 1,526 1 2 2.7 33.3 143,474 11,505 6,622 7,167 70,525 65,782 2,095 3 50,000 0
abuild-print-help no-host 18 1 2 3.0 9.4 117,229 65,795 42,005 4,976 54,599 57,654 277 3 84,010 1
hello-world no-host 2 0 0 0.3 7.1 3,912 3,912 0 721 1,921 1,270 2 0 50,000 0
bin-true no-host 616 1 2 3.5 9.3 151,898 10,765 2,979 14,781 72,395 64,722 3,008 3 50,000 0
configure.cpython no-host 12,136 1 62 14.8 34.5 1,750,824 35,401 28,956 93,076 869,762 787,986 25,789 61 50,000 0
configure.util-linux no-host 11,221 3 67 21.6 39.6 2,705,391 37,474 66,345 119,745 1,291,872 1,293,774 32,527 42 132,690 1
configure.ocaml no-host 3,458 1 2 2.8 28.6 149,698 12,658 6,573 9,213 70,295 70,190 1,693 3 50,000 0
configure.tcc no-host 41 0 0 1.4 26.3 30,549 30,549 0 1,680 14,473 14,396 271 0 50,000 0
configure.yash no-host 1,509 1 2 2.7 33.4 143,474 11,509 6,626 7,167 70,525 65,782 2,095 3 50,000 0
abuild-print-help no-host 19 1 2 3.0 10.1 117,229 65,799 42,009 4,976 54,599 57,654 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 14 7 8 4.7 bash
15 no-host abuild-print-help 7 6 2 3.9 dash
23 no-host abuild-print-help 18 11 8 9.4 osh-native
31 no-host abuild-print-help 19 8 11 10.1 osh-nosouffle
39 no-host abuild-print-help 17 12 5 6.2 osh-static
1 no-host bin-true 455 287 197 3.3 bash
9 no-host bin-true 324 228 93 1.6 dash
17 no-host bin-true 612 317 307 8.7 osh-native
25 no-host bin-true 616 332 295 9.3 osh-nosouffle
33 no-host bin-true 501 300 211 5.2 osh-static
2 no-host configure.cpython 12,323 7,862 4,742 34.4 bash
10 no-host configure.cpython 12,485 7,892 4,885 34.7 dash
18 no-host configure.cpython 12,160 7,386 4,960 34.6 osh-native
26 no-host configure.cpython 12,136 7,380 4,952 34.5 osh-nosouffle
34 no-host configure.cpython 11,687 7,285 4,549 34.3 osh-static
4 no-host configure.ocaml 3,455 1,502 969 28.8 bash
12 no-host configure.ocaml 3,387 1,516 872 28.6 dash
20 no-host configure.ocaml 3,441 1,518 942 28.7 osh-native
28 no-host configure.ocaml 3,458 1,520 954 28.6 osh-nosouffle
36 no-host configure.ocaml 3,420 1,567 858 28.8 osh-static
5 no-host configure.tcc 40 29 12 26.2 bash
13 no-host configure.tcc 37 21 15 26.2 dash
21 no-host configure.tcc 41 29 12 26.3 osh-native
29 no-host configure.tcc 41 25 16 26.3 osh-nosouffle
37 no-host configure.tcc 38 21 17 26.3 osh-static
3 no-host configure.util-linux 10,994 6,809 4,541 39.6 bash
11 no-host configure.util-linux 11,611 6,910 5,068 39.9 dash
19 no-host configure.util-linux 11,153 6,522 4,769 39.9 osh-native
27 no-host configure.util-linux 11,221 6,518 4,837 39.6 osh-nosouffle
35 no-host configure.util-linux 10,795 6,408 4,516 39.6 osh-static
6 no-host configure.yash 1,539 955 584 33.3 bash
14 no-host configure.yash 1,460 939 515 33.3 dash
22 no-host configure.yash 1,526 944 572 33.3 osh-native
30 no-host configure.yash 1,509 976 527 33.4 osh-nosouffle
38 no-host configure.yash 1,495 946 541 33.4 osh-static
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 2 0 2 6.7 osh-native
24 no-host hello-world 2 1 2 7.1 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,378 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,179 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,362 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,452 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,837 0 0 0 8 0 39 3 osh-static
1 no-host bin-true 100,892 0 0 0 8 0 2,001 46 bash
9 no-host bin-true 49,893 0 0 0 8 0 2,998 51 dash
17 no-host bin-true 130,452 0 0 0 16 0 1,996 69 osh-native
25 no-host bin-true 134,798 0 0 0 16 0 1,997 72 osh-nosouffle
33 no-host bin-true 112,168 0 0 0 8 0 1,996 69 osh-static
2 no-host configure.cpython 1,629,532 0 0 0 25,272 0 14,019 1,054 bash
10 no-host configure.cpython 1,647,013 0 0 0 25,272 0 14,131 925 dash
18 no-host configure.cpython 1,598,142 0 0 0 25,280 0 11,287 923 osh-native
26 no-host configure.cpython 1,600,457 4 0 0 25,280 0 11,313 810 osh-nosouffle
34 no-host configure.cpython 1,521,756 1 0 0 25,272 0 11,284 873 osh-static
4 no-host configure.ocaml 299,708 0 0 0 4,432 0 2,020 171 bash
12 no-host configure.ocaml 281,509 0 0 0 4,432 0 2,112 174 dash
20 no-host configure.ocaml 306,771 0 0 0 4,440 0 2,001 213 osh-native
28 no-host configure.ocaml 307,190 0 0 0 4,440 0 2,004 198 osh-nosouffle
36 no-host configure.ocaml 300,793 0 0 0 4,432 0 2,004 217 osh-static
5 no-host configure.tcc 5,261 0 0 0 80 0 48 2 bash
13 no-host configure.tcc 4,231 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,615 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,685 0 0 0 96 0 45 1 osh-nosouffle
37 no-host configure.tcc 5,153 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,548,474 0 0 0 35,944 0 18,812 954 bash
11 no-host configure.util-linux 1,707,636 1 0 336 35,936 0 16,961 1,092 dash
19 no-host configure.util-linux 1,523,573 5 0 0 35,952 0 16,194 865 osh-native
27 no-host configure.util-linux 1,526,666 0 0 0 35,952 0 16,215 914 osh-nosouffle
35 no-host configure.util-linux 1,452,394 3 0 0 35,936 0 16,161 864 osh-static
6 no-host configure.yash 173,702 0 0 0 3,616 0 879 91 bash
14 no-host configure.yash 159,948 0 0 0 3,624 0 1,001 93 dash
22 no-host configure.yash 177,414 0 0 0 3,624 0 857 92 osh-native
30 no-host configure.yash 177,246 0 0 0 3,624 0 856 94 osh-nosouffle
38 no-host configure.yash 173,421 0 0 0 3,616 0 858 97 osh-static
0 no-host hello-world 155 0 0 0 8 0 1 0 bash
8 no-host hello-world 87 0 0 0 8 0 1 0 dash
16 no-host hello-world 396 0 0 0 16 0 1 1 osh-native
24 no-host hello-world 403 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-96f719e3
osh-nosouffle osh-44fe5905
osh-static osh-static-c27f95a2
host label host id
no-host no-host-9c670df1