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.28 1.15
bin-true no-host 616 440 802 811 649 1.30 1.05
configure.cpython no-host 13,755 13,705 13,364 13,481 12,890 0.97 0.94
configure.ocaml no-host 3,670 3,604 3,682 3,683 3,645 1.00 0.99
configure.tcc no-host 46 41 47 47 42 1.02 0.92
configure.util-linux no-host 12,351 13,246 12,469 12,438 12,037 1.01 0.97
configure.yash no-host 1,705 1,614 1,723 1,695 1,665 1.01 0.98
hello-world no-host 1 1 3 3 1 2.42 1.02

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,380 1,165 3,321 3,434 2,805 1.40 1.18
bin-true no-host 101,413 49,439 136,598 136,605 111,334 1.35 1.10
configure.cpython no-host 1,621,774 1,640,117 1,597,571 1,612,196 1,521,787 0.99 0.94
configure.ocaml no-host 299,234 280,615 306,277 307,320 299,826 1.02 1.00
configure.tcc no-host 5,195 4,187 5,615 5,694 5,114 1.08 0.98
configure.util-linux no-host 1,536,725 1,698,609 1,510,365 1,502,573 1,449,924 0.98 0.94
configure.yash no-host 173,470 159,515 176,850 177,397 172,644 1.02 1.00
hello-world no-host 153 83 394 399 181 2.58 1.18

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 4.1 9.4 10.0 6.4 2.00 1.36
bin-true no-host 3.4 1.7 8.8 9.2 5.4 2.58 1.58
configure.cpython no-host 34.5 34.4 34.7 34.5 34.4 1.00 1.00
configure.ocaml no-host 28.8 28.5 28.7 28.5 28.7 1.00 1.00
configure.tcc no-host 26.3 26.1 26.3 26.1 26.2 1.00 0.99
configure.util-linux no-host 39.9 39.7 39.6 39.9 39.5 0.99 0.99
configure.yash no-host 33.2 33.1 33.2 33.4 33.4 1.00 1.00
hello-world no-host 3.1 1.6 6.6 7.1 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,896 3,896 0 716 1,916 1,264 2 0 50,000 0
bin-true no-host 802 1 2 3.5 8.8 152,882 11,691 2,964 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 13,364 1 65 14.8 34.7 1,753,364 36,445 28,935 93,071 872,316 787,977 25,789 61 50,000 0
configure.util-linux no-host 12,469 3 64 21.6 39.6 2,709,910 37,457 66,323 119,739 1,296,433 1,293,738 32,527 42 132,646 1
configure.ocaml no-host 3,682 1 2 2.8 28.7 149,932 12,652 6,557 9,207 70,540 70,185 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.3 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,723 1 2 2.7 33.2 143,754 11,764 6,618 7,160 70,813 65,781 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 3.0 9.4 117,252 65,784 41,994 4,969 54,632 57,651 277 3 83,988 1
hello-world no-host 3 0 0 0.3 7.1 3,895 3,895 0 715 1,916 1,264 2 0 50,000 0
bin-true no-host 811 1 2 3.5 9.2 152,882 11,695 2,968 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 13,481 1 65 14.9 34.5 1,753,363 36,450 28,940 93,070 872,316 787,977 25,789 61 50,000 0
configure.util-linux no-host 12,438 3 63 21.6 39.9 2,709,910 37,463 66,329 119,739 1,296,433 1,293,738 32,527 42 132,658 1
configure.ocaml no-host 3,683 1 2 2.8 28.5 149,932 12,657 6,562 9,207 70,540 70,185 1,693 3 50,000 0
configure.tcc no-host 47 0 0 1.4 26.1 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,695 1 2 2.7 33.4 143,754 11,768 6,622 7,160 70,813 65,781 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 10.0 117,252 65,788 41,998 4,969 54,632 57,651 277 3 83,996 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 7 4.7 bash
15 no-host abuild-print-help 9 5 4 4.1 dash
23 no-host abuild-print-help 20 10 10 9.4 osh-native
31 no-host abuild-print-help 21 9 13 10.0 osh-nosouffle
39 no-host abuild-print-help 18 11 8 6.4 osh-static
1 no-host bin-true 616 306 347 3.4 bash
9 no-host bin-true 440 281 166 1.7 dash
17 no-host bin-true 802 308 512 8.8 osh-native
25 no-host bin-true 811 309 519 9.2 osh-nosouffle
33 no-host bin-true 649 311 357 5.4 osh-static
2 no-host configure.cpython 13,755 7,541 6,596 34.5 bash
10 no-host configure.cpython 13,705 7,569 6,533 34.4 dash
18 no-host configure.cpython 13,364 7,143 6,493 34.7 osh-native
26 no-host configure.cpython 13,481 7,122 6,645 34.5 osh-nosouffle
34 no-host configure.cpython 12,890 7,181 5,943 34.4 osh-static
4 no-host configure.ocaml 3,670 1,465 1,246 28.8 bash
12 no-host configure.ocaml 3,604 1,431 1,199 28.5 dash
20 no-host configure.ocaml 3,682 1,470 1,250 28.7 osh-native
28 no-host configure.ocaml 3,683 1,464 1,260 28.5 osh-nosouffle
36 no-host configure.ocaml 3,645 1,476 1,200 28.7 osh-static
5 no-host configure.tcc 46 27 20 26.3 bash
13 no-host configure.tcc 41 24 17 26.1 dash
21 no-host configure.tcc 47 21 26 26.3 osh-native
29 no-host configure.tcc 47 26 22 26.1 osh-nosouffle
37 no-host configure.tcc 42 26 17 26.2 osh-static
3 no-host configure.util-linux 12,351 6,603 6,209 39.9 bash
11 no-host configure.util-linux 13,246 6,527 7,206 39.7 dash
19 no-host configure.util-linux 12,469 6,243 6,451 39.6 osh-native
27 no-host configure.util-linux 12,438 6,267 6,396 39.9 osh-nosouffle
35 no-host configure.util-linux 12,037 6,214 6,040 39.5 osh-static
6 no-host configure.yash 1,705 968 745 33.2 bash
14 no-host configure.yash 1,614 908 709 33.1 dash
22 no-host configure.yash 1,723 954 770 33.2 osh-native
30 no-host configure.yash 1,695 922 776 33.4 osh-nosouffle
38 no-host configure.yash 1,665 942 725 33.4 osh-static
0 no-host hello-world 1 1 0 3.1 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 3 2 1 6.6 osh-native
24 no-host hello-world 3 1 1 7.1 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,380 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,165 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,321 0 0 0 16 0 39 1 osh-native
31 no-host abuild-print-help 3,434 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,805 0 0 0 8 0 39 1 osh-static
1 no-host bin-true 101,413 0 0 0 8 0 1,994 61 bash
9 no-host bin-true 49,439 0 0 0 8 0 2,998 41 dash
17 no-host bin-true 136,598 0 0 0 16 0 1,998 81 osh-native
25 no-host bin-true 136,605 0 0 0 16 0 1,998 58 osh-nosouffle
33 no-host bin-true 111,334 0 0 0 8 0 1,998 62 osh-static
2 no-host configure.cpython 1,621,774 0 0 0 25,296 0 14,058 1,066 bash
10 no-host configure.cpython 1,640,117 0 0 0 25,272 0 14,103 1,049 dash
18 no-host configure.cpython 1,597,571 0 0 0 25,280 0 11,296 947 osh-native
26 no-host configure.cpython 1,612,196 0 0 0 25,280 0 11,301 828 osh-nosouffle
34 no-host configure.cpython 1,521,787 1 0 0 25,272 0 11,308 964 osh-static
4 no-host configure.ocaml 299,234 0 0 0 4,432 0 2,014 179 bash
12 no-host configure.ocaml 280,615 0 0 0 4,432 0 2,107 179 dash
20 no-host configure.ocaml 306,277 0 0 8 4,440 0 1,999 235 osh-native
28 no-host configure.ocaml 307,320 0 0 0 4,440 0 1,998 183 osh-nosouffle
36 no-host configure.ocaml 299,826 0 0 0 4,432 0 1,998 232 osh-static
5 no-host configure.tcc 5,195 0 0 0 80 0 48 1 bash
13 no-host configure.tcc 4,187 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 5,615 0 0 0 96 0 45 2 osh-native
29 no-host configure.tcc 5,694 0 0 0 96 0 45 2 osh-nosouffle
37 no-host configure.tcc 5,114 0 0 0 88 0 45 3 osh-static
3 no-host configure.util-linux 1,536,725 1 0 0 35,944 0 18,984 995 bash
11 no-host configure.util-linux 1,698,609 0 0 0 35,936 0 17,136 1,253 dash
19 no-host configure.util-linux 1,510,365 1 0 0 35,960 0 16,139 915 osh-native
27 no-host configure.util-linux 1,502,573 0 0 0 35,952 0 16,206 932 osh-nosouffle
35 no-host configure.util-linux 1,449,924 2 0 0 35,944 0 16,120 871 osh-static
6 no-host configure.yash 173,470 0 0 0 3,616 0 878 98 bash
14 no-host configure.yash 159,515 0 0 0 3,616 0 1,002 99 dash
22 no-host configure.yash 176,850 0 0 0 3,624 0 860 101 osh-native
30 no-host configure.yash 177,397 0 0 0 3,624 0 858 102 osh-nosouffle
38 no-host configure.yash 172,644 0 0 0 3,616 0 857 102 osh-static
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 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 399 0 0 0 16 0 1 0 osh-nosouffle
32 no-host hello-world 181 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-a62b99c1
osh-nosouffle osh-e65a23f5
osh-static osh-static-f5465dd6
host label host id
no-host no-host-9c670df1