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 19 1.30 1.16
bin-true no-host 619 452 807 803 651 1.30 1.05
configure.cpython no-host 14,194 14,286 13,913 13,775 13,281 0.98 0.94
configure.ocaml no-host 3,768 3,673 3,751 3,805 3,719 1.00 0.99
configure.tcc no-host 47 42 46 47 43 1.00 0.93
configure.util-linux no-host 12,892 13,556 12,814 13,101 12,476 0.99 0.97
configure.yash no-host 1,754 1,686 1,726 1,734 1,702 0.98 0.97
hello-world no-host 1 1 3 3 1 2.44 1.04

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,154 3,285 3,393 2,848 1.37 1.19
bin-true no-host 101,458 49,410 135,280 133,365 111,690 1.33 1.10
configure.cpython no-host 1,622,765 1,645,688 1,586,114 1,596,965 1,517,532 0.98 0.94
configure.ocaml no-host 299,251 280,761 306,382 307,564 300,000 1.02 1.00
configure.tcc no-host 5,218 4,213 5,575 5,676 5,123 1.07 0.98
configure.util-linux no-host 1,536,027 1,705,593 1,519,053 1,524,044 1,477,205 0.99 0.96
configure.yash no-host 173,258 159,527 176,654 176,760 172,783 1.02 1.00
hello-world no-host 150 86 392 399 182 2.61 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.7 3.9 9.6 10.0 6.3 2.03 1.33
bin-true no-host 3.4 1.4 8.9 9.0 5.1 2.62 1.50
configure.cpython no-host 34.5 34.4 34.5 34.7 34.4 1.00 1.00
configure.ocaml no-host 28.5 28.5 28.8 28.6 28.6 1.01 1.00
configure.tcc no-host 26.1 26.3 26.3 26.2 26.1 1.01 1.00
configure.util-linux no-host 39.4 39.6 39.6 39.7 39.3 1.01 1.00
configure.yash no-host 33.4 33.1 33.4 33.3 33.3 1.00 1.00
hello-world no-host 3.1 1.6 6.4 7.1 3.3 2.04 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.4 3,915 3,915 0 723 1,921 1,271 2 0 50,000 0
bin-true no-host 807 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,913 1 71 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,814 3 70 21.6 39.6 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,751 1 2 2.8 28.8 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,726 1 2 2.7 33.4 143,476 11,507 6,624 7,168 70,525 65,783 2,095 3 50,000 0
abuild-print-help no-host 21 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 7.1 3,914 3,914 0 722 1,921 1,271 2 0 50,000 0
bin-true no-host 803 1 2 3.5 9.0 151,900 10,767 2,981 14,782 72,395 64,723 3,008 3 50,000 0
configure.cpython no-host 13,775 1 67 14.8 34.7 1,750,826 36,457 28,958 93,077 869,762 787,987 25,789 61 50,000 0
configure.util-linux no-host 13,101 3 68 21.6 39.7 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,805 1 2 2.8 28.6 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,734 1 2 2.7 33.3 143,476 11,511 6,628 7,168 70,525 65,783 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 10.0 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 8 8 4.7 bash
15 no-host abuild-print-help 9 5 4 3.9 dash
23 no-host abuild-print-help 21 11 11 9.6 osh-native
31 no-host abuild-print-help 22 11 12 10.0 osh-nosouffle
39 no-host abuild-print-help 19 11 8 6.3 osh-static
1 no-host bin-true 619 308 349 3.4 bash
9 no-host bin-true 452 275 184 1.4 dash
17 no-host bin-true 807 299 524 8.9 osh-native
25 no-host bin-true 803 314 504 9.0 osh-nosouffle
33 no-host bin-true 651 316 354 5.1 osh-static
2 no-host configure.cpython 14,194 7,647 6,932 34.5 bash
10 no-host configure.cpython 14,286 7,836 6,858 34.4 dash
18 no-host configure.cpython 13,913 7,437 6,755 34.5 osh-native
26 no-host configure.cpython 13,775 7,328 6,732 34.7 osh-nosouffle
34 no-host configure.cpython 13,281 7,333 6,174 34.4 osh-static
4 no-host configure.ocaml 3,768 1,522 1,289 28.5 bash
12 no-host configure.ocaml 3,673 1,498 1,196 28.5 dash
20 no-host configure.ocaml 3,751 1,475 1,313 28.8 osh-native
28 no-host configure.ocaml 3,805 1,516 1,330 28.6 osh-nosouffle
36 no-host configure.ocaml 3,719 1,509 1,241 28.6 osh-static
5 no-host configure.tcc 47 28 19 26.1 bash
13 no-host configure.tcc 42 23 18 26.3 dash
21 no-host configure.tcc 46 25 22 26.3 osh-native
29 no-host configure.tcc 47 27 21 26.2 osh-nosouffle
37 no-host configure.tcc 43 25 19 26.1 osh-static
3 no-host configure.util-linux 12,892 6,699 6,664 39.4 bash
11 no-host configure.util-linux 13,556 6,631 7,407 39.6 dash
19 no-host configure.util-linux 12,814 6,301 6,736 39.6 osh-native
27 no-host configure.util-linux 13,101 6,404 6,913 39.7 osh-nosouffle
35 no-host configure.util-linux 12,476 6,337 6,355 39.3 osh-static
6 no-host configure.yash 1,754 966 796 33.4 bash
14 no-host configure.yash 1,686 978 709 33.1 dash
22 no-host configure.yash 1,726 973 755 33.4 osh-native
30 no-host configure.yash 1,734 954 781 33.3 osh-nosouffle
38 no-host configure.yash 1,702 943 762 33.3 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 0 3 6.4 osh-native
24 no-host hello-world 3 0 3 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,401 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,154 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,285 0 0 0 16 0 38 1 osh-native
31 no-host abuild-print-help 3,393 0 0 0 16 0 39 2 osh-nosouffle
39 no-host abuild-print-help 2,848 0 0 0 8 0 38 1 osh-static
1 no-host bin-true 101,458 0 0 0 8 0 1,998 43 bash
9 no-host bin-true 49,410 0 0 0 8 0 2,994 50 dash
17 no-host bin-true 135,280 0 0 0 16 0 1,998 88 osh-native
25 no-host bin-true 133,365 0 0 0 16 0 1,998 98 osh-nosouffle
33 no-host bin-true 111,690 0 0 0 8 0 1,998 32 osh-static
2 no-host configure.cpython 1,622,765 0 0 0 25,272 0 14,101 998 bash
10 no-host configure.cpython 1,645,688 0 0 0 25,272 0 14,111 1,059 dash
18 no-host configure.cpython 1,586,114 0 0 0 25,280 0 11,298 839 osh-native
26 no-host configure.cpython 1,596,965 0 0 0 25,280 0 11,296 827 osh-nosouffle
34 no-host configure.cpython 1,517,532 1 0 0 25,272 0 11,303 817 osh-static
4 no-host configure.ocaml 299,251 0 0 0 4,432 0 2,020 196 bash
12 no-host configure.ocaml 280,761 0 0 0 4,432 0 2,104 190 dash
20 no-host configure.ocaml 306,382 0 0 0 4,440 0 2,002 213 osh-native
28 no-host configure.ocaml 307,564 0 0 0 4,440 0 1,996 183 osh-nosouffle
36 no-host configure.ocaml 300,000 0 0 0 4,432 0 1,995 214 osh-static
5 no-host configure.tcc 5,218 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,213 0 0 0 88 0 52 0 dash
21 no-host configure.tcc 5,575 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,676 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,123 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,536,027 1 0 0 35,944 0 19,070 1,079 bash
11 no-host configure.util-linux 1,705,593 1 0 336 35,936 0 17,123 1,226 dash
19 no-host configure.util-linux 1,519,053 0 0 0 35,952 0 16,118 953 osh-native
27 no-host configure.util-linux 1,524,044 0 0 0 35,944 0 16,226 951 osh-nosouffle
35 no-host configure.util-linux 1,477,205 1 0 0 35,936 0 16,198 931 osh-static
6 no-host configure.yash 173,258 0 0 0 3,616 0 877 92 bash
14 no-host configure.yash 159,527 0 0 0 3,616 0 1,003 107 dash
22 no-host configure.yash 176,654 0 0 0 3,632 0 859 105 osh-native
30 no-host configure.yash 176,760 0 0 0 3,624 0 857 108 osh-nosouffle
38 no-host configure.yash 172,783 0 0 0 3,616 0 857 103 osh-static
0 no-host hello-world 150 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 392 0 0 0 16 0 1 1 osh-native
24 no-host hello-world 399 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-66f6aedb
osh-nosouffle osh-be45c1fb
osh-static osh-static-cb25d94d
host label host id
no-host no-host-9c670df1