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 20 10 479 23 21 24.51 1.16
bin-true no-host 692 549 2,383 824 831 3.44 1.19
configure.cpython no-host 15,588 15,702 30,172 16,236 15,672 1.94 1.04
configure.ocaml no-host 3,977 3,889 4,818 3,962 3,932 1.21 1.00
configure.tcc no-host 48 43 201 51 50 4.19 1.06
configure.util-linux no-host 14,677 15,355 32,825 14,906 14,937 2.24 1.02
configure.yash no-host 1,897 1,867 2,563 1,911 1,841 1.35 1.01
hello-world no-host 2 1 52 3 3 32.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,568 1,129 23,254 3,169 3,123 9.06 1.23
bin-true no-host 107,390 65,420 768,271 126,847 128,900 7.15 1.18
configure.cpython no-host 2,220,557 2,241,113 6,258,885 2,234,907 2,209,890 2.82 1.01
configure.ocaml no-host 410,723 391,105 647,029 412,678 412,392 1.58 1.00
configure.tcc no-host 6,571 5,480 23,635 6,970 6,904 3.60 1.06
configure.util-linux no-host 2,101,372 2,266,271 5,374,385 2,006,956 1,988,680 2.56 0.96
configure.yash no-host 255,929 245,005 389,530 258,524 258,309 1.52 1.01
hello-world no-host 151 79 3,733 351 343 24.72 2.32

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.5 21.9 8.9 8.7 5.06 2.06
bin-true no-host 2.9 1.4 17.7 8.1 7.9 6.14 2.82
configure.cpython no-host 27.3 27.5 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.4 20.4 1.00 0.99
configure.tcc no-host 19.4 19.3 19.3 19.4 19.3 0.99 1.00
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.2 24.5 24.2 0.99 1.01
hello-world no-host 2.8 1.4 17.7 6.3 5.9 6.43 2.29

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.3 3,775 3,775 0 696 1,851 1,228 2 0 50,000 0
bin-true no-host 824 1 2 2.6 8.1 154,740 13,220 2,877 9,746 78,320 66,674 3,008 3 50,000 0
configure.cpython no-host 16,236 2 66 15.0 27.4 1,772,722 49,854 28,587 86,399 908,072 778,251 22,694 60 50,000 0
configure.util-linux no-host 14,906 3 65 21.3 30.1 2,703,599 29,745 65,870 109,707 1,320,614 1,273,278 27,394 41 131,740 1
configure.ocaml no-host 3,962 1 2 2.6 20.4 150,096 11,051 5,221 7,533 71,605 70,958 1,448 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.4 30,581 30,581 0 1,522 14,775 14,284 226 0 50,000 0
configure.yash no-host 1,911 1 2 2.6 24.5 139,749 8,020 6,679 6,338 70,280 63,131 1,803 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.9 116,324 64,530 42,740 4,573 54,520 57,231 270 3 85,480 1
hello-world no-host 3 0 0 0.2 5.9 3,774 3,774 0 697 1,851 1,226 2 0 50,000 0
bin-true no-host 831 1 2 2.6 7.9 154,739 13,063 2,815 9,747 78,320 66,672 3,008 3 50,000 0
configure.cpython no-host 15,672 1 64 14.9 27.4 1,772,721 49,105 28,525 86,400 908,072 778,249 22,694 60 50,000 0
configure.util-linux no-host 14,937 3 64 21.3 30.1 2,703,490 42,741 65,808 109,679 1,320,578 1,273,233 27,391 41 131,616 1
configure.ocaml no-host 3,932 1 2 2.6 20.4 150,096 10,989 5,159 7,535 71,605 70,956 1,448 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,581 30,581 0 1,524 14,775 14,282 226 0 50,000 0
configure.yash no-host 1,841 1 2 2.6 24.2 139,749 7,958 6,617 6,340 70,280 63,129 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,323 64,468 42,678 4,574 54,520 57,229 270 3 85,356 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 20 12 8 4.3 bash
15 no-host abuild-print-help 10 7 3 3.5 dash
23 no-host abuild-print-help 479 425 58 21.9 osh-cpython
31 no-host abuild-print-help 23 17 6 8.9 osh-native
39 no-host abuild-print-help 21 11 11 8.7 osh-native-souffle
1 no-host bin-true 692 513 207 2.9 bash
9 no-host bin-true 549 416 144 1.4 dash
17 no-host bin-true 2,383 1,464 1,208 17.7 osh-cpython
25 no-host bin-true 824 556 282 8.1 osh-native
33 no-host bin-true 831 585 260 7.9 osh-native-souffle
2 no-host configure.cpython 15,588 9,177 6,810 27.3 bash
10 no-host configure.cpython 15,702 9,488 6,638 27.5 dash
18 no-host configure.cpython 30,172 18,056 14,108 27.4 osh-cpython
26 no-host configure.cpython 16,236 9,504 7,004 27.4 osh-native
34 no-host configure.cpython 15,672 9,198 6,650 27.4 osh-native-souffle
4 no-host configure.ocaml 3,977 1,683 1,303 20.6 bash
12 no-host configure.ocaml 3,889 1,654 1,254 20.6 dash
20 no-host configure.ocaml 4,818 2,294 1,749 20.6 osh-cpython
28 no-host configure.ocaml 3,962 1,667 1,334 20.4 osh-native
36 no-host configure.ocaml 3,932 1,679 1,289 20.4 osh-native-souffle
5 no-host configure.tcc 48 31 17 19.4 bash
13 no-host configure.tcc 43 29 14 19.3 dash
21 no-host configure.tcc 201 140 64 19.3 osh-cpython
29 no-host configure.tcc 51 40 12 19.4 osh-native
37 no-host configure.tcc 50 21 30 19.3 osh-native-souffle
3 no-host configure.util-linux 14,677 9,121 6,045 30.0 bash
11 no-host configure.util-linux 15,355 9,526 6,322 30.1 dash
19 no-host configure.util-linux 32,825 21,822 12,170 30.0 osh-cpython
27 no-host configure.util-linux 14,906 9,009 6,091 30.1 osh-native
35 no-host configure.util-linux 14,937 8,887 6,252 30.1 osh-native-souffle
6 no-host configure.yash 1,897 1,045 861 24.4 bash
14 no-host configure.yash 1,867 993 877 24.2 dash
22 no-host configure.yash 2,563 1,557 1,053 24.2 osh-cpython
30 no-host configure.yash 1,911 1,057 858 24.5 osh-native
38 no-host configure.yash 1,841 1,078 767 24.2 osh-native-souffle
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 52 20 31 17.7 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 0 3 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,568 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,129 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,254 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,169 0 0 0 16 0 39 3 osh-native
39 no-host abuild-print-help 3,123 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 107,390 0 0 0 8 0 1,993 55 bash
9 no-host bin-true 65,420 0 0 0 8 0 1,985 42 dash
17 no-host bin-true 768,271 0 0 0 8 0 2,000 239 osh-cpython
25 no-host bin-true 126,847 0 0 0 16 0 1,987 154 osh-native
33 no-host bin-true 128,900 0 0 0 16 0 1,992 135 osh-native-souffle
2 no-host configure.cpython 2,220,557 6 0 0 32,928 0 14,556 984 bash
10 no-host configure.cpython 2,241,113 0 0 0 32,992 0 14,652 1,201 dash
18 no-host configure.cpython 6,258,885 0 0 0 27,512 0 13,296 1,458 osh-cpython
26 no-host configure.cpython 2,234,907 0 0 0 27,520 0 13,286 1,260 osh-native
34 no-host configure.cpython 2,209,890 0 0 0 27,520 0 13,189 1,013 osh-native-souffle
4 no-host configure.ocaml 410,723 0 0 0 5,120 0 1,956 195 bash
12 no-host configure.ocaml 391,105 0 0 0 5,112 0 1,892 175 dash
20 no-host configure.ocaml 647,029 0 0 0 5,112 0 1,864 189 osh-cpython
28 no-host configure.ocaml 412,678 0 0 0 5,120 0 1,920 190 osh-native
36 no-host configure.ocaml 412,392 0 0 0 5,120 0 1,933 155 osh-native-souffle
5 no-host configure.tcc 6,571 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,480 0 0 0 96 0 47 4 dash
21 no-host configure.tcc 23,635 0 0 0 96 0 53 16 osh-cpython
29 no-host configure.tcc 6,970 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,904 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 2,101,372 0 0 0 42,400 0 18,567 1,176 bash
11 no-host configure.util-linux 2,266,271 0 0 0 42,584 0 17,326 1,173 dash
19 no-host configure.util-linux 5,374,385 6 0 0 39,128 0 16,972 1,405 osh-cpython
27 no-host configure.util-linux 2,006,956 1 0 0 39,144 0 16,987 1,052 osh-native
35 no-host configure.util-linux 1,988,680 1 0 0 39,136 0 16,993 1,113 osh-native-souffle
6 no-host configure.yash 255,929 0 0 0 4,120 0 869 90 bash
14 no-host configure.yash 245,005 0 0 0 3,720 0 866 84 dash
22 no-host configure.yash 389,530 0 0 0 3,728 0 853 97 osh-cpython
30 no-host configure.yash 258,524 0 0 0 3,736 0 848 97 osh-native
38 no-host configure.yash 258,309 0 0 0 3,736 0 850 80 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 79 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,733 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 351 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 343 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-c9f80eb4
dash dash-0ebcf347
osh-cpython osh-105166c4
osh-native osh-27b65936
osh-native-souffle osh-aaf520c9
host label host id
no-host no-host-556df3ee