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 22 19 1.29 1.22
bin-true no-host 633 455 806 825 664 1.27 1.05
configure.cpython no-host 14,400 14,475 14,032 14,209 13,646 0.97 0.95
configure.ocaml no-host 3,754 3,777 3,771 3,791 3,811 1.00 1.02
configure.tcc no-host 46 42 48 48 45 1.04 0.99
configure.util-linux no-host 13,098 13,942 13,065 13,292 12,869 1.00 0.98
configure.yash no-host 1,782 1,742 1,729 1,788 1,743 0.97 0.98
hello-world no-host 1 1 3 3 1 2.40 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,389 1,166 3,313 3,395 2,833 1.39 1.19
bin-true no-host 101,417 49,466 130,250 134,027 112,085 1.28 1.11
configure.cpython no-host 1,621,757 1,631,853 1,592,596 1,602,245 1,517,447 0.98 0.94
configure.ocaml no-host 299,325 280,626 305,520 307,426 300,145 1.02 1.00
configure.tcc no-host 5,206 4,218 5,590 5,661 5,118 1.07 0.98
configure.util-linux no-host 1,531,251 1,697,830 1,506,851 1,519,834 1,480,150 0.98 0.97
configure.yash no-host 173,337 159,483 176,505 177,043 172,750 1.02 1.00
hello-world no-host 151 84 394 400 183 2.61 1.21

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.3 2.00 1.33
bin-true no-host 3.1 1.6 8.5 9.3 5.2 2.71 1.67
configure.cpython no-host 34.5 34.5 34.6 34.5 34.5 1.00 1.00
configure.ocaml no-host 28.8 28.7 28.6 28.7 28.8 1.00 1.00
configure.tcc no-host 26.2 26.2 26.3 26.2 26.0 1.00 0.99
configure.util-linux no-host 39.5 39.6 39.7 39.7 39.7 1.01 1.01
configure.yash no-host 33.3 33.2 33.4 33.4 33.4 1.00 1.00
hello-world no-host 3.1 1.4 6.6 6.9 3.4 2.08 1.08

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 806 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 14,032 1 68 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,065 3 69 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,771 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 48 0 0 1.4 26.3 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,729 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 20 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 825 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 14,209 1 70 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,292 3 68 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,791 1 2 2.8 28.7 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.2 30,556 30,556 0 1,684 14,475 14,397 271 0 50,000 0
configure.yash no-host 1,788 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 8 8 4.7 bash
15 no-host abuild-print-help 9 5 5 3.9 dash
23 no-host abuild-print-help 20 10 11 9.4 osh-native
31 no-host abuild-print-help 22 12 11 10.0 osh-nosouffle
39 no-host abuild-print-help 19 14 6 6.3 osh-static
1 no-host bin-true 633 324 348 3.1 bash
9 no-host bin-true 455 279 184 1.6 dash
17 no-host bin-true 806 309 514 8.5 osh-native
25 no-host bin-true 825 298 543 9.3 osh-nosouffle
33 no-host bin-true 664 322 359 5.2 osh-static
2 no-host configure.cpython 14,400 7,890 6,909 34.5 bash
10 no-host configure.cpython 14,475 7,773 7,116 34.5 dash
18 no-host configure.cpython 14,032 7,475 6,840 34.6 osh-native
26 no-host configure.cpython 14,209 7,511 6,998 34.5 osh-nosouffle
34 no-host configure.cpython 13,646 7,517 6,379 34.5 osh-static
4 no-host configure.ocaml 3,754 1,550 1,246 28.8 bash
12 no-host configure.ocaml 3,777 1,550 1,251 28.7 dash
20 no-host configure.ocaml 3,771 1,504 1,307 28.6 osh-native
28 no-host configure.ocaml 3,791 1,508 1,324 28.7 osh-nosouffle
36 no-host configure.ocaml 3,811 1,530 1,312 28.8 osh-static
5 no-host configure.tcc 46 23 24 26.2 bash
13 no-host configure.tcc 42 23 19 26.2 dash
21 no-host configure.tcc 48 28 21 26.3 osh-native
29 no-host configure.tcc 48 24 24 26.2 osh-nosouffle
37 no-host configure.tcc 45 26 20 26.0 osh-static
3 no-host configure.util-linux 13,098 6,763 6,817 39.5 bash
11 no-host configure.util-linux 13,942 6,755 7,706 39.6 dash
19 no-host configure.util-linux 13,065 6,386 6,912 39.7 osh-native
27 no-host configure.util-linux 13,292 6,444 7,091 39.7 osh-nosouffle
35 no-host configure.util-linux 12,869 6,451 6,652 39.7 osh-static
6 no-host configure.yash 1,782 970 820 33.3 bash
14 no-host configure.yash 1,742 980 763 33.2 dash
22 no-host configure.yash 1,729 950 782 33.4 osh-native
30 no-host configure.yash 1,788 944 846 33.4 osh-nosouffle
38 no-host configure.yash 1,743 938 807 33.4 osh-static
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 0 1 1.4 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.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,166 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,313 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,395 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,833 0 0 0 8 0 39 1 osh-static
1 no-host bin-true 101,417 0 0 0 8 0 1,996 74 bash
9 no-host bin-true 49,466 0 0 0 8 0 2,996 52 dash
17 no-host bin-true 130,250 0 0 0 16 0 1,997 85 osh-native
25 no-host bin-true 134,027 0 0 0 16 0 1,994 85 osh-nosouffle
33 no-host bin-true 112,085 0 0 0 8 0 1,998 71 osh-static
2 no-host configure.cpython 1,621,757 0 0 0 25,272 0 14,072 1,030 bash
10 no-host configure.cpython 1,631,853 1 0 0 25,272 0 14,134 1,092 dash
18 no-host configure.cpython 1,592,596 0 0 0 25,280 0 11,279 849 osh-native
26 no-host configure.cpython 1,602,245 0 0 0 25,280 0 11,298 846 osh-nosouffle
34 no-host configure.cpython 1,517,447 1 0 0 25,272 0 11,311 821 osh-static
4 no-host configure.ocaml 299,325 0 0 0 4,432 0 2,011 188 bash
12 no-host configure.ocaml 280,626 0 0 0 4,432 0 2,109 216 dash
20 no-host configure.ocaml 305,520 0 0 0 4,440 0 1,996 225 osh-native
28 no-host configure.ocaml 307,426 0 0 0 4,440 0 2,000 212 osh-nosouffle
36 no-host configure.ocaml 300,145 0 0 0 4,432 0 1,995 239 osh-static
5 no-host configure.tcc 5,206 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,218 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,590 0 0 0 96 0 45 1 osh-native
29 no-host configure.tcc 5,661 0 0 0 96 0 45 3 osh-nosouffle
37 no-host configure.tcc 5,118 0 0 0 88 0 45 1 osh-static
3 no-host configure.util-linux 1,531,251 2 0 0 35,936 0 18,968 1,122 bash
11 no-host configure.util-linux 1,697,830 2 0 0 35,936 0 17,159 1,231 dash
19 no-host configure.util-linux 1,506,851 0 0 0 35,952 0 16,121 1,043 osh-native
27 no-host configure.util-linux 1,519,834 4 0 8 35,944 0 16,229 937 osh-nosouffle
35 no-host configure.util-linux 1,480,150 4 0 0 35,936 0 16,105 949 osh-static
6 no-host configure.yash 173,337 0 0 0 3,616 0 879 95 bash
14 no-host configure.yash 159,483 0 0 0 3,616 0 997 100 dash
22 no-host configure.yash 176,505 0 0 0 3,624 0 858 92 osh-native
30 no-host configure.yash 177,043 0 0 0 3,624 0 856 95 osh-nosouffle
38 no-host configure.yash 172,750 0 0 0 3,616 0 853 94 osh-static
0 no-host hello-world 151 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 394 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-654cb8cd
osh-nosouffle osh-4a5bd470
osh-static osh-static-2f7fab13
host label host id
no-host no-host-bba74091