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 24 18 1.33 1.16
bin-true no-host 624 445 819 810 655 1.31 1.05
configure.cpython no-host 14,054 14,236 13,768 13,826 13,315 0.98 0.95
configure.ocaml no-host 3,735 3,659 3,776 3,791 3,649 1.01 0.98
configure.tcc no-host 48 41 49 48 43 1.01 0.91
configure.util-linux no-host 12,887 13,585 12,715 12,952 12,354 0.99 0.96
configure.yash no-host 1,731 1,679 1,730 1,751 1,694 1.00 0.98
hello-world no-host 1 1 3 3 1 2.39 1.03

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,395 1,163 3,318 3,403 2,811 1.39 1.17
bin-true no-host 100,444 49,395 135,350 132,019 111,317 1.35 1.11
configure.cpython no-host 1,620,402 1,640,873 1,593,790 1,596,243 1,510,727 0.98 0.93
configure.ocaml no-host 298,405 280,428 306,339 306,969 299,772 1.03 1.00
configure.tcc no-host 5,227 4,202 5,542 5,704 5,112 1.06 0.98
configure.util-linux no-host 1,531,750 1,698,719 1,493,672 1,518,186 1,469,278 0.98 0.96
configure.yash no-host 173,410 159,566 176,341 176,862 172,587 1.02 1.00
hello-world no-host 153 83 395 399 184 2.58 1.20

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.4 10.0 6.3 1.95 1.30
bin-true no-host 3.3 1.4 8.9 9.2 5.1 2.72 1.56
configure.cpython no-host 34.5 34.6 34.6 34.6 34.5 1.00 1.00
configure.ocaml no-host 28.8 28.7 28.8 28.7 28.7 1.00 1.00
configure.tcc no-host 26.2 26.3 26.1 26.2 26.3 1.00 1.00
configure.util-linux no-host 39.7 39.7 39.7 39.7 39.7 1.00 1.00
configure.yash no-host 33.4 33.4 33.3 33.4 33.4 1.00 1.00
hello-world no-host 3.1 1.4 6.7 6.9 3.4 2.12 1.08

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,920 3,920 0 726 1,923 1,271 2 0 50,000 0
bin-true no-host 819 1 2 3.5 8.9 151,905 10,764 2,978 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,768 1 68 14.8 34.6 1,750,907 35,429 28,954 93,081 869,789 788,037 25,789 61 50,000 0
configure.util-linux no-host 12,715 3 68 21.6 39.7 2,705,473 37,501 66,342 119,749 1,291,899 1,293,825 32,527 42 132,684 1
configure.ocaml no-host 3,776 1 2 2.8 28.8 149,773 12,656 6,571 9,222 70,349 70,202 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.4 26.1 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,730 1 2 2.7 33.3 143,688 11,712 6,632 7,190 70,680 65,818 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.4 117,263 65,801 42,008 4,981 54,612 57,670 277 3 84,016 1
hello-world no-host 3 0 0 0.3 6.9 3,919 3,919 0 725 1,923 1,271 2 0 50,000 0
bin-true no-host 810 1 2 3.5 9.2 151,905 10,768 2,982 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,826 2 69 14.9 34.6 1,750,906 36,488 28,959 93,080 869,789 788,037 25,789 61 50,000 0
configure.util-linux no-host 12,952 3 69 21.6 39.7 2,705,473 37,507 66,348 119,749 1,291,899 1,293,825 32,527 42 132,696 1
configure.ocaml no-host 3,791 1 2 2.8 28.7 149,773 12,661 6,576 9,222 70,349 70,202 1,693 3 50,000 0
configure.tcc no-host 48 0 0 1.4 26.2 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,751 1 2 2.7 33.4 143,688 11,716 6,636 7,190 70,680 65,818 2,095 3 50,000 0
abuild-print-help no-host 24 1 2 3.0 10.0 117,263 65,805 42,012 4,981 54,612 57,670 277 3 84,024 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.8 bash
15 no-host abuild-print-help 9 5 5 3.9 dash
23 no-host abuild-print-help 21 14 8 9.4 osh-native
31 no-host abuild-print-help 24 13 12 10.0 osh-nosouffle
39 no-host abuild-print-help 18 13 6 6.3 osh-static
1 no-host bin-true 624 314 347 3.3 bash
9 no-host bin-true 445 271 181 1.4 dash
17 no-host bin-true 819 311 526 8.9 osh-native
25 no-host bin-true 810 306 522 9.2 osh-nosouffle
33 no-host bin-true 655 324 351 5.1 osh-static
2 no-host configure.cpython 14,054 7,678 6,769 34.5 bash
10 no-host configure.cpython 14,236 7,825 6,827 34.6 dash
18 no-host configure.cpython 13,768 7,272 6,771 34.6 osh-native
26 no-host configure.cpython 13,826 7,473 6,639 34.6 osh-nosouffle
34 no-host configure.cpython 13,315 7,327 6,232 34.5 osh-static
4 no-host configure.ocaml 3,735 1,541 1,235 28.8 bash
12 no-host configure.ocaml 3,659 1,485 1,198 28.7 dash
20 no-host configure.ocaml 3,776 1,540 1,276 28.8 osh-native
28 no-host configure.ocaml 3,791 1,540 1,292 28.7 osh-nosouffle
36 no-host configure.ocaml 3,649 1,480 1,200 28.7 osh-static
5 no-host configure.tcc 48 24 25 26.2 bash
13 no-host configure.tcc 41 22 19 26.3 dash
21 no-host configure.tcc 49 25 24 26.1 osh-native
29 no-host configure.tcc 48 23 25 26.2 osh-nosouffle
37 no-host configure.tcc 43 19 25 26.3 osh-static
3 no-host configure.util-linux 12,887 6,668 6,697 39.7 bash
11 no-host configure.util-linux 13,585 6,703 7,383 39.7 dash
19 no-host configure.util-linux 12,715 6,294 6,652 39.7 osh-native
27 no-host configure.util-linux 12,952 6,323 6,856 39.7 osh-nosouffle
35 no-host configure.util-linux 12,354 6,293 6,285 39.7 osh-static
6 no-host configure.yash 1,731 981 757 33.4 bash
14 no-host configure.yash 1,679 961 720 33.4 dash
22 no-host configure.yash 1,730 939 794 33.3 osh-native
30 no-host configure.yash 1,751 976 777 33.4 osh-nosouffle
38 no-host configure.yash 1,694 938 758 33.4 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 3 2 1 6.7 osh-native
24 no-host hello-world 3 3 0 6.9 osh-nosouffle
32 no-host hello-world 1 0 1 3.4 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,395 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,163 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,318 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,403 0 0 0 16 0 39 6 osh-nosouffle
39 no-host abuild-print-help 2,811 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 100,444 0 0 0 8 0 1,997 65 bash
9 no-host bin-true 49,395 0 0 0 8 0 2,992 56 dash
17 no-host bin-true 135,350 0 0 0 16 0 1,999 66 osh-native
25 no-host bin-true 132,019 0 0 0 16 0 2,000 75 osh-nosouffle
33 no-host bin-true 111,317 0 0 0 8 0 2,000 75 osh-static
2 no-host configure.cpython 1,620,402 0 0 0 25,272 0 14,083 1,158 bash
10 no-host configure.cpython 1,640,873 0 0 0 25,272 0 14,144 1,029 dash
18 no-host configure.cpython 1,593,790 0 0 0 25,280 0 11,295 821 osh-native
26 no-host configure.cpython 1,596,243 0 0 0 25,280 0 11,289 853 osh-nosouffle
34 no-host configure.cpython 1,510,727 0 0 0 25,272 0 11,297 895 osh-static
4 no-host configure.ocaml 298,405 0 0 0 4,432 0 2,018 204 bash
12 no-host configure.ocaml 280,428 0 0 0 4,432 0 2,104 212 dash
20 no-host configure.ocaml 306,339 0 0 0 4,440 0 2,002 233 osh-native
28 no-host configure.ocaml 306,969 0 0 0 4,440 0 1,999 197 osh-nosouffle
36 no-host configure.ocaml 299,772 0 0 0 4,432 0 1,999 229 osh-static
5 no-host configure.tcc 5,227 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,202 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,542 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,704 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,112 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,531,750 0 0 0 35,936 0 18,997 1,082 bash
11 no-host configure.util-linux 1,698,719 0 0 0 35,936 0 17,092 1,183 dash
19 no-host configure.util-linux 1,493,672 0 0 0 35,952 0 16,214 892 osh-native
27 no-host configure.util-linux 1,518,186 2 0 0 35,944 0 16,169 969 osh-nosouffle
35 no-host configure.util-linux 1,469,278 0 0 0 35,936 0 16,129 965 osh-static
6 no-host configure.yash 173,410 0 0 0 3,616 0 880 113 bash
14 no-host configure.yash 159,566 0 0 0 3,616 0 1,003 102 dash
22 no-host configure.yash 176,341 0 0 0 3,624 0 858 105 osh-native
30 no-host configure.yash 176,862 0 0 0 3,632 0 858 155 osh-nosouffle
38 no-host configure.yash 172,587 0 0 0 3,616 0 856 112 osh-static
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 395 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 399 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 184 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-d7b81fc7
osh-nosouffle osh-d4a25a91
osh-static osh-static-8f3d2b40
host label host id
no-host no-host-bba74091