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 17 10 23 23 20 1.29 1.16
bin-true no-host 627 461 860 830 695 1.37 1.11
configure.cpython no-host 15,378 15,544 14,960 15,230 15,275 0.97 0.99
configure.ocaml no-host 4,245 3,996 4,111 3,966 3,988 0.97 0.94
configure.tcc no-host 55 48 50 48 49 0.92 0.89
configure.util-linux no-host 14,042 14,719 14,614 13,870 13,386 1.04 0.95
configure.yash no-host 2,010 1,800 1,899 1,836 1,860 0.94 0.93
hello-world no-host 1 1 3 3 1 2.38 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,364 1,153 3,295 3,395 2,835 1.39 1.20
bin-true no-host 99,394 49,420 135,024 132,403 112,707 1.36 1.13
configure.cpython no-host 1,626,776 1,636,199 1,591,921 1,597,540 1,522,938 0.98 0.94
configure.ocaml no-host 298,931 280,574 305,586 307,253 300,518 1.02 1.01
configure.tcc no-host 5,228 4,215 5,610 5,677 5,130 1.07 0.98
configure.util-linux no-host 1,538,197 1,704,962 1,522,414 1,521,904 1,448,531 0.99 0.94
configure.yash no-host 173,267 159,630 176,088 176,548 172,956 1.02 1.00
hello-world no-host 152 86 391 400 179 2.57 1.18

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.0 6.3 1.97 1.30
bin-true no-host 3.1 1.6 8.8 9.3 5.1 2.79 1.62
configure.cpython no-host 34.4 34.5 34.7 34.4 34.5 1.01 1.00
configure.ocaml no-host 28.8 28.7 28.7 28.7 28.8 1.00 1.00
configure.tcc no-host 26.3 26.1 26.2 26.3 26.1 1.00 1.00
configure.util-linux no-host 39.6 39.7 39.7 39.9 39.5 1.00 1.00
configure.yash no-host 33.4 33.4 33.4 33.4 33.3 1.00 1.00
hello-world no-host 3.3 1.6 6.4 6.9 3.3 1.96 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 3 0 0 0.3 6.4 3,913 3,913 0 723 1,921 1,269 2 0 50,000 0
bin-true no-host 860 1 3 3.5 8.8 151,898 10,761 2,975 14,782 72,395 64,721 3,008 3 50,000 0
configure.cpython no-host 14,960 2 84 14.8 34.7 1,750,825 35,396 28,951 93,078 869,762 787,985 25,789 61 50,000 0
configure.util-linux no-host 14,614 4 95 21.6 39.7 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 4,111 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 50 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,899 1 2 2.7 33.4 143,474 11,505 6,622 7,168 70,525 65,781 2,095 3 50,000 0
abuild-print-help no-host 23 1 2 3.0 9.6 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 6.9 3,912 3,912 0 722 1,921 1,269 2 0 50,000 0
bin-true no-host 830 1 2 3.5 9.3 151,898 10,765 2,979 14,782 72,395 64,721 3,008 3 50,000 0
configure.cpython no-host 15,230 3 86 14.8 34.4 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,870 5 85 21.6 39.9 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,966 1 2 2.8 28.7 149,698 12,658 6,573 9,214 70,295 70,189 1,693 3 50,000 0
configure.tcc no-host 48 0 0 1.4 26.3 30,549 30,549 0 1,681 14,473 14,395 271 0 50,000 0
configure.yash no-host 1,836 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 17 9 9 4.8 bash
15 no-host abuild-print-help 10 4 6 3.9 dash
23 no-host abuild-print-help 23 15 8 9.6 osh-native
31 no-host abuild-print-help 23 14 9 10.0 osh-nosouffle
39 no-host abuild-print-help 20 15 6 6.3 osh-static
1 no-host bin-true 627 304 362 3.1 bash
9 no-host bin-true 461 282 183 1.6 dash
17 no-host bin-true 860 293 590 8.8 osh-native
25 no-host bin-true 830 299 550 9.3 osh-nosouffle
33 no-host bin-true 695 307 406 5.1 osh-static
2 no-host configure.cpython 15,378 8,250 7,547 34.4 bash
10 no-host configure.cpython 15,544 8,382 7,609 34.5 dash
18 no-host configure.cpython 14,960 7,965 7,304 34.7 osh-native
26 no-host configure.cpython 15,230 8,020 7,530 34.4 osh-nosouffle
34 no-host configure.cpython 15,275 8,282 7,269 34.5 osh-static
4 no-host configure.ocaml 4,245 1,710 1,580 28.8 bash
12 no-host configure.ocaml 3,996 1,609 1,412 28.7 dash
20 no-host configure.ocaml 4,111 1,669 1,484 28.7 osh-native
28 no-host configure.ocaml 3,966 1,591 1,417 28.7 osh-nosouffle
36 no-host configure.ocaml 3,988 1,668 1,353 28.8 osh-static
5 no-host configure.tcc 55 32 24 26.3 bash
13 no-host configure.tcc 48 25 23 26.1 dash
21 no-host configure.tcc 50 27 24 26.2 osh-native
29 no-host configure.tcc 48 23 27 26.3 osh-nosouffle
37 no-host configure.tcc 49 28 21 26.1 osh-static
3 no-host configure.util-linux 14,042 7,226 7,339 39.6 bash
11 no-host configure.util-linux 14,719 7,101 8,156 39.7 dash
19 no-host configure.util-linux 14,614 7,177 7,690 39.7 osh-native
27 no-host configure.util-linux 13,870 6,823 7,303 39.9 osh-nosouffle
35 no-host configure.util-linux 13,386 6,774 6,848 39.5 osh-static
6 no-host configure.yash 2,010 1,089 929 33.4 bash
14 no-host configure.yash 1,800 1,061 739 33.4 dash
22 no-host configure.yash 1,899 1,050 850 33.4 osh-native
30 no-host configure.yash 1,836 984 854 33.4 osh-nosouffle
38 no-host configure.yash 1,860 1,045 816 33.3 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 3 2 2 6.4 osh-native
24 no-host hello-world 3 1 2 6.9 osh-nosouffle
32 no-host hello-world 1 1 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,364 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,153 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,295 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,395 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,835 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 99,394 0 0 0 8 0 2,000 64 bash
9 no-host bin-true 49,420 0 0 0 8 0 2,985 65 dash
17 no-host bin-true 135,024 0 0 0 16 0 1,997 90 osh-native
25 no-host bin-true 132,403 0 0 0 16 0 1,995 90 osh-nosouffle
33 no-host bin-true 112,707 0 0 0 8 0 1,997 70 osh-static
2 no-host configure.cpython 1,626,776 0 0 0 25,272 0 14,085 1,098 bash
10 no-host configure.cpython 1,636,199 0 0 0 25,272 0 14,140 1,031 dash
18 no-host configure.cpython 1,591,921 0 0 0 25,280 0 11,290 993 osh-native
26 no-host configure.cpython 1,597,540 0 0 0 25,280 0 11,290 844 osh-nosouffle
34 no-host configure.cpython 1,522,938 0 0 0 25,272 0 11,295 860 osh-static
4 no-host configure.ocaml 298,931 0 0 0 4,432 0 2,014 203 bash
12 no-host configure.ocaml 280,574 0 0 0 4,432 0 2,101 226 dash
20 no-host configure.ocaml 305,586 0 0 0 4,440 0 2,000 214 osh-native
28 no-host configure.ocaml 307,253 0 0 0 4,440 0 1,997 194 osh-nosouffle
36 no-host configure.ocaml 300,518 0 0 0 4,432 0 2,000 224 osh-static
5 no-host configure.tcc 5,228 0 0 0 80 0 48 0 bash
13 no-host configure.tcc 4,215 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 5,610 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,677 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,130 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,538,197 1 0 0 35,952 0 18,993 1,145 bash
11 no-host configure.util-linux 1,704,962 0 0 336 35,944 0 17,063 1,294 dash
19 no-host configure.util-linux 1,522,414 1 0 0 35,960 0 16,125 939 osh-native
27 no-host configure.util-linux 1,521,904 0 0 0 35,952 0 16,290 901 osh-nosouffle
35 no-host configure.util-linux 1,448,531 1 0 0 35,944 0 16,194 905 osh-static
6 no-host configure.yash 173,267 0 0 0 3,616 0 878 93 bash
14 no-host configure.yash 159,630 0 0 0 3,616 0 998 91 dash
22 no-host configure.yash 176,088 0 0 0 3,624 0 857 103 osh-native
30 no-host configure.yash 176,548 0 0 0 3,624 0 856 98 osh-nosouffle
38 no-host configure.yash 172,956 0 0 0 3,616 0 856 113 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 391 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 400 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 179 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-aa0f41b8
osh-nosouffle osh-7971bf79
osh-static osh-static-cdc6483e
host label host id
no-host no-host-9c670df1