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 22 19 1.37 1.18
bin-true no-host 628 449 812 822 665 1.29 1.06
configure.cpython no-host 14,616 14,597 14,112 14,278 13,587 0.97 0.93
configure.ocaml no-host 3,795 3,721 3,806 3,822 3,768 1.00 0.99
configure.tcc no-host 47 43 48 48 44 1.02 0.93
configure.util-linux no-host 13,271 13,945 13,188 13,068 12,903 0.99 0.97
configure.yash no-host 1,768 1,703 1,763 1,769 1,741 1.00 0.98
hello-world no-host 1 1 3 3 1 2.26 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,371 1,189 3,329 3,428 2,833 1.40 1.19
bin-true no-host 101,457 49,420 133,285 135,037 111,057 1.31 1.09
configure.cpython no-host 1,623,584 1,639,945 1,585,673 1,606,179 1,517,010 0.98 0.93
configure.ocaml no-host 299,172 280,562 305,741 306,744 300,104 1.02 1.00
configure.tcc no-host 5,204 4,210 5,582 5,610 5,119 1.07 0.98
configure.util-linux no-host 1,538,126 1,694,209 1,512,231 1,515,387 1,479,084 0.98 0.96
configure.yash no-host 173,539 159,545 177,129 177,020 172,800 1.02 1.00
hello-world no-host 153 85 391 400 183 2.56 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.3 1.7 8.8 8.9 5.2 2.68 1.60
configure.cpython no-host 34.3 34.4 34.6 34.5 34.6 1.01 1.01
configure.ocaml no-host 28.7 28.6 28.5 28.8 28.7 1.00 1.00
configure.tcc no-host 26.1 26.1 26.2 26.1 26.0 1.00 1.00
configure.util-linux no-host 39.6 39.5 39.6 39.7 39.5 1.00 1.00
configure.yash no-host 33.2 33.4 33.4 33.4 33.2 1.01 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 812 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 14,112 1 69 14.8 34.6 1,750,832 35,399 28,954 93,081 869,764 787,987 25,789 61 50,000 0
configure.util-linux no-host 13,188 3 70 21.6 39.6 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,806 1 2 2.8 28.5 149,705 12,656 6,571 9,217 70,297 70,191 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,763 1 2 2.7 33.4 143,481 11,508 6,625 7,171 70,527 65,783 2,095 3 50,000 0
abuild-print-help no-host 22 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 822 1 2 3.5 8.9 151,905 10,768 2,982 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 14,278 1 69 14.9 34.5 1,750,831 36,458 28,959 93,080 869,764 787,987 25,789 61 50,000 0
configure.util-linux no-host 13,068 3 69 21.6 39.7 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,822 1 2 2.8 28.8 149,705 12,661 6,576 9,217 70,297 70,191 1,693 3 50,000 0
configure.tcc no-host 48 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,769 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 22 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 11 6 4.8 bash
15 no-host abuild-print-help 9 6 4 3.9 dash
23 no-host abuild-print-help 22 11 12 9.3 osh-native
31 no-host abuild-print-help 22 12 11 10.0 osh-nosouffle
39 no-host abuild-print-help 19 12 7 6.3 osh-static
1 no-host bin-true 628 325 342 3.3 bash
9 no-host bin-true 449 282 172 1.7 dash
17 no-host bin-true 812 322 507 8.8 osh-native
25 no-host bin-true 822 299 542 8.9 osh-nosouffle
33 no-host bin-true 665 332 351 5.2 osh-static
2 no-host configure.cpython 14,616 7,873 7,100 34.3 bash
10 no-host configure.cpython 14,597 7,954 7,044 34.4 dash
18 no-host configure.cpython 14,112 7,478 6,897 34.6 osh-native
26 no-host configure.cpython 14,278 7,497 7,015 34.5 osh-nosouffle
34 no-host configure.cpython 13,587 7,456 6,361 34.6 osh-static
4 no-host configure.ocaml 3,795 1,523 1,313 28.7 bash
12 no-host configure.ocaml 3,721 1,490 1,255 28.6 dash
20 no-host configure.ocaml 3,806 1,499 1,347 28.5 osh-native
28 no-host configure.ocaml 3,822 1,562 1,302 28.8 osh-nosouffle
36 no-host configure.ocaml 3,768 1,554 1,245 28.7 osh-static
5 no-host configure.tcc 47 19 28 26.1 bash
13 no-host configure.tcc 43 26 18 26.1 dash
21 no-host configure.tcc 48 24 24 26.2 osh-native
29 no-host configure.tcc 48 26 22 26.1 osh-nosouffle
37 no-host configure.tcc 44 23 22 26.0 osh-static
3 no-host configure.util-linux 13,271 6,799 6,908 39.6 bash
11 no-host configure.util-linux 13,945 6,784 7,664 39.5 dash
19 no-host configure.util-linux 13,188 6,490 6,880 39.6 osh-native
27 no-host configure.util-linux 13,068 6,410 6,879 39.7 osh-nosouffle
35 no-host configure.util-linux 12,903 6,501 6,552 39.5 osh-static
6 no-host configure.yash 1,768 975 801 33.2 bash
14 no-host configure.yash 1,703 952 752 33.4 dash
22 no-host configure.yash 1,763 969 796 33.4 osh-native
30 no-host configure.yash 1,769 987 785 33.4 osh-nosouffle
38 no-host configure.yash 1,741 977 762 33.2 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 2 1 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,371 0 0 0 8 0 41 2 bash
15 no-host abuild-print-help 1,189 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,329 0 0 0 16 0 39 2 osh-native
31 no-host abuild-print-help 3,428 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,833 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 101,457 0 0 0 8 0 1,999 63 bash
9 no-host bin-true 49,420 0 0 0 8 0 2,997 57 dash
17 no-host bin-true 133,285 0 0 0 16 0 1,993 85 osh-native
25 no-host bin-true 135,037 0 0 0 16 0 2,001 84 osh-nosouffle
33 no-host bin-true 111,057 0 0 0 8 0 2,000 76 osh-static
2 no-host configure.cpython 1,623,584 0 0 0 25,272 0 14,086 1,009 bash
10 no-host configure.cpython 1,639,945 1 0 0 25,272 0 14,163 1,154 dash
18 no-host configure.cpython 1,585,673 0 0 0 25,280 0 11,305 835 osh-native
26 no-host configure.cpython 1,606,179 0 0 0 25,280 0 11,298 857 osh-nosouffle
34 no-host configure.cpython 1,517,010 0 0 0 25,272 0 11,289 869 osh-static
4 no-host configure.ocaml 299,172 0 0 0 4,432 0 2,017 196 bash
12 no-host configure.ocaml 280,562 0 0 0 4,432 0 2,110 189 dash
20 no-host configure.ocaml 305,741 0 0 0 4,440 0 1,996 210 osh-native
28 no-host configure.ocaml 306,744 0 0 0 4,440 0 2,002 203 osh-nosouffle
36 no-host configure.ocaml 300,104 0 0 0 4,432 0 1,995 194 osh-static
5 no-host configure.tcc 5,204 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,210 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,582 0 0 0 96 0 45 4 osh-native
29 no-host configure.tcc 5,610 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,119 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,538,126 0 0 0 35,936 0 19,003 1,092 bash
11 no-host configure.util-linux 1,694,209 2 0 0 35,944 0 17,108 1,239 dash
19 no-host configure.util-linux 1,512,231 0 0 0 35,960 0 16,142 951 osh-native
27 no-host configure.util-linux 1,515,387 4 0 0 35,952 0 16,167 948 osh-nosouffle
35 no-host configure.util-linux 1,479,084 4 0 0 35,944 0 16,156 984 osh-static
6 no-host configure.yash 173,539 0 0 0 3,616 0 877 107 bash
14 no-host configure.yash 159,545 0 0 0 3,616 0 1,001 102 dash
22 no-host configure.yash 177,129 0 0 0 3,624 0 855 103 osh-native
30 no-host configure.yash 177,020 0 0 0 3,632 0 858 109 osh-nosouffle
38 no-host configure.yash 172,800 0 0 0 3,616 0 857 100 osh-static
0 no-host hello-world 153 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 400 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 183 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-a20b72f5
osh-nosouffle osh-05d614b8
osh-static osh-static-59480301
host label host id
no-host no-host-bba74091