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 18 1.33 1.19
bin-true no-host 614 436 789 806 650 1.28 1.06
configure.cpython no-host 13,802 13,678 13,461 13,414 12,954 0.98 0.94
configure.ocaml no-host 3,698 3,618 3,743 3,769 3,752 1.01 1.01
configure.tcc no-host 48 41 46 47 44 0.97 0.92
configure.util-linux no-host 12,891 13,153 12,689 12,814 12,488 0.98 0.97
configure.yash no-host 1,686 1,623 1,708 1,714 1,720 1.01 1.02
hello-world no-host 1 1 3 3 1 2.41 1.04

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,158 3,330 3,436 2,832 1.39 1.18
bin-true no-host 101,483 49,431 132,260 134,994 112,066 1.30 1.10
configure.cpython no-host 1,627,542 1,637,834 1,579,259 1,598,472 1,515,288 0.97 0.93
configure.ocaml no-host 298,605 280,733 306,597 307,964 300,072 1.03 1.00
configure.tcc no-host 5,270 4,216 5,566 5,686 5,119 1.06 0.97
configure.util-linux no-host 1,542,346 1,704,963 1,516,564 1,511,624 1,480,104 0.98 0.96
configure.yash no-host 173,617 159,513 176,494 177,118 172,804 1.02 1.00
hello-world no-host 152 85 392 404 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.8 3.8 9.6 10.1 6.3 1.97 1.30
bin-true no-host 3.3 1.7 8.5 9.2 5.1 2.60 1.56
configure.cpython no-host 34.4 34.5 34.5 34.5 34.6 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.2 26.3 26.2 26.2 26.2 1.00 1.00
configure.util-linux no-host 39.6 39.6 39.6 39.7 39.6 1.00 1.00
configure.yash no-host 33.2 33.3 33.4 33.3 33.4 1.00 1.00
hello-world no-host 3.3 1.6 6.6 7.1 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,919 3,919 0 726 1,922 1,271 2 0 50,000 0
bin-true no-host 789 1 2 3.5 8.5 151,904 10,764 2,978 14,785 72,396 64,723 3,008 3 50,000 0
configure.cpython no-host 13,461 2 65 14.8 34.5 1,750,831 35,399 28,954 93,081 869,763 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,689 3 63 21.6 39.6 2,705,397 37,471 66,342 119,749 1,291,873 1,293,775 32,527 42 132,684 1
configure.ocaml no-host 3,743 1 2 2.8 28.7 149,704 12,656 6,571 9,217 70,296 70,191 1,693 3 50,000 0
configure.tcc no-host 46 0 0 1.4 26.2 30,555 30,555 0 1,684 14,474 14,397 271 0 50,000 0
configure.yash no-host 1,708 1 2 2.7 33.4 143,480 11,508 6,625 7,171 70,526 65,783 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.6 117,238 65,801 42,008 4,980 54,600 57,658 277 3 84,016 1
hello-world no-host 3 0 0 0.3 7.1 3,918 3,918 0 725 1,922 1,271 2 0 50,000 0
bin-true no-host 806 1 2 3.5 9.2 151,904 10,768 2,982 14,785 72,396 64,723 3,008 3 50,000 0
configure.cpython no-host 13,414 1 68 14.9 34.5 1,750,830 36,458 28,959 93,080 869,763 787,987 25,789 61 50,000 0
configure.util-linux no-host 12,814 4 69 21.6 39.7 2,705,397 37,477 66,348 119,749 1,291,873 1,293,775 32,527 42 132,696 1
configure.ocaml no-host 3,769 1 2 2.8 28.5 149,704 12,661 6,576 9,217 70,296 70,191 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.2 30,555 30,555 0 1,684 14,474 14,397 271 0 50,000 0
configure.yash no-host 1,714 1 2 2.7 33.3 143,480 11,512 6,629 7,171 70,526 65,783 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 10.1 117,238 65,805 42,012 4,980 54,600 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 8 8 4.8 bash
15 no-host abuild-print-help 9 2 7 3.8 dash
23 no-host abuild-print-help 21 13 8 9.6 osh-native
31 no-host abuild-print-help 22 12 10 10.1 osh-nosouffle
39 no-host abuild-print-help 18 10 9 6.3 osh-static
1 no-host bin-true 614 301 349 3.3 bash
9 no-host bin-true 436 271 169 1.7 dash
17 no-host bin-true 789 306 499 8.5 osh-native
25 no-host bin-true 806 300 522 9.2 osh-nosouffle
33 no-host bin-true 650 315 350 5.1 osh-static
2 no-host configure.cpython 13,802 7,585 6,602 34.4 bash
10 no-host configure.cpython 13,678 7,519 6,557 34.5 dash
18 no-host configure.cpython 13,461 7,170 6,563 34.5 osh-native
26 no-host configure.cpython 13,414 7,183 6,515 34.5 osh-nosouffle
34 no-host configure.cpython 12,954 7,173 6,016 34.6 osh-static
4 no-host configure.ocaml 3,698 1,513 1,223 28.7 bash
12 no-host configure.ocaml 3,618 1,496 1,145 28.7 dash
20 no-host configure.ocaml 3,743 1,489 1,294 28.7 osh-native
28 no-host configure.ocaml 3,769 1,501 1,310 28.5 osh-nosouffle
36 no-host configure.ocaml 3,752 1,550 1,234 28.8 osh-static
5 no-host configure.tcc 48 28 20 26.2 bash
13 no-host configure.tcc 41 22 19 26.3 dash
21 no-host configure.tcc 46 29 18 26.2 osh-native
29 no-host configure.tcc 47 22 25 26.2 osh-nosouffle
37 no-host configure.tcc 44 24 20 26.2 osh-static
3 no-host configure.util-linux 12,891 6,759 6,606 39.6 bash
11 no-host configure.util-linux 13,153 6,533 7,108 39.6 dash
19 no-host configure.util-linux 12,689 6,257 6,659 39.6 osh-native
27 no-host configure.util-linux 12,814 6,386 6,657 39.7 osh-nosouffle
35 no-host configure.util-linux 12,488 6,323 6,392 39.6 osh-static
6 no-host configure.yash 1,686 932 761 33.2 bash
14 no-host configure.yash 1,623 907 717 33.3 dash
22 no-host configure.yash 1,708 932 778 33.4 osh-native
30 no-host configure.yash 1,714 964 753 33.3 osh-nosouffle
38 no-host configure.yash 1,720 974 749 33.4 osh-static
0 no-host hello-world 1 1 0 3.3 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 3 2 1 6.6 osh-native
24 no-host hello-world 3 1 2 7.1 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,398 0 0 0 8 0 41 2 bash
15 no-host abuild-print-help 1,158 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,330 0 0 0 16 0 38 1 osh-native
31 no-host abuild-print-help 3,436 0 0 0 16 0 39 1 osh-nosouffle
39 no-host abuild-print-help 2,832 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 101,483 0 0 0 8 0 1,997 54 bash
9 no-host bin-true 49,431 0 0 0 8 0 2,994 60 dash
17 no-host bin-true 132,260 0 0 0 16 0 1,998 92 osh-native
25 no-host bin-true 134,994 0 0 0 16 0 1,999 79 osh-nosouffle
33 no-host bin-true 112,066 0 0 0 8 0 1,997 69 osh-static
2 no-host configure.cpython 1,627,542 0 0 0 25,272 0 14,083 997 bash
10 no-host configure.cpython 1,637,834 0 0 0 25,272 0 14,110 1,048 dash
18 no-host configure.cpython 1,579,259 0 0 0 25,280 0 11,295 784 osh-native
26 no-host configure.cpython 1,598,472 0 0 0 25,280 0 11,298 851 osh-nosouffle
34 no-host configure.cpython 1,515,288 0 0 0 25,272 0 11,304 847 osh-static
4 no-host configure.ocaml 298,605 0 0 0 4,432 0 2,017 182 bash
12 no-host configure.ocaml 280,733 0 0 0 4,432 0 2,110 204 dash
20 no-host configure.ocaml 306,597 0 0 0 4,440 0 2,004 211 osh-native
28 no-host configure.ocaml 307,964 0 0 0 4,440 0 1,996 192 osh-nosouffle
36 no-host configure.ocaml 300,072 0 0 0 4,432 0 1,997 204 osh-static
5 no-host configure.tcc 5,270 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,216 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,566 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,686 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,119 0 0 0 88 0 44 2 osh-static
3 no-host configure.util-linux 1,542,346 0 0 0 35,936 0 19,003 1,074 bash
11 no-host configure.util-linux 1,704,963 2 0 0 35,936 0 17,071 1,236 dash
19 no-host configure.util-linux 1,516,564 0 0 0 35,952 0 16,150 1,006 osh-native
27 no-host configure.util-linux 1,511,624 0 0 0 35,944 0 16,172 917 osh-nosouffle
35 no-host configure.util-linux 1,480,104 1 0 0 35,936 0 16,176 1,127 osh-static
6 no-host configure.yash 173,617 0 0 0 3,616 0 878 226 bash
14 no-host configure.yash 159,513 0 0 0 3,616 0 1,000 108 dash
22 no-host configure.yash 176,494 0 0 0 3,624 0 859 103 osh-native
30 no-host configure.yash 177,118 0 0 0 3,624 0 858 105 osh-nosouffle
38 no-host configure.yash 172,804 0 0 0 3,616 0 855 95 osh-static
0 no-host hello-world 152 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 392 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 404 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-1efbbef0
osh-nosouffle osh-e11e0912
osh-static osh-static-346bef5b
host label host id
no-host no-host-9c670df1