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.30 1.14
bin-true no-host 620 447 824 827 661 1.33 1.07
configure.cpython no-host 13,921 13,960 13,768 13,644 13,098 0.99 0.94
configure.ocaml no-host 3,680 3,628 3,731 3,752 3,687 1.01 1.00
configure.tcc no-host 46 41 47 47 43 1.03 0.95
configure.util-linux no-host 12,689 13,395 12,567 12,658 12,222 0.99 0.96
configure.yash no-host 1,709 1,656 1,718 1,713 1,688 1.01 0.99
hello-world no-host 1 1 3 3 1 2.31 0.99

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,399 1,197 3,350 3,404 2,797 1.40 1.17
bin-true no-host 100,440 49,383 134,487 137,566 110,333 1.34 1.10
configure.cpython no-host 1,622,757 1,639,605 1,596,083 1,603,777 1,521,973 0.98 0.94
configure.ocaml no-host 298,715 280,739 305,570 306,715 299,795 1.02 1.00
configure.tcc no-host 5,214 4,204 5,597 5,672 5,120 1.07 0.98
configure.util-linux no-host 1,536,933 1,699,775 1,496,745 1,509,670 1,450,528 0.97 0.94
configure.yash no-host 173,199 159,531 176,696 177,140 172,741 1.02 1.00
hello-world no-host 150 84 392 396 180 2.61 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.9 9.3 10.0 6.4 1.92 1.32
bin-true no-host 3.3 1.6 8.5 9.2 5.1 2.60 1.56
configure.cpython no-host 34.5 34.5 34.5 34.4 34.7 1.00 1.00
configure.ocaml no-host 28.7 28.7 28.7 28.6 28.6 1.00 1.00
configure.tcc no-host 26.3 26.0 26.3 26.2 26.4 1.00 1.00
configure.util-linux no-host 39.9 39.5 39.9 39.6 39.6 1.00 0.99
configure.yash no-host 33.3 33.4 33.4 33.3 33.3 1.00 1.00
hello-world no-host 3.1 1.6 6.6 6.9 3.3 2.08 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.6 3,896 3,896 0 716 1,916 1,264 2 0 50,000 0
bin-true no-host 824 1 2 3.5 8.5 152,882 11,691 2,964 14,775 73,391 64,716 3,008 3 50,000 0
configure.cpython no-host 13,768 1 67 14.8 34.5 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,567 3 66 21.6 39.9 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,731 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,718 1 2 2.7 33.4 143,736 11,764 6,618 7,160 70,796 65,780 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 3.0 9.3 117,251 65,784 41,994 4,969 54,631 57,651 277 3 83,988 1
hello-world no-host 3 0 0 0.3 6.9 3,895 3,895 0 715 1,916 1,264 2 0 50,000 0
bin-true no-host 827 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,644 1 68 14.9 34.4 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,658 3 66 21.6 39.6 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,752 1 2 2.8 28.6 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.2 30,574 30,574 0 1,674 14,510 14,390 271 0 50,000 0
configure.yash no-host 1,713 1 2 2.7 33.3 143,736 11,768 6,622 7,160 70,796 65,780 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 3.0 10.0 117,251 65,788 41,998 4,969 54,631 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 8 4.8 bash
15 no-host abuild-print-help 9 3 7 3.9 dash
23 no-host abuild-print-help 21 6 16 9.3 osh-native
31 no-host abuild-print-help 22 14 9 10.0 osh-nosouffle
39 no-host abuild-print-help 18 12 6 6.4 osh-static
1 no-host bin-true 620 329 333 3.3 bash
9 no-host bin-true 447 275 178 1.6 dash
17 no-host bin-true 824 301 541 8.5 osh-native
25 no-host bin-true 827 311 532 9.2 osh-nosouffle
33 no-host bin-true 661 333 344 5.1 osh-static
2 no-host configure.cpython 13,921 7,619 6,703 34.5 bash
10 no-host configure.cpython 13,960 7,691 6,682 34.5 dash
18 no-host configure.cpython 13,768 7,263 6,591 34.5 osh-native
26 no-host configure.cpython 13,644 7,347 6,589 34.4 osh-nosouffle
34 no-host configure.cpython 13,098 7,216 6,124 34.7 osh-static
4 no-host configure.ocaml 3,680 1,456 1,265 28.7 bash
12 no-host configure.ocaml 3,628 1,480 1,174 28.7 dash
20 no-host configure.ocaml 3,731 1,491 1,281 28.7 osh-native
28 no-host configure.ocaml 3,752 1,473 1,319 28.6 osh-nosouffle
36 no-host configure.ocaml 3,687 1,489 1,230 28.6 osh-static
5 no-host configure.tcc 46 20 26 26.3 bash
13 no-host configure.tcc 41 23 19 26.0 dash
21 no-host configure.tcc 47 24 24 26.3 osh-native
29 no-host configure.tcc 47 28 20 26.2 osh-nosouffle
37 no-host configure.tcc 43 19 25 26.4 osh-static
3 no-host configure.util-linux 12,689 6,693 6,476 39.9 bash
11 no-host configure.util-linux 13,395 6,524 7,374 39.5 dash
19 no-host configure.util-linux 12,567 6,207 6,588 39.9 osh-native
27 no-host configure.util-linux 12,658 6,327 6,563 39.6 osh-nosouffle
35 no-host configure.util-linux 12,222 6,240 6,205 39.6 osh-static
6 no-host configure.yash 1,709 966 752 33.3 bash
14 no-host configure.yash 1,656 930 728 33.4 dash
22 no-host configure.yash 1,718 948 773 33.4 osh-native
30 no-host configure.yash 1,713 956 761 33.3 osh-nosouffle
38 no-host configure.yash 1,688 955 735 33.3 osh-static
0 no-host hello-world 1 1 1 3.1 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 3 0 3 6.6 osh-native
24 no-host hello-world 3 0 3 6.9 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,399 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,197 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 3,350 0 0 0 16 0 39 0 osh-native
31 no-host abuild-print-help 3,404 0 0 0 16 0 39 0 osh-nosouffle
39 no-host abuild-print-help 2,797 0 0 0 8 0 39 0 osh-static
1 no-host bin-true 100,440 0 0 0 8 0 1,998 56 bash
9 no-host bin-true 49,383 0 0 0 8 0 2,998 51 dash
17 no-host bin-true 134,487 0 0 0 16 0 1,996 88 osh-native
25 no-host bin-true 137,566 0 0 0 16 0 1,998 80 osh-nosouffle
33 no-host bin-true 110,333 0 0 0 8 0 1,999 82 osh-static
2 no-host configure.cpython 1,622,757 0 0 0 25,272 0 14,080 1,040 bash
10 no-host configure.cpython 1,639,605 0 0 0 25,272 0 14,119 1,036 dash
18 no-host configure.cpython 1,596,083 0 0 0 25,280 0 11,304 891 osh-native
26 no-host configure.cpython 1,603,777 0 0 0 25,280 0 11,304 825 osh-nosouffle
34 no-host configure.cpython 1,521,973 0 0 0 25,272 0 11,297 871 osh-static
4 no-host configure.ocaml 298,715 0 0 0 4,432 0 2,020 205 bash
12 no-host configure.ocaml 280,739 0 0 0 4,432 0 2,106 197 dash
20 no-host configure.ocaml 305,570 0 0 0 4,440 0 2,003 222 osh-native
28 no-host configure.ocaml 306,715 0 0 0 4,440 0 2,002 301 osh-nosouffle
36 no-host configure.ocaml 299,795 0 0 0 4,432 0 2,001 240 osh-static
5 no-host configure.tcc 5,214 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,204 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 5,597 0 0 0 96 0 45 3 osh-native
29 no-host configure.tcc 5,672 0 0 0 96 0 45 4 osh-nosouffle
37 no-host configure.tcc 5,120 0 0 0 88 0 45 3 osh-static
3 no-host configure.util-linux 1,536,933 0 0 0 35,944 0 18,954 1,020 bash
11 no-host configure.util-linux 1,699,775 2 0 0 35,936 0 17,068 1,206 dash
19 no-host configure.util-linux 1,496,745 3 0 0 35,952 0 16,222 932 osh-native
27 no-host configure.util-linux 1,509,670 1 0 0 35,944 0 16,153 907 osh-nosouffle
35 no-host configure.util-linux 1,450,528 1 0 0 35,944 0 16,212 910 osh-static
6 no-host configure.yash 173,199 0 0 0 3,616 0 875 94 bash
14 no-host configure.yash 159,531 0 0 0 3,624 0 1,003 94 dash
22 no-host configure.yash 176,696 0 0 8 3,624 0 859 101 osh-native
30 no-host configure.yash 177,140 0 0 0 3,624 0 857 97 osh-nosouffle
38 no-host configure.yash 172,741 0 0 0 3,616 0 858 105 osh-static
0 no-host hello-world 150 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 392 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 180 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-5a7855bf
osh-nosouffle osh-aa63a574
osh-static osh-static-efc13e97
host label host id
no-host no-host-9c670df1