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 20 21 18 1.28 1.14
bin-true no-host 615 442 807 818 654 1.31 1.06
configure.cpython no-host 13,728 13,760 13,353 13,446 12,882 0.97 0.94
configure.ocaml no-host 3,679 3,611 3,687 3,701 3,645 1.00 0.99
configure.tcc no-host 46 41 46 47 43 1.01 0.93
configure.util-linux no-host 12,526 13,227 12,378 12,501 12,122 0.99 0.97
configure.yash no-host 1,692 1,627 1,695 1,688 1,677 1.00 0.99
hello-world no-host 1 1 3 3 1 2.46 1.10

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,396 1,160 3,342 3,380 2,832 1.39 1.18
bin-true no-host 100,483 49,376 134,308 137,014 112,016 1.34 1.11
configure.cpython no-host 1,624,671 1,636,302 1,581,080 1,608,480 1,512,130 0.97 0.93
configure.ocaml no-host 299,358 280,593 305,615 307,046 300,179 1.02 1.00
configure.tcc no-host 5,187 4,212 5,553 5,686 5,117 1.07 0.99
configure.util-linux no-host 1,532,537 1,697,078 1,497,057 1,521,701 1,470,438 0.98 0.96
configure.yash no-host 173,314 159,581 176,302 177,238 172,794 1.02 1.00
hello-world no-host 154 85 391 402 185 2.54 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.7 4.1 9.7 10.0 6.3 2.06 1.33
bin-true no-host 3.3 1.6 8.8 9.2 5.1 2.68 1.56
configure.cpython no-host 34.4 34.5 34.5 34.6 34.5 1.00 1.00
configure.ocaml no-host 28.6 28.5 28.7 28.7 28.7 1.00 1.00
configure.tcc no-host 26.1 26.0 26.2 26.1 26.1 1.00 1.00
configure.util-linux no-host 39.6 39.7 39.5 39.5 39.6 1.00 1.00
configure.yash no-host 33.3 33.4 33.3 33.4 33.4 1.00 1.00
hello-world no-host 3.3 1.6 6.6 7.1 3.4 2.00 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.6 3,920 3,920 0 726 1,923 1,271 2 0 50,000 0
bin-true no-host 807 1 2 3.5 8.8 151,905 10,764 2,978 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,353 1 66 14.8 34.5 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,378 3 64 21.6 39.5 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,687 1 2 2.8 28.7 149,720 12,656 6,571 9,217 70,302 70,201 1,693 3 50,000 0
configure.tcc no-host 46 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,695 1 2 2.7 33.3 143,496 11,508 6,625 7,171 70,532 65,793 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 3.0 9.7 117,239 65,801 42,008 4,980 54,601 57,658 277 3 84,016 1
hello-world no-host 3 0 0 0.3 7.1 3,919 3,919 0 725 1,923 1,271 2 0 50,000 0
bin-true no-host 818 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,446 1 66 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,501 3 64 21.6 39.5 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,701 1 2 2.8 28.7 149,720 12,661 6,576 9,217 70,302 70,201 1,693 3 50,000 0
configure.tcc no-host 47 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,688 1 2 2.7 33.4 143,496 11,512 6,629 7,171 70,532 65,793 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 10.0 117,239 65,805 42,012 4,980 54,601 57,658 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 10 7 4.7 bash
15 no-host abuild-print-help 9 3 6 4.1 dash
23 no-host abuild-print-help 20 11 9 9.7 osh-native
31 no-host abuild-print-help 21 14 8 10.0 osh-nosouffle
39 no-host abuild-print-help 18 12 7 6.3 osh-static
1 no-host bin-true 615 301 349 3.3 bash
9 no-host bin-true 442 280 168 1.6 dash
17 no-host bin-true 807 311 513 8.8 osh-native
25 no-host bin-true 818 296 538 9.2 osh-nosouffle
33 no-host bin-true 654 320 351 5.1 osh-static
2 no-host configure.cpython 13,728 7,528 6,582 34.4 bash
10 no-host configure.cpython 13,760 7,585 6,579 34.5 dash
18 no-host configure.cpython 13,353 7,068 6,560 34.5 osh-native
26 no-host configure.cpython 13,446 7,212 6,524 34.6 osh-nosouffle
34 no-host configure.cpython 12,882 7,179 5,942 34.5 osh-static
4 no-host configure.ocaml 3,679 1,528 1,193 28.6 bash
12 no-host configure.ocaml 3,611 1,472 1,163 28.5 dash
20 no-host configure.ocaml 3,687 1,458 1,267 28.7 osh-native
28 no-host configure.ocaml 3,701 1,480 1,250 28.7 osh-nosouffle
36 no-host configure.ocaml 3,645 1,452 1,225 28.7 osh-static
5 no-host configure.tcc 46 26 21 26.1 bash
13 no-host configure.tcc 41 22 19 26.0 dash
21 no-host configure.tcc 46 22 25 26.2 osh-native
29 no-host configure.tcc 47 23 24 26.1 osh-nosouffle
37 no-host configure.tcc 43 24 19 26.1 osh-static
3 no-host configure.util-linux 12,526 6,624 6,375 39.6 bash
11 no-host configure.util-linux 13,227 6,508 7,202 39.7 dash
19 no-host configure.util-linux 12,378 6,198 6,407 39.5 osh-native
27 no-host configure.util-linux 12,501 6,232 6,495 39.5 osh-nosouffle
35 no-host configure.util-linux 12,122 6,235 6,109 39.6 osh-static
6 no-host configure.yash 1,692 935 765 33.3 bash
14 no-host configure.yash 1,627 939 691 33.4 dash
22 no-host configure.yash 1,695 935 759 33.3 osh-native
30 no-host configure.yash 1,688 919 772 33.4 osh-nosouffle
38 no-host configure.yash 1,677 936 743 33.4 osh-static
0 no-host hello-world 1 1 0 3.3 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 3 1 2 6.6 osh-native
24 no-host hello-world 3 1 2 7.1 osh-nosouffle
32 no-host hello-world 1 1 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,396 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,160 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,342 0 0 0 16 0 38 1 osh-native
31 no-host abuild-print-help 3,380 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,832 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 100,483 0 0 0 8 0 1,999 81 bash
9 no-host bin-true 49,376 0 0 0 8 0 2,996 46 dash
17 no-host bin-true 134,308 0 0 0 16 0 1,998 80 osh-native
25 no-host bin-true 137,014 0 0 0 16 0 1,998 82 osh-nosouffle
33 no-host bin-true 112,016 0 0 0 8 0 2,001 71 osh-static
2 no-host configure.cpython 1,624,671 2 0 0 25,296 0 14,071 1,033 bash
10 no-host configure.cpython 1,636,302 0 0 0 25,272 0 14,108 1,148 dash
18 no-host configure.cpython 1,581,080 0 0 0 25,280 0 11,302 810 osh-native
26 no-host configure.cpython 1,608,480 0 0 0 25,280 0 11,313 830 osh-nosouffle
34 no-host configure.cpython 1,512,130 0 0 0 25,272 0 11,300 853 osh-static
4 no-host configure.ocaml 299,358 0 0 0 4,432 0 2,018 192 bash
12 no-host configure.ocaml 280,593 0 0 0 4,432 0 2,108 200 dash
20 no-host configure.ocaml 305,615 0 0 0 4,440 0 1,999 219 osh-native
28 no-host configure.ocaml 307,046 0 0 0 4,440 0 2,003 208 osh-nosouffle
36 no-host configure.ocaml 300,179 0 0 0 4,432 0 1,999 209 osh-static
5 no-host configure.tcc 5,187 0 0 0 80 0 49 5 bash
13 no-host configure.tcc 4,212 0 0 0 88 0 52 5 dash
21 no-host configure.tcc 5,553 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,686 0 0 0 96 0 46 3 osh-nosouffle
37 no-host configure.tcc 5,117 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,532,537 2 0 0 35,936 0 18,907 1,063 bash
11 no-host configure.util-linux 1,697,078 1 0 0 35,936 0 17,066 1,283 dash
19 no-host configure.util-linux 1,497,057 1 0 0 35,952 0 16,196 871 osh-native
27 no-host configure.util-linux 1,521,701 0 0 0 35,952 0 16,156 934 osh-nosouffle
35 no-host configure.util-linux 1,470,438 1 0 0 35,936 0 16,079 881 osh-static
6 no-host configure.yash 173,314 0 0 0 3,616 0 877 103 bash
14 no-host configure.yash 159,581 0 0 0 3,616 0 1,003 104 dash
22 no-host configure.yash 176,302 0 0 0 3,624 0 856 102 osh-native
30 no-host configure.yash 177,238 0 0 0 3,624 0 857 105 osh-nosouffle
38 no-host configure.yash 172,794 0 0 0 3,616 0 858 119 osh-static
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 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 402 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 185 0 0 0 8 0 1 1 osh-static

Shell and Host

shell label shell id
bash bash-36833674
dash dash-cea41b3e
osh-native osh-24fdb7ac
osh-nosouffle osh-bc12c5ad
osh-static osh-static-dce19cbc
host label host id
no-host no-host-bba74091