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-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 19 9 454 21 21 24.24 1.14
bin-true no-host 670 535 2,272 813 799 3.39 1.21
configure.cpython no-host 14,722 14,799 28,149 14,985 15,028 1.91 1.02
configure.ocaml no-host 3,732 3,688 4,575 3,768 3,781 1.23 1.01
configure.tcc no-host 47 41 195 49 48 4.16 1.04
configure.util-linux no-host 13,744 14,655 30,709 14,113 14,091 2.23 1.03
configure.yash no-host 1,779 1,733 2,409 1,805 1,794 1.35 1.01
hello-world no-host 1 1 49 3 3 33.41 1.94

Minor Page Faults

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 2,507 1,095 23,366 3,131 3,149 9.32 1.25
bin-true no-host 104,363 66,467 772,036 125,753 127,829 7.40 1.20
configure.cpython no-host 2,222,887 2,242,458 6,224,117 2,227,779 2,212,031 2.80 1.00
configure.ocaml no-host 410,744 391,114 645,576 413,272 412,490 1.57 1.01
configure.tcc no-host 6,550 5,470 23,712 6,972 6,924 3.62 1.06
configure.util-linux no-host 2,102,946 2,262,768 5,368,591 1,999,073 1,991,029 2.55 0.95
configure.yash no-host 256,467 243,990 386,723 258,375 257,613 1.51 1.01
hello-world no-host 153 78 3,748 351 345 24.50 2.29

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-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 4.3 3.4 22.0 8.9 8.7 5.09 2.06
bin-true no-host 2.9 1.6 17.7 8.1 7.7 6.14 2.82
configure.cpython no-host 27.5 27.4 27.3 27.3 27.1 0.99 0.99
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.4 1.00 1.00
configure.tcc no-host 19.4 19.3 19.4 19.3 19.4 1.00 0.99
configure.util-linux no-host 30.0 30.1 30.0 30.1 30.1 1.00 1.00
configure.yash no-host 24.4 24.2 24.4 24.4 24.4 1.00 1.00
hello-world no-host 2.9 1.3 17.4 6.0 5.9 6.02 2.09

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.2 6.0 3,780 3,780 0 695 1,857 1,228 2 0 50,000 0
bin-true no-host 813 1 2 2.6 8.1 154,745 13,282 2,884 9,745 78,326 66,674 3,008 3 50,000 0
configure.cpython no-host 14,985 1 60 15.0 27.3 1,772,727 49,861 28,594 86,398 908,078 778,251 22,694 60 50,000 0
configure.util-linux no-host 14,113 3 58 21.3 30.1 2,703,495 29,153 65,897 109,676 1,320,584 1,273,235 27,391 41 131,794 1
configure.ocaml no-host 3,768 1 2 2.6 20.6 150,101 11,058 5,228 7,532 71,611 70,958 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,586 30,586 0 1,521 14,781 14,284 226 0 50,000 0
configure.yash no-host 1,805 1 2 2.6 24.4 139,754 8,027 6,686 6,337 70,286 63,131 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.9 116,329 64,537 42,747 4,572 54,526 57,231 270 3 85,494 1
hello-world no-host 3 0 0 0.2 5.9 3,779 3,779 0 696 1,857 1,226 2 0 50,000 0
bin-true no-host 799 1 2 2.6 7.7 154,744 13,070 2,822 9,746 78,326 66,672 3,008 3 50,000 0
configure.cpython no-host 15,028 1 61 14.9 27.1 1,772,726 49,112 28,532 86,399 908,078 778,249 22,694 60 50,000 0
configure.util-linux no-host 14,091 3 59 21.3 30.1 2,703,495 42,748 65,835 109,678 1,320,584 1,273,233 27,391 41 131,670 1
configure.ocaml no-host 3,781 1 2 2.6 20.4 150,101 10,996 5,166 7,534 71,611 70,956 1,448 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,586 30,586 0 1,523 14,781 14,282 226 0 50,000 0
configure.yash no-host 1,794 1 2 2.6 24.4 139,754 7,965 6,624 6,339 70,286 63,129 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,328 64,475 42,685 4,573 54,526 57,229 270 3 85,370 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 19 14 5 4.3 bash
15 no-host abuild-print-help 9 4 5 3.4 dash
23 no-host abuild-print-help 454 422 35 22.0 osh-cpython
31 no-host abuild-print-help 21 15 7 8.9 osh-native
39 no-host abuild-print-help 21 17 5 8.7 osh-native-souffle
1 no-host bin-true 670 500 198 2.9 bash
9 no-host bin-true 535 414 130 1.6 dash
17 no-host bin-true 2,272 1,490 1,043 17.7 osh-cpython
25 no-host bin-true 813 569 257 8.1 osh-native
33 no-host bin-true 799 557 259 7.7 osh-native-souffle
2 no-host configure.cpython 14,722 9,054 6,062 27.5 bash
10 no-host configure.cpython 14,799 9,025 6,187 27.4 dash
18 no-host configure.cpython 28,149 16,976 12,999 27.3 osh-cpython
26 no-host configure.cpython 14,985 8,909 6,343 27.3 osh-native
34 no-host configure.cpython 15,028 8,855 6,358 27.1 osh-native-souffle
4 no-host configure.ocaml 3,732 1,633 1,136 20.6 bash
12 no-host configure.ocaml 3,688 1,538 1,168 20.6 dash
20 no-host configure.ocaml 4,575 2,184 1,600 20.6 osh-cpython
28 no-host configure.ocaml 3,768 1,533 1,273 20.6 osh-native
36 no-host configure.ocaml 3,781 1,599 1,218 20.4 osh-native-souffle
5 no-host configure.tcc 47 29 18 19.4 bash
13 no-host configure.tcc 41 27 15 19.3 dash
21 no-host configure.tcc 195 151 47 19.4 osh-cpython
29 no-host configure.tcc 49 31 18 19.3 osh-native
37 no-host configure.tcc 48 30 18 19.4 osh-native-souffle
3 no-host configure.util-linux 13,744 8,910 5,302 30.0 bash
11 no-host configure.util-linux 14,655 9,172 5,985 30.1 dash
19 no-host configure.util-linux 30,709 20,716 11,067 30.0 osh-cpython
27 no-host configure.util-linux 14,113 8,597 5,717 30.1 osh-native
35 no-host configure.util-linux 14,091 8,483 5,799 30.1 osh-native-souffle
6 no-host configure.yash 1,779 1,047 741 24.4 bash
14 no-host configure.yash 1,733 1,054 682 24.2 dash
22 no-host configure.yash 2,409 1,500 951 24.4 osh-cpython
30 no-host configure.yash 1,805 1,015 793 24.4 osh-native
38 no-host configure.yash 1,794 1,071 726 24.4 osh-native-souffle
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 1 0 1.3 dash
16 no-host hello-world 49 18 31 17.4 osh-cpython
24 no-host hello-world 3 3 0 6.0 osh-native
32 no-host hello-world 3 3 0 5.9 osh-native-souffle

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,507 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,095 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,366 0 0 0 8 0 45 12 osh-cpython
31 no-host abuild-print-help 3,131 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,149 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 104,363 0 0 0 8 0 1,990 56 bash
9 no-host bin-true 66,467 0 0 0 8 0 1,986 33 dash
17 no-host bin-true 772,036 0 0 0 8 0 1,998 242 osh-cpython
25 no-host bin-true 125,753 0 0 0 16 0 1,992 191 osh-native
33 no-host bin-true 127,829 0 0 0 16 0 1,992 56 osh-native-souffle
2 no-host configure.cpython 2,222,887 0 0 0 32,928 0 14,536 1,164 bash
10 no-host configure.cpython 2,242,458 0 0 0 32,992 0 14,544 1,039 dash
18 no-host configure.cpython 6,224,117 1 0 0 27,512 0 13,296 1,163 osh-cpython
26 no-host configure.cpython 2,227,779 0 0 0 27,520 0 13,345 954 osh-native
34 no-host configure.cpython 2,212,031 0 0 0 27,520 0 13,223 1,038 osh-native-souffle
4 no-host configure.ocaml 410,744 0 0 0 5,120 0 1,946 156 bash
12 no-host configure.ocaml 391,114 0 0 0 5,112 0 1,890 140 dash
20 no-host configure.ocaml 645,576 0 0 0 5,112 0 1,860 170 osh-cpython
28 no-host configure.ocaml 413,272 0 0 0 5,120 0 1,926 166 osh-native
36 no-host configure.ocaml 412,490 0 0 0 5,120 0 1,929 172 osh-native-souffle
5 no-host configure.tcc 6,550 0 0 0 104 0 48 2 bash
13 no-host configure.tcc 5,470 0 0 0 96 0 46 3 dash
21 no-host configure.tcc 23,712 0 0 0 96 0 53 8 osh-cpython
29 no-host configure.tcc 6,972 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,924 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,102,946 0 0 0 42,400 0 18,523 980 bash
11 no-host configure.util-linux 2,262,768 0 0 0 42,584 0 17,562 1,089 dash
19 no-host configure.util-linux 5,368,591 1 0 0 39,112 0 16,906 1,099 osh-cpython
27 no-host configure.util-linux 1,999,073 2 0 0 39,120 0 16,962 1,048 osh-native
35 no-host configure.util-linux 1,991,029 0 0 0 39,128 0 16,975 909 osh-native-souffle
6 no-host configure.yash 256,467 0 0 0 4,120 0 870 85 bash
14 no-host configure.yash 243,990 0 0 0 3,720 0 868 75 dash
22 no-host configure.yash 386,723 0 0 0 3,728 0 856 85 osh-cpython
30 no-host configure.yash 258,375 0 0 0 3,736 0 852 93 osh-native
38 no-host configure.yash 257,613 0 0 0 3,736 0 849 76 osh-native-souffle
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 78 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,748 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 351 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 345 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-e3cdd09a
dash dash-0ebcf347
osh-cpython osh-f6023deb
osh-native osh-07c138bb
osh-native-souffle osh-a287d2c2
host label host id
no-host no-host-556df3ee