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 22 21 18 1.37 1.16
bin-true no-host 630 443 811 826 654 1.29 1.04
configure.cpython no-host 14,038 14,191 13,668 13,704 13,183 0.97 0.94
configure.ocaml no-host 3,790 3,701 3,734 3,757 3,716 0.99 0.98
configure.tcc no-host 47 41 47 47 44 1.01 0.94
configure.util-linux no-host 12,696 13,401 12,903 12,725 12,397 1.02 0.98
configure.yash no-host 1,729 1,654 1,738 1,710 1,704 1.01 0.99
hello-world no-host 1 1 3 3 1 2.49 0.98

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,398 1,183 3,277 3,466 2,826 1.37 1.18
bin-true no-host 101,427 49,398 133,341 133,997 110,385 1.31 1.09
configure.cpython no-host 1,628,733 1,629,495 1,581,190 1,602,262 1,513,133 0.97 0.93
configure.ocaml no-host 299,303 280,735 305,945 307,397 299,906 1.02 1.00
configure.tcc no-host 5,199 4,194 5,580 5,669 5,117 1.07 0.98
configure.util-linux no-host 1,532,957 1,691,863 1,501,471 1,522,450 1,470,655 0.98 0.96
configure.yash no-host 173,622 159,593 177,111 176,688 172,753 1.02 0.99
hello-world no-host 150 87 395 401 182 2.63 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.8 3.9 9.4 10.1 6.3 1.95 1.30
bin-true no-host 3.3 1.4 8.8 9.0 5.4 2.68 1.64
configure.cpython no-host 34.5 34.8 34.5 34.5 34.4 1.00 1.00
configure.ocaml no-host 28.7 28.7 28.8 28.7 28.7 1.00 1.00
configure.tcc no-host 26.3 26.0 26.0 26.4 26.1 0.99 0.99
configure.util-linux no-host 39.6 39.7 39.6 39.7 39.7 1.00 1.00
configure.yash no-host 33.4 33.4 33.4 33.4 33.1 1.00 0.99
hello-world no-host 3.1 1.6 6.7 7.1 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 811 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,668 1 67 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,903 3 67 21.6 39.6 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,734 1 2 2.8 28.8 149,720 12,656 6,571 9,217 70,302 70,201 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.0 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,738 1 2 2.7 33.4 143,538 11,666 6,632 7,172 70,560 65,806 2,095 3 50,000 0
abuild-print-help no-host 22 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 7.1 3,919 3,919 0 725 1,923 1,271 2 0 50,000 0
bin-true no-host 826 1 2 3.5 9.0 151,905 10,768 2,982 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,704 1 68 14.9 34.5 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,725 3 66 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,757 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.4 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,710 1 2 2.7 33.4 143,538 11,670 6,636 7,172 70,560 65,806 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 10.1 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 10 6 4.8 bash
15 no-host abuild-print-help 9 5 5 3.9 dash
23 no-host abuild-print-help 22 11 12 9.4 osh-native
31 no-host abuild-print-help 21 12 10 10.1 osh-nosouffle
39 no-host abuild-print-help 18 9 10 6.3 osh-static
1 no-host bin-true 630 318 348 3.3 bash
9 no-host bin-true 443 276 172 1.4 dash
17 no-host bin-true 811 314 511 8.8 osh-native
25 no-host bin-true 826 324 518 9.0 osh-nosouffle
33 no-host bin-true 654 319 350 5.4 osh-static
2 no-host configure.cpython 14,038 7,765 6,650 34.5 bash
10 no-host configure.cpython 14,191 7,790 6,809 34.8 dash
18 no-host configure.cpython 13,668 7,220 6,716 34.5 osh-native
26 no-host configure.cpython 13,704 7,199 6,791 34.5 osh-nosouffle
34 no-host configure.cpython 13,183 7,220 6,194 34.4 osh-static
4 no-host configure.ocaml 3,790 1,566 1,265 28.7 bash
12 no-host configure.ocaml 3,701 1,486 1,239 28.7 dash
20 no-host configure.ocaml 3,734 1,473 1,300 28.8 osh-native
28 no-host configure.ocaml 3,757 1,509 1,289 28.7 osh-nosouffle
36 no-host configure.ocaml 3,716 1,496 1,250 28.7 osh-static
5 no-host configure.tcc 47 24 24 26.3 bash
13 no-host configure.tcc 41 23 18 26.0 dash
21 no-host configure.tcc 47 26 22 26.0 osh-native
29 no-host configure.tcc 47 27 21 26.4 osh-nosouffle
37 no-host configure.tcc 44 25 19 26.1 osh-static
3 no-host configure.util-linux 12,696 6,650 6,515 39.6 bash
11 no-host configure.util-linux 13,401 6,552 7,346 39.7 dash
19 no-host configure.util-linux 12,903 6,355 6,771 39.6 osh-native
27 no-host configure.util-linux 12,725 6,328 6,625 39.7 osh-nosouffle
35 no-host configure.util-linux 12,397 6,320 6,292 39.7 osh-static
6 no-host configure.yash 1,729 977 759 33.4 bash
14 no-host configure.yash 1,654 922 734 33.4 dash
22 no-host configure.yash 1,738 950 791 33.4 osh-native
30 no-host configure.yash 1,710 959 754 33.4 osh-nosouffle
38 no-host configure.yash 1,704 982 725 33.1 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 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,398 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,183 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,277 0 0 0 16 0 38 1 osh-native
31 no-host abuild-print-help 3,466 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,826 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 101,427 0 0 0 8 0 1,999 64 bash
9 no-host bin-true 49,398 0 0 0 8 0 2,997 49 dash
17 no-host bin-true 133,341 0 0 0 16 0 1,998 84 osh-native
25 no-host bin-true 133,997 0 0 0 16 0 1,998 92 osh-nosouffle
33 no-host bin-true 110,385 0 0 0 8 0 2,000 59 osh-static
2 no-host configure.cpython 1,628,733 1 0 0 25,272 0 14,083 1,081 bash
10 no-host configure.cpython 1,629,495 0 0 0 25,272 0 14,114 1,032 dash
18 no-host configure.cpython 1,581,190 0 0 0 25,280 0 11,304 921 osh-native
26 no-host configure.cpython 1,602,262 0 0 0 25,280 0 11,301 833 osh-nosouffle
34 no-host configure.cpython 1,513,133 0 0 0 25,272 0 11,300 918 osh-static
4 no-host configure.ocaml 299,303 0 0 0 4,432 0 2,016 201 bash
12 no-host configure.ocaml 280,735 0 0 0 4,432 0 2,107 194 dash
20 no-host configure.ocaml 305,945 0 0 0 4,440 0 1,998 193 osh-native
28 no-host configure.ocaml 307,397 0 0 0 4,440 0 2,000 224 osh-nosouffle
36 no-host configure.ocaml 299,906 0 0 0 4,432 0 1,996 216 osh-static
5 no-host configure.tcc 5,199 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,194 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,580 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,669 0 0 0 96 0 45 1 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,957 0 0 0 35,936 0 18,948 1,108 bash
11 no-host configure.util-linux 1,691,863 2 0 0 35,936 0 17,035 1,245 dash
19 no-host configure.util-linux 1,501,471 2 0 0 35,952 0 16,122 883 osh-native
27 no-host configure.util-linux 1,522,450 1 0 0 35,944 0 16,141 945 osh-nosouffle
35 no-host configure.util-linux 1,470,655 1 0 0 35,936 0 16,130 933 osh-static
6 no-host configure.yash 173,622 0 0 0 3,616 0 879 97 bash
14 no-host configure.yash 159,593 0 0 0 3,616 0 1,002 94 dash
22 no-host configure.yash 177,111 0 0 0 3,632 0 857 101 osh-native
30 no-host configure.yash 176,688 0 0 0 3,624 0 856 99 osh-nosouffle
38 no-host configure.yash 172,753 0 0 0 3,616 0 857 98 osh-static
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 87 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 401 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-70a13c6c
osh-nosouffle osh-536e6593
osh-static osh-static-0d01cf3e
host label host id
no-host no-host-bba74091