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.29 1.16
bin-true no-host 620 441 976 805 647 1.57 1.04
configure.cpython no-host 13,493 13,638 13,239 13,283 12,626 0.98 0.94
configure.ocaml no-host 3,608 3,540 3,661 3,641 3,605 1.01 1.00
configure.tcc no-host 46 40 46 47 42 1.02 0.93
configure.util-linux no-host 12,259 13,009 12,302 12,255 11,906 1.00 0.97
configure.yash no-host 1,675 1,600 1,659 1,659 1,629 0.99 0.97
hello-world no-host 1 1 3 3 1 2.49 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,389 1,151 3,329 3,421 2,836 1.39 1.19
bin-true no-host 103,441 49,385 133,299 136,027 111,109 1.29 1.07
configure.cpython no-host 1,627,915 1,640,055 1,574,813 1,607,784 1,516,842 0.97 0.93
configure.ocaml no-host 299,071 281,192 306,624 306,365 300,037 1.03 1.00
configure.tcc no-host 5,228 4,204 5,542 5,685 5,130 1.06 0.98
configure.util-linux no-host 1,531,775 1,694,912 1,513,170 1,513,973 1,480,680 0.99 0.97
configure.yash no-host 173,381 159,565 177,203 176,905 172,814 1.02 1.00
hello-world no-host 154 85 396 397 185 2.57 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.3 10.0 6.3 1.92 1.30
bin-true no-host 3.1 1.8 8.5 9.4 5.4 2.71 1.71
configure.cpython no-host 34.7 34.6 34.5 34.4 34.5 0.99 0.99
configure.ocaml no-host 28.8 28.7 28.6 28.6 28.7 1.00 1.00
configure.tcc no-host 26.3 26.3 26.1 26.1 26.2 1.00 1.00
configure.util-linux no-host 39.6 39.7 39.7 39.6 39.6 1.00 1.00
configure.yash no-host 33.2 33.4 33.3 33.4 33.4 1.00 1.00
hello-world no-host 3.3 1.6 6.6 6.9 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 976 1 2 3.5 8.5 151,905 10,764 2,978 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,239 2 64 14.8 34.5 1,750,832 35,399 28,954 93,081 869,764 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,302 3 62 21.6 39.7 2,705,398 37,471 66,342 119,749 1,291,874 1,293,775 32,527 42 132,684 1
configure.ocaml no-host 3,661 1 2 2.8 28.6 149,705 12,656 6,571 9,217 70,297 70,191 1,693 3 50,000 0
configure.tcc no-host 46 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,659 1 2 2.7 33.3 143,481 11,508 6,625 7,171 70,527 65,783 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 3.0 9.3 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 6.9 3,919 3,919 0 725 1,923 1,271 2 0 50,000 0
bin-true no-host 805 1 2 3.5 9.4 151,905 10,768 2,982 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,283 2 63 14.9 34.4 1,750,831 36,458 28,959 93,080 869,764 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,255 3 61 21.6 39.6 2,705,398 37,477 66,348 119,749 1,291,874 1,293,775 32,527 42 132,696 1
configure.ocaml no-host 3,641 1 2 2.8 28.6 149,705 12,661 6,576 9,217 70,297 70,191 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,659 1 2 2.7 33.4 143,481 11,512 6,629 7,171 70,527 65,783 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 13 4 4.8 bash
15 no-host abuild-print-help 9 6 3 3.9 dash
23 no-host abuild-print-help 20 11 10 9.3 osh-native
31 no-host abuild-print-help 21 11 10 10.0 osh-nosouffle
39 no-host abuild-print-help 18 12 7 6.3 osh-static
1 no-host bin-true 620 313 346 3.1 bash
9 no-host bin-true 441 273 175 1.8 dash
17 no-host bin-true 976 301 689 8.5 osh-native
25 no-host bin-true 805 321 501 9.4 osh-nosouffle
33 no-host bin-true 647 304 362 5.4 osh-static
2 no-host configure.cpython 13,493 7,485 6,399 34.7 bash
10 no-host configure.cpython 13,638 7,502 6,541 34.6 dash
18 no-host configure.cpython 13,239 7,042 6,457 34.5 osh-native
26 no-host configure.cpython 13,283 7,073 6,470 34.4 osh-nosouffle
34 no-host configure.cpython 12,626 7,012 5,853 34.5 osh-static
4 no-host configure.ocaml 3,608 1,415 1,234 28.8 bash
12 no-host configure.ocaml 3,540 1,409 1,157 28.7 dash
20 no-host configure.ocaml 3,661 1,469 1,232 28.6 osh-native
28 no-host configure.ocaml 3,641 1,475 1,206 28.6 osh-nosouffle
36 no-host configure.ocaml 3,605 1,491 1,146 28.7 osh-static
5 no-host configure.tcc 46 25 21 26.3 bash
13 no-host configure.tcc 40 25 16 26.3 dash
21 no-host configure.tcc 46 24 23 26.1 osh-native
29 no-host configure.tcc 47 26 22 26.1 osh-nosouffle
37 no-host configure.tcc 42 21 22 26.2 osh-static
3 no-host configure.util-linux 12,259 6,405 6,323 39.6 bash
11 no-host configure.util-linux 13,009 6,366 7,129 39.7 dash
19 no-host configure.util-linux 12,302 6,106 6,421 39.7 osh-native
27 no-host configure.util-linux 12,255 6,097 6,385 39.6 osh-nosouffle
35 no-host configure.util-linux 11,906 6,068 6,057 39.6 osh-static
6 no-host configure.yash 1,675 923 762 33.2 bash
14 no-host configure.yash 1,600 929 673 33.4 dash
22 no-host configure.yash 1,659 922 741 33.3 osh-native
30 no-host configure.yash 1,659 924 739 33.4 osh-nosouffle
38 no-host configure.yash 1,629 899 734 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 2 1 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,389 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,151 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,329 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,421 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,836 0 0 0 8 0 39 2 osh-static
1 no-host bin-true 103,441 0 0 0 8 0 1,995 50 bash
9 no-host bin-true 49,385 0 0 0 8 0 2,995 38 dash
17 no-host bin-true 133,299 0 0 0 16 0 1,990 104 osh-native
25 no-host bin-true 136,027 0 0 0 16 0 1,996 70 osh-nosouffle
33 no-host bin-true 111,109 0 0 0 8 0 2,000 67 osh-static
2 no-host configure.cpython 1,627,915 0 0 0 25,272 0 14,076 1,063 bash
10 no-host configure.cpython 1,640,055 0 0 0 25,272 0 14,139 1,051 dash
18 no-host configure.cpython 1,574,813 0 0 0 25,280 0 11,299 883 osh-native
26 no-host configure.cpython 1,607,784 0 0 0 25,280 0 11,295 849 osh-nosouffle
34 no-host configure.cpython 1,516,842 1 0 0 25,272 0 11,304 826 osh-static
4 no-host configure.ocaml 299,071 0 0 0 4,432 0 2,016 190 bash
12 no-host configure.ocaml 281,192 0 0 0 4,432 0 2,109 202 dash
20 no-host configure.ocaml 306,624 0 0 0 4,440 0 1,995 226 osh-native
28 no-host configure.ocaml 306,365 0 0 0 4,440 0 2,003 188 osh-nosouffle
36 no-host configure.ocaml 300,037 0 0 0 4,432 0 1,998 236 osh-static
5 no-host configure.tcc 5,228 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,204 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,685 0 0 0 96 0 45 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,531,775 0 0 0 35,936 0 18,958 1,038 bash
11 no-host configure.util-linux 1,694,912 1 0 0 35,936 0 17,076 1,278 dash
19 no-host configure.util-linux 1,513,170 1 0 0 35,952 0 16,132 936 osh-native
27 no-host configure.util-linux 1,513,973 5 0 0 35,944 0 16,256 966 osh-nosouffle
35 no-host configure.util-linux 1,480,680 1 0 0 35,936 0 16,218 944 osh-static
6 no-host configure.yash 173,381 0 0 0 3,616 0 878 91 bash
14 no-host configure.yash 159,565 0 0 0 3,616 0 1,001 110 dash
22 no-host configure.yash 177,203 0 0 0 3,624 0 858 104 osh-native
30 no-host configure.yash 176,905 0 0 0 3,624 0 856 91 osh-nosouffle
38 no-host configure.yash 172,814 0 0 0 3,616 0 857 102 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 396 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 397 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-14e2ff30
osh-nosouffle osh-e10642dc
osh-static osh-static-f0b52b70
host label host id
no-host no-host-bba74091