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 15 9 21 21 18 1.33 1.15
bin-true no-host 618 446 799 810 656 1.29 1.06
configure.cpython no-host 13,617 13,618 13,311 13,315 12,749 0.98 0.94
configure.ocaml no-host 3,616 3,572 3,659 3,669 3,632 1.01 1.00
configure.tcc no-host 45 41 46 46 43 1.02 0.95
configure.util-linux no-host 12,539 13,128 12,362 12,901 12,008 0.99 0.96
configure.yash no-host 1,686 1,614 1,674 1,681 1,644 0.99 0.97
hello-world no-host 1 1 3 3 1 2.39 1.05

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,384 1,157 3,285 3,379 2,834 1.38 1.19
bin-true no-host 100,445 49,377 132,001 134,372 111,717 1.31 1.11
configure.cpython no-host 1,624,886 1,634,245 1,587,506 1,602,786 1,517,976 0.98 0.93
configure.ocaml no-host 299,036 280,524 306,478 306,472 299,967 1.02 1.00
configure.tcc no-host 5,242 4,201 5,590 5,653 5,130 1.07 0.98
configure.util-linux no-host 1,536,657 1,702,135 1,522,993 1,517,864 1,477,207 0.99 0.96
configure.yash no-host 173,544 159,642 177,045 177,218 172,852 1.02 1.00
hello-world no-host 152 86 396 401 181 2.61 1.19

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.0 6.3 2.00 1.33
bin-true no-host 3.1 1.4 8.8 8.9 5.1 2.79 1.62
configure.cpython no-host 34.5 34.4 34.5 34.7 34.5 1.00 1.00
configure.ocaml no-host 28.7 28.6 28.7 28.6 28.5 1.00 0.99
configure.tcc no-host 26.4 26.1 26.2 26.2 26.3 0.99 1.00
configure.util-linux no-host 39.6 39.6 39.6 39.6 39.5 1.00 1.00
configure.yash no-host 33.4 33.3 33.4 33.3 33.2 1.00 1.00
hello-world no-host 3.1 1.6 6.7 7.1 3.3 2.12 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.7 3,915 3,915 0 723 1,921 1,271 2 0 50,000 0
bin-true no-host 799 1 2 3.5 8.8 151,900 10,763 2,977 14,782 72,395 64,723 3,008 3 50,000 0
configure.cpython no-host 13,311 1 64 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,362 3 63 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,659 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.2 30,551 30,551 0 1,681 14,473 14,397 271 0 50,000 0
configure.yash no-host 1,674 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.4 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 810 1 2 3.5 8.9 151,900 10,767 2,981 14,782 72,395 64,723 3,008 3 50,000 0
configure.cpython no-host 13,315 2 62 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 12,901 3 61 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,669 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 46 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,681 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 21 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 15 7 9 4.7 bash
15 no-host abuild-print-help 9 3 6 3.9 dash
23 no-host abuild-print-help 21 9 13 9.4 osh-native
31 no-host abuild-print-help 21 13 9 10.0 osh-nosouffle
39 no-host abuild-print-help 18 11 8 6.3 osh-static
1 no-host bin-true 618 319 337 3.1 bash
9 no-host bin-true 446 265 188 1.4 dash
17 no-host bin-true 799 309 507 8.8 osh-native
25 no-host bin-true 810 308 518 8.9 osh-nosouffle
33 no-host bin-true 656 310 362 5.1 osh-static
2 no-host configure.cpython 13,617 7,470 6,536 34.5 bash
10 no-host configure.cpython 13,618 7,451 6,566 34.4 dash
18 no-host configure.cpython 13,311 7,082 6,502 34.5 osh-native
26 no-host configure.cpython 13,315 7,139 6,468 34.7 osh-nosouffle
34 no-host configure.cpython 12,749 7,015 5,970 34.5 osh-static
4 no-host configure.ocaml 3,616 1,479 1,178 28.7 bash
12 no-host configure.ocaml 3,572 1,442 1,155 28.6 dash
20 no-host configure.ocaml 3,659 1,507 1,192 28.7 osh-native
28 no-host configure.ocaml 3,669 1,453 1,255 28.6 osh-nosouffle
36 no-host configure.ocaml 3,632 1,481 1,183 28.5 osh-static
5 no-host configure.tcc 45 23 22 26.4 bash
13 no-host configure.tcc 41 22 19 26.1 dash
21 no-host configure.tcc 46 25 21 26.2 osh-native
29 no-host configure.tcc 46 24 23 26.2 osh-nosouffle
37 no-host configure.tcc 43 30 13 26.3 osh-static
3 no-host configure.util-linux 12,539 6,607 6,405 39.6 bash
11 no-host configure.util-linux 13,128 6,402 7,205 39.6 dash
19 no-host configure.util-linux 12,362 6,003 6,583 39.6 osh-native
27 no-host configure.util-linux 12,901 6,230 6,423 39.6 osh-nosouffle
35 no-host configure.util-linux 12,008 6,048 6,181 39.5 osh-static
6 no-host configure.yash 1,686 937 758 33.4 bash
14 no-host configure.yash 1,614 913 703 33.3 dash
22 no-host configure.yash 1,674 947 730 33.4 osh-native
30 no-host configure.yash 1,681 948 737 33.3 osh-nosouffle
38 no-host configure.yash 1,644 928 719 33.2 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 0 3 6.7 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,384 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,157 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,285 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,379 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,834 0 0 0 8 0 38 1 osh-static
1 no-host bin-true 100,445 0 0 0 8 0 1,997 58 bash
9 no-host bin-true 49,377 0 0 0 8 0 2,991 59 dash
17 no-host bin-true 132,001 0 0 0 16 0 2,000 80 osh-native
25 no-host bin-true 134,372 0 0 0 16 0 1,998 65 osh-nosouffle
33 no-host bin-true 111,717 0 0 0 8 0 1,998 90 osh-static
2 no-host configure.cpython 1,624,886 0 0 0 25,272 0 14,060 1,101 bash
10 no-host configure.cpython 1,634,245 0 0 0 25,272 0 14,111 1,059 dash
18 no-host configure.cpython 1,587,506 0 0 0 25,280 0 11,288 898 osh-native
26 no-host configure.cpython 1,602,786 0 0 0 25,280 0 11,309 800 osh-nosouffle
34 no-host configure.cpython 1,517,976 0 0 0 25,272 0 11,302 858 osh-static
4 no-host configure.ocaml 299,036 0 0 0 4,432 0 2,020 189 bash
12 no-host configure.ocaml 280,524 0 0 0 4,432 0 2,106 172 dash
20 no-host configure.ocaml 306,478 0 0 0 4,440 0 1,999 225 osh-native
28 no-host configure.ocaml 306,472 0 0 0 4,440 0 2,000 206 osh-nosouffle
36 no-host configure.ocaml 299,967 0 0 0 4,432 0 2,001 232 osh-static
5 no-host configure.tcc 5,242 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,201 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,590 0 0 0 96 0 45 0 osh-native
29 no-host configure.tcc 5,653 0 0 0 96 0 44 2 osh-nosouffle
37 no-host configure.tcc 5,130 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,536,657 1 0 0 35,944 0 18,895 1,005 bash
11 no-host configure.util-linux 1,702,135 2 0 496 35,936 0 17,091 1,248 dash
19 no-host configure.util-linux 1,522,993 1 0 0 35,952 0 16,138 942 osh-native
27 no-host configure.util-linux 1,517,864 0 0 0 35,944 0 16,218 877 osh-nosouffle
35 no-host configure.util-linux 1,477,207 1 0 0 35,936 0 16,109 847 osh-static
6 no-host configure.yash 173,544 0 0 0 3,616 0 877 98 bash
14 no-host configure.yash 159,642 0 0 0 3,616 0 1,001 101 dash
22 no-host configure.yash 177,045 0 0 0 3,632 0 857 102 osh-native
30 no-host configure.yash 177,218 0 0 0 3,624 0 855 107 osh-nosouffle
38 no-host configure.yash 172,852 0 0 0 3,616 0 855 105 osh-static
0 no-host hello-world 152 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 396 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 401 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-edde3643
osh-nosouffle osh-76f5ea2b
osh-static osh-static-3d5c0707
host label host id
no-host no-host-9c670df1