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 22 19 1.28 1.14
bin-true no-host 616 447 808 826 658 1.31 1.07
configure.cpython no-host 13,658 13,999 13,672 13,811 13,313 1.00 0.97
configure.ocaml no-host 3,674 3,587 3,729 3,788 3,683 1.01 1.00
configure.tcc no-host 46 41 49 49 44 1.04 0.94
configure.util-linux no-host 12,375 13,443 12,738 12,911 12,623 1.03 1.02
configure.yash no-host 1,734 1,655 1,777 1,748 1,718 1.02 0.99
hello-world no-host 1 1 3 3 1 2.47 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,376 1,156 3,305 3,440 2,839 1.39 1.19
bin-true no-host 102,492 49,442 133,287 136,029 112,079 1.30 1.09
configure.cpython no-host 1,626,464 1,635,868 1,587,824 1,606,533 1,517,454 0.98 0.93
configure.ocaml no-host 298,942 281,291 306,668 307,403 300,043 1.03 1.00
configure.tcc no-host 5,212 4,216 5,582 5,665 5,123 1.07 0.98
configure.util-linux no-host 1,527,899 1,700,582 1,508,293 1,512,957 1,479,576 0.99 0.97
configure.yash no-host 173,125 159,558 177,230 176,833 172,858 1.02 1.00
hello-world no-host 155 84 393 398 182 2.54 1.17

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.6 3.9 9.4 10.1 6.3 2.06 1.37
bin-true no-host 3.3 1.6 8.8 9.3 4.8 2.68 1.48
configure.cpython no-host 34.4 34.4 34.5 34.7 34.7 1.00 1.01
configure.ocaml no-host 28.7 28.7 28.7 28.5 28.8 1.00 1.00
configure.tcc no-host 26.4 26.0 26.0 26.2 26.2 0.99 0.99
configure.util-linux no-host 39.7 39.5 39.7 39.7 39.5 1.00 0.99
configure.yash no-host 33.4 33.3 33.4 33.2 33.2 1.00 1.00
hello-world no-host 3.3 1.6 6.6 6.9 3.3 2.00 1.00

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 808 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,672 1 68 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,738 3 66 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,729 1 2 2.8 28.7 149,705 12,656 6,571 9,217 70,297 70,191 1,693 3 50,000 0
configure.tcc no-host 49 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,777 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 21 1 2 3.0 9.4 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 826 1 2 3.5 9.3 151,905 10,768 2,982 14,785 72,397 64,723 3,008 3 50,000 0
configure.cpython no-host 13,811 1 69 14.9 34.7 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,911 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,788 1 2 2.8 28.5 149,705 12,661 6,576 9,217 70,297 70,191 1,693 3 50,000 0
configure.tcc no-host 49 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,748 1 2 2.7 33.2 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.1 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 9 8 4.6 bash
15 no-host abuild-print-help 9 5 4 3.9 dash
23 no-host abuild-print-help 21 11 10 9.4 osh-native
31 no-host abuild-print-help 22 12 10 10.1 osh-nosouffle
39 no-host abuild-print-help 19 13 6 6.3 osh-static
1 no-host bin-true 616 311 344 3.3 bash
9 no-host bin-true 447 280 172 1.6 dash
17 no-host bin-true 808 326 500 8.8 osh-native
25 no-host bin-true 826 296 549 9.3 osh-nosouffle
33 no-host bin-true 658 312 363 4.8 osh-static
2 no-host configure.cpython 13,658 7,545 6,498 34.4 bash
10 no-host configure.cpython 13,999 7,670 6,735 34.4 dash
18 no-host configure.cpython 13,672 7,292 6,638 34.5 osh-native
26 no-host configure.cpython 13,811 7,330 6,774 34.7 osh-nosouffle
34 no-host configure.cpython 13,313 7,336 6,221 34.7 osh-static
4 no-host configure.ocaml 3,674 1,507 1,207 28.7 bash
12 no-host configure.ocaml 3,587 1,464 1,149 28.7 dash
20 no-host configure.ocaml 3,729 1,488 1,280 28.7 osh-native
28 no-host configure.ocaml 3,788 1,529 1,299 28.5 osh-nosouffle
36 no-host configure.ocaml 3,683 1,505 1,208 28.8 osh-static
5 no-host configure.tcc 46 28 19 26.4 bash
13 no-host configure.tcc 41 21 20 26.0 dash
21 no-host configure.tcc 49 23 26 26.0 osh-native
29 no-host configure.tcc 49 26 23 26.2 osh-nosouffle
37 no-host configure.tcc 44 28 16 26.2 osh-static
3 no-host configure.util-linux 12,375 6,540 6,304 39.7 bash
11 no-host configure.util-linux 13,443 6,595 7,346 39.5 dash
19 no-host configure.util-linux 12,738 6,346 6,615 39.7 osh-native
27 no-host configure.util-linux 12,911 6,298 6,834 39.7 osh-nosouffle
35 no-host configure.util-linux 12,623 6,380 6,460 39.5 osh-static
6 no-host configure.yash 1,734 969 772 33.4 bash
14 no-host configure.yash 1,655 938 719 33.3 dash
22 no-host configure.yash 1,777 966 812 33.4 osh-native
30 no-host configure.yash 1,748 973 777 33.2 osh-nosouffle
38 no-host configure.yash 1,718 971 750 33.2 osh-static
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 3 0 3 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.3 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,376 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,156 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,305 0 0 0 16 0 39 2 osh-native
31 no-host abuild-print-help 3,440 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,839 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 102,492 0 0 0 8 0 1,997 56 bash
9 no-host bin-true 49,442 0 0 0 8 0 2,990 54 dash
17 no-host bin-true 133,287 0 0 0 16 0 2,000 71 osh-native
25 no-host bin-true 136,029 0 0 0 16 0 1,992 62 osh-nosouffle
33 no-host bin-true 112,079 0 0 0 8 0 1,998 60 osh-static
2 no-host configure.cpython 1,626,464 0 0 0 25,272 0 14,072 1,138 bash
10 no-host configure.cpython 1,635,868 0 0 0 25,272 0 14,120 1,030 dash
18 no-host configure.cpython 1,587,824 0 0 0 25,280 0 11,301 1,074 osh-native
26 no-host configure.cpython 1,606,533 0 0 0 25,280 0 11,308 841 osh-nosouffle
34 no-host configure.cpython 1,517,454 0 0 0 25,272 0 11,302 848 osh-static
4 no-host configure.ocaml 298,942 0 0 0 4,432 0 2,020 205 bash
12 no-host configure.ocaml 281,291 0 0 0 4,432 0 2,111 207 dash
20 no-host configure.ocaml 306,668 0 0 0 4,440 0 2,000 209 osh-native
28 no-host configure.ocaml 307,403 0 0 0 4,440 0 1,995 345 osh-nosouffle
36 no-host configure.ocaml 300,043 0 0 0 4,432 0 2,003 226 osh-static
5 no-host configure.tcc 5,212 0 0 0 80 0 49 5 bash
13 no-host configure.tcc 4,216 0 0 0 88 0 51 2 dash
21 no-host configure.tcc 5,582 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,665 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,123 0 0 0 88 0 45 2 osh-static
3 no-host configure.util-linux 1,527,899 1 0 0 35,936 0 18,987 1,063 bash
11 no-host configure.util-linux 1,700,582 0 0 0 35,936 0 17,103 1,231 dash
19 no-host configure.util-linux 1,508,293 0 0 0 35,952 0 16,140 971 osh-native
27 no-host configure.util-linux 1,512,957 0 0 0 35,944 0 16,198 922 osh-nosouffle
35 no-host configure.util-linux 1,479,576 1 0 0 35,936 0 16,202 986 osh-static
6 no-host configure.yash 173,125 0 0 0 3,616 0 879 114 bash
14 no-host configure.yash 159,558 0 0 0 3,616 0 1,002 93 dash
22 no-host configure.yash 177,230 0 0 0 3,624 0 857 105 osh-native
30 no-host configure.yash 176,833 0 0 0 3,624 0 859 100 osh-nosouffle
38 no-host configure.yash 172,858 0 0 0 3,624 0 854 104 osh-static
0 no-host hello-world 155 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 393 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 398 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-68c80adf
osh-nosouffle osh-c305a6d7
osh-static osh-static-cd1fbbd4
host label host id
no-host no-host-bba74091