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 15 9 21 22 19 1.33 1.20
bin-true no-host 615 441 807 804 648 1.31 1.05
configure.cpython no-host 13,723 13,786 13,369 13,391 12,824 0.97 0.93
configure.ocaml no-host 3,639 3,581 3,680 3,672 3,668 1.01 1.01
configure.tcc no-host 46 41 47 47 43 1.02 0.94
configure.util-linux no-host 12,521 13,192 12,412 12,458 12,045 0.99 0.96
configure.yash no-host 1,685 1,629 1,682 1,694 1,667 1.00 0.99
hello-world no-host 1 1 3 3 1 2.40 1.01

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,369 1,175 3,282 3,426 2,823 1.39 1.19
bin-true no-host 100,443 49,381 135,523 134,037 111,078 1.35 1.11
configure.cpython no-host 1,629,412 1,641,303 1,589,428 1,603,470 1,517,680 0.98 0.93
configure.ocaml no-host 298,897 280,816 306,259 306,896 299,984 1.02 1.00
configure.tcc no-host 5,233 4,216 5,627 5,665 5,129 1.08 0.98
configure.util-linux no-host 1,531,884 1,703,431 1,505,057 1,516,169 1,480,205 0.98 0.97
configure.yash no-host 173,012 159,603 176,742 177,161 172,743 1.02 1.00
hello-world no-host 153 87 395 396 183 2.58 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 3.9 9.4 10.0 6.2 2.00 1.31
bin-true no-host 3.1 1.4 8.8 9.2 5.1 2.79 1.62
configure.cpython no-host 34.5 34.5 34.4 34.6 34.5 1.00 1.00
configure.ocaml no-host 28.6 28.6 28.7 28.6 28.7 1.00 1.00
configure.tcc no-host 26.3 26.2 26.2 26.0 26.3 0.99 1.00
configure.util-linux no-host 39.6 39.7 39.7 39.5 39.7 1.00 1.00
configure.yash no-host 33.4 33.1 33.4 33.4 33.4 1.00 1.00
hello-world no-host 3.1 1.6 6.7 6.8 3.3 2.12 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.7 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,369 1 66 14.8 34.4 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,412 3 65 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,680 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 47 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,682 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.8 3,919 3,919 0 725 1,923 1,271 2 0 50,000 0
bin-true no-host 804 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,391 1 66 14.9 34.6 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,458 3 66 21.6 39.5 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,672 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.0 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,694 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 15 7 9 4.7 bash
15 no-host abuild-print-help 9 4 5 3.9 dash
23 no-host abuild-print-help 21 9 12 9.4 osh-native
31 no-host abuild-print-help 22 14 8 10.0 osh-nosouffle
39 no-host abuild-print-help 19 12 7 6.2 osh-static
1 no-host bin-true 615 300 352 3.1 bash
9 no-host bin-true 441 283 163 1.4 dash
17 no-host bin-true 807 305 520 8.8 osh-native
25 no-host bin-true 804 314 505 9.2 osh-nosouffle
33 no-host bin-true 648 317 350 5.1 osh-static
2 no-host configure.cpython 13,723 7,567 6,538 34.5 bash
10 no-host configure.cpython 13,786 7,642 6,552 34.5 dash
18 no-host configure.cpython 13,369 7,192 6,451 34.4 osh-native
26 no-host configure.cpython 13,391 7,139 6,537 34.6 osh-nosouffle
34 no-host configure.cpython 12,824 7,095 5,971 34.5 osh-static
4 no-host configure.ocaml 3,639 1,458 1,222 28.6 bash
12 no-host configure.ocaml 3,581 1,441 1,165 28.6 dash
20 no-host configure.ocaml 3,680 1,456 1,264 28.7 osh-native
28 no-host configure.ocaml 3,672 1,466 1,248 28.6 osh-nosouffle
36 no-host configure.ocaml 3,668 1,450 1,249 28.7 osh-static
5 no-host configure.tcc 46 23 24 26.3 bash
13 no-host configure.tcc 41 24 17 26.2 dash
21 no-host configure.tcc 47 24 23 26.2 osh-native
29 no-host configure.tcc 47 27 21 26.0 osh-nosouffle
37 no-host configure.tcc 43 22 21 26.3 osh-static
3 no-host configure.util-linux 12,521 6,591 6,393 39.6 bash
11 no-host configure.util-linux 13,192 6,401 7,281 39.7 dash
19 no-host configure.util-linux 12,412 6,186 6,448 39.7 osh-native
27 no-host configure.util-linux 12,458 6,172 6,513 39.5 osh-nosouffle
35 no-host configure.util-linux 12,045 6,110 6,154 39.7 osh-static
6 no-host configure.yash 1,685 956 737 33.4 bash
14 no-host configure.yash 1,629 921 709 33.1 dash
22 no-host configure.yash 1,682 931 753 33.4 osh-native
30 no-host configure.yash 1,694 964 733 33.4 osh-nosouffle
38 no-host configure.yash 1,667 956 715 33.4 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 3 3 0 6.7 osh-native
24 no-host hello-world 3 1 2 6.8 osh-nosouffle
32 no-host hello-world 1 1 0 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,369 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,175 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,282 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,426 0 0 0 16 0 39 2 osh-nosouffle
39 no-host abuild-print-help 2,823 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 100,443 0 0 0 8 0 1,998 66 bash
9 no-host bin-true 49,381 0 0 0 8 0 2,992 52 dash
17 no-host bin-true 135,523 0 0 0 16 0 1,995 64 osh-native
25 no-host bin-true 134,037 0 0 0 16 0 1,999 76 osh-nosouffle
33 no-host bin-true 111,078 0 0 0 8 0 1,999 47 osh-static
2 no-host configure.cpython 1,629,412 0 0 0 25,272 0 14,085 1,026 bash
10 no-host configure.cpython 1,641,303 0 0 0 25,272 0 14,127 1,032 dash
18 no-host configure.cpython 1,589,428 0 0 0 25,280 0 11,296 833 osh-native
26 no-host configure.cpython 1,603,470 0 0 0 25,280 0 11,301 872 osh-nosouffle
34 no-host configure.cpython 1,517,680 0 0 0 25,272 0 11,295 845 osh-static
4 no-host configure.ocaml 298,897 0 0 0 4,432 0 2,016 184 bash
12 no-host configure.ocaml 280,816 0 0 0 4,432 0 2,109 181 dash
20 no-host configure.ocaml 306,259 0 0 0 4,440 0 1,997 212 osh-native
28 no-host configure.ocaml 306,896 0 0 0 4,440 0 2,002 205 osh-nosouffle
36 no-host configure.ocaml 299,984 0 0 0 4,432 0 2,001 222 osh-static
5 no-host configure.tcc 5,233 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,216 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,627 0 0 0 96 0 45 4 osh-native
29 no-host configure.tcc 5,665 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,129 0 0 0 88 0 45 0 osh-static
3 no-host configure.util-linux 1,531,884 0 0 0 35,936 0 19,018 1,103 bash
11 no-host configure.util-linux 1,703,431 0 0 0 35,936 0 17,117 1,185 dash
19 no-host configure.util-linux 1,505,057 1 0 0 35,960 0 16,136 1,108 osh-native
27 no-host configure.util-linux 1,516,169 1 0 0 35,952 0 16,132 873 osh-nosouffle
35 no-host configure.util-linux 1,480,205 1 0 0 35,944 0 16,138 887 osh-static
6 no-host configure.yash 173,012 0 0 0 3,616 0 876 105 bash
14 no-host configure.yash 159,603 0 0 0 3,624 0 1,002 115 dash
22 no-host configure.yash 176,742 0 0 0 3,624 0 858 100 osh-native
30 no-host configure.yash 177,161 0 0 0 3,624 0 858 101 osh-nosouffle
38 no-host configure.yash 172,743 0 0 0 3,616 0 858 105 osh-static
0 no-host hello-world 153 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 396 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-e507211d
osh-nosouffle osh-33e2bdfd
osh-static osh-static-7fe7fcdc
host label host id
no-host no-host-bba74091