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 21 18 1.29 1.16
bin-true no-host 617 441 800 806 648 1.30 1.05
configure.cpython no-host 13,889 13,975 13,552 13,613 13,054 0.98 0.94
configure.ocaml no-host 3,709 3,611 3,732 3,690 3,709 1.01 1.00
configure.tcc no-host 47 41 47 47 44 1.00 0.92
configure.util-linux no-host 12,627 13,377 12,651 12,637 12,220 1.00 0.97
configure.yash no-host 1,744 1,641 1,705 1,713 1,677 0.98 0.96
hello-world no-host 1 1 3 3 1 2.39 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,388 1,156 3,298 3,377 2,816 1.38 1.18
bin-true no-host 102,478 49,404 133,321 134,980 111,407 1.30 1.09
configure.cpython no-host 1,626,758 1,637,470 1,585,157 1,603,547 1,513,763 0.97 0.93
configure.ocaml no-host 298,766 280,584 306,415 306,757 299,999 1.03 1.00
configure.tcc no-host 5,252 4,200 5,557 5,632 5,116 1.06 0.97
configure.util-linux no-host 1,539,088 1,700,227 1,500,966 1,520,823 1,470,962 0.98 0.96
configure.yash no-host 173,251 159,551 176,546 177,031 172,747 1.02 1.00
hello-world no-host 153 85 392 403 185 2.56 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.8 3.9 9.4 9.8 6.3 1.95 1.30
bin-true no-host 3.1 1.6 8.8 9.2 5.4 2.79 1.71
configure.cpython no-host 34.3 34.8 34.5 34.5 34.3 1.01 1.00
configure.ocaml no-host 28.7 28.7 28.5 28.7 28.7 1.00 1.00
configure.tcc no-host 26.2 26.1 26.3 26.1 26.3 1.00 1.00
configure.util-linux no-host 39.6 39.7 39.7 39.7 39.6 1.00 1.00
configure.yash no-host 33.4 33.3 33.4 33.5 33.4 1.00 1.00
hello-world no-host 3.3 1.6 6.4 7.1 3.4 1.96 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.4 3,920 3,920 0 726 1,923 1,271 2 0 50,000 0
bin-true no-host 800 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,552 1 68 14.8 34.5 1,750,907 35,429 28,954 93,081 869,789 788,037 25,789 61 50,000 0
configure.util-linux no-host 12,651 3 67 21.6 39.7 2,705,473 37,501 66,342 119,749 1,291,899 1,293,825 32,527 42 132,684 1
configure.ocaml no-host 3,732 1 2 2.8 28.5 149,720 12,656 6,571 9,217 70,302 70,201 1,693 3 50,000 0
configure.tcc no-host 47 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,705 1 2 2.7 33.4 143,538 11,666 6,632 7,172 70,560 65,806 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 3.0 9.4 117,264 65,801 42,008 4,981 54,613 57,670 277 3 84,016 1
hello-world no-host 3 0 0 0.3 7.1 3,919 3,919 0 725 1,923 1,271 2 0 50,000 0
bin-true no-host 806 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,613 1 70 14.9 34.5 1,750,906 36,488 28,959 93,080 869,789 788,037 25,789 61 50,000 0
configure.util-linux no-host 12,637 3 67 21.6 39.7 2,705,473 37,507 66,348 119,749 1,291,899 1,293,825 32,527 42 132,696 1
configure.ocaml no-host 3,690 1 2 2.8 28.7 149,720 12,661 6,576 9,217 70,302 70,201 1,693 3 50,000 0
configure.tcc no-host 47 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,713 1 2 2.7 33.5 143,538 11,670 6,636 7,172 70,560 65,806 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.8 117,264 65,805 42,012 4,981 54,613 57,670 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 3 6 3.9 dash
23 no-host abuild-print-help 20 9 12 9.4 osh-native
31 no-host abuild-print-help 21 10 12 9.8 osh-nosouffle
39 no-host abuild-print-help 18 9 9 6.3 osh-static
1 no-host bin-true 617 309 346 3.1 bash
9 no-host bin-true 441 275 172 1.6 dash
17 no-host bin-true 800 296 518 8.8 osh-native
25 no-host bin-true 806 314 508 9.2 osh-nosouffle
33 no-host bin-true 648 319 345 5.4 osh-static
2 no-host configure.cpython 13,889 7,785 6,491 34.3 bash
10 no-host configure.cpython 13,975 7,676 6,707 34.8 dash
18 no-host configure.cpython 13,552 7,247 6,574 34.5 osh-native
26 no-host configure.cpython 13,613 7,229 6,676 34.5 osh-nosouffle
34 no-host configure.cpython 13,054 7,193 6,099 34.3 osh-static
4 no-host configure.ocaml 3,709 1,532 1,218 28.7 bash
12 no-host configure.ocaml 3,611 1,463 1,171 28.7 dash
20 no-host configure.ocaml 3,732 1,509 1,263 28.5 osh-native
28 no-host configure.ocaml 3,690 1,478 1,253 28.7 osh-nosouffle
36 no-host configure.ocaml 3,709 1,508 1,232 28.7 osh-static
5 no-host configure.tcc 47 26 22 26.2 bash
13 no-host configure.tcc 41 25 16 26.1 dash
21 no-host configure.tcc 47 25 22 26.3 osh-native
29 no-host configure.tcc 47 30 18 26.1 osh-nosouffle
37 no-host configure.tcc 44 23 21 26.3 osh-static
3 no-host configure.util-linux 12,627 6,662 6,423 39.6 bash
11 no-host configure.util-linux 13,377 6,587 7,279 39.7 dash
19 no-host configure.util-linux 12,651 6,371 6,508 39.7 osh-native
27 no-host configure.util-linux 12,637 6,310 6,554 39.7 osh-nosouffle
35 no-host configure.util-linux 12,220 6,305 6,134 39.6 osh-static
6 no-host configure.yash 1,744 980 773 33.4 bash
14 no-host configure.yash 1,641 942 701 33.3 dash
22 no-host configure.yash 1,705 971 736 33.4 osh-native
30 no-host configure.yash 1,713 963 753 33.5 osh-nosouffle
38 no-host configure.yash 1,677 935 742 33.4 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 1 2 6.4 osh-native
24 no-host hello-world 3 2 1 7.1 osh-nosouffle
32 no-host hello-world 1 1 0 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,388 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,298 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,377 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,816 0 0 0 8 0 39 1 osh-static
1 no-host bin-true 102,478 0 0 0 8 0 1,997 57 bash
9 no-host bin-true 49,404 0 0 0 8 0 2,989 61 dash
17 no-host bin-true 133,321 0 0 0 16 0 1,998 89 osh-native
25 no-host bin-true 134,980 0 0 0 16 0 1,997 74 osh-nosouffle
33 no-host bin-true 111,407 0 0 0 8 0 1,996 53 osh-static
2 no-host configure.cpython 1,626,758 0 0 0 25,272 0 14,084 1,105 bash
10 no-host configure.cpython 1,637,470 0 0 0 25,272 0 14,126 988 dash
18 no-host configure.cpython 1,585,157 1 0 0 25,280 0 11,304 828 osh-native
26 no-host configure.cpython 1,603,547 0 0 0 25,280 0 11,293 839 osh-nosouffle
34 no-host configure.cpython 1,513,763 1 0 0 25,272 0 11,289 806 osh-static
4 no-host configure.ocaml 298,766 0 0 0 4,432 0 2,014 180 bash
12 no-host configure.ocaml 280,584 0 0 0 4,432 0 2,105 206 dash
20 no-host configure.ocaml 306,415 0 0 0 4,440 0 1,996 251 osh-native
28 no-host configure.ocaml 306,757 0 0 0 4,440 0 1,998 186 osh-nosouffle
36 no-host configure.ocaml 299,999 0 0 0 4,432 0 1,999 210 osh-static
5 no-host configure.tcc 5,252 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,200 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,557 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,632 0 0 0 96 0 45 1 osh-nosouffle
37 no-host configure.tcc 5,116 0 0 0 88 0 45 4 osh-static
3 no-host configure.util-linux 1,539,088 0 0 8 35,936 0 18,987 985 bash
11 no-host configure.util-linux 1,700,227 0 0 0 35,936 0 17,142 1,230 dash
19 no-host configure.util-linux 1,500,966 0 0 0 35,952 0 16,131 920 osh-native
27 no-host configure.util-linux 1,520,823 3 0 0 35,944 0 16,213 944 osh-nosouffle
35 no-host configure.util-linux 1,470,962 3 0 0 35,936 0 16,223 944 osh-static
6 no-host configure.yash 173,251 0 0 0 3,616 0 879 97 bash
14 no-host configure.yash 159,551 0 0 0 3,616 0 1,002 99 dash
22 no-host configure.yash 176,546 0 0 0 3,632 0 854 107 osh-native
30 no-host configure.yash 177,031 0 0 0 3,624 0 859 156 osh-nosouffle
38 no-host configure.yash 172,747 0 0 0 3,616 0 857 106 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 392 0 0 0 16 0 1 0 osh-native
24 no-host hello-world 403 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 185 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-5e113690
osh-nosouffle osh-13dbbba4
osh-static osh-static-59029287
host label host id
no-host no-host-bba74091