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 468 22 21 24.29 1.13
bin-true no-host 680 544 2,326 806 802 3.42 1.19
configure.cpython no-host 15,002 15,041 28,825 15,177 15,293 1.92 1.01
configure.ocaml no-host 3,835 3,729 4,641 3,831 3,813 1.21 1.00
configure.tcc no-host 48 42 203 49 48 4.23 1.01
configure.util-linux no-host 14,016 14,903 31,421 14,351 14,270 2.24 1.02
configure.yash no-host 1,857 1,765 2,453 1,823 1,814 1.32 0.98
hello-world no-host 2 1 57 3 3 33.76 1.71

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,540 1,095 23,957 3,147 3,104 9.43 1.24
bin-true no-host 107,355 66,463 793,539 125,237 123,254 7.39 1.17
configure.cpython no-host 2,231,588 2,239,639 6,277,963 2,213,145 2,205,195 2.81 0.99
configure.ocaml no-host 410,914 390,908 649,815 413,451 411,955 1.58 1.01
configure.tcc no-host 6,540 5,498 24,468 6,956 6,906 3.74 1.06
configure.util-linux no-host 2,108,701 2,259,789 5,421,917 2,001,555 1,992,787 2.57 0.95
configure.yash no-host 255,980 245,016 390,447 258,101 257,280 1.53 1.01
hello-world no-host 154 82 3,992 351 344 25.92 2.28

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.5 3.5 23.3 8.9 8.7 5.22 2.00
bin-true no-host 2.9 1.4 18.9 7.9 7.7 6.57 2.73
configure.cpython no-host 27.5 27.4 27.1 27.4 27.4 0.99 1.00
configure.ocaml no-host 20.6 20.4 20.4 20.6 20.6 0.99 1.00
configure.tcc no-host 19.3 19.1 19.2 19.3 19.1 1.00 1.00
configure.util-linux no-host 30.1 30.0 30.1 30.3 30.3 1.00 1.00
configure.yash no-host 24.5 24.2 24.4 24.4 24.2 0.99 0.99
hello-world no-host 2.8 1.4 18.8 6.3 5.9 6.83 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,780 3,780 0 695 1,856 1,229 2 0 50,000 0
bin-true no-host 806 1 2 2.6 7.9 153,744 12,264 2,884 8,744 78,325 66,675 3,008 3 50,000 0
configure.cpython no-host 15,177 1 60 14.9 27.4 1,771,745 49,904 28,593 85,416 908,077 778,252 25,733 60 50,000 0
configure.util-linux no-host 14,351 3 59 21.2 30.3 2,702,511 29,654 65,897 108,692 1,320,583 1,273,236 32,239 41 131,794 1
configure.ocaml no-host 3,831 1 2 2.6 20.6 150,078 11,128 5,223 7,509 71,610 70,959 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,584 30,584 0 1,519 14,780 14,285 271 0 50,000 0
configure.yash no-host 1,823 1 2 2.5 24.4 139,404 8,024 6,686 5,987 70,285 63,132 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,290 64,537 42,747 4,533 54,525 57,232 277 3 85,494 1
hello-world no-host 3 0 0 0.2 5.9 3,779 3,779 0 696 1,856 1,227 2 0 50,000 0
bin-true no-host 802 1 2 2.6 7.7 153,743 12,053 2,822 8,745 78,325 66,673 3,008 3 50,000 0
configure.cpython no-host 15,293 2 63 14.8 27.4 1,771,744 49,106 28,531 85,417 908,077 778,250 25,733 60 50,000 0
configure.util-linux no-host 14,270 3 60 21.2 30.3 2,702,511 29,763 65,835 108,694 1,320,583 1,273,234 32,239 41 131,670 1
configure.ocaml no-host 3,813 1 2 2.6 20.6 150,078 11,066 5,161 7,511 71,610 70,957 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.1 30,584 30,584 0 1,521 14,780 14,283 271 0 50,000 0
configure.yash no-host 1,814 1 2 2.5 24.2 139,404 7,962 6,624 5,989 70,285 63,130 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,289 64,475 42,685 4,534 54,525 57,230 277 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 11 9 4.5 bash
15 no-host abuild-print-help 9 4 5 3.5 dash
23 no-host abuild-print-help 468 419 52 23.3 osh-cpython
31 no-host abuild-print-help 22 15 7 8.9 osh-native
39 no-host abuild-print-help 21 16 6 8.7 osh-native-souffle
1 no-host bin-true 680 510 202 2.9 bash
9 no-host bin-true 544 425 129 1.4 dash
17 no-host bin-true 2,326 1,494 1,090 18.9 osh-cpython
25 no-host bin-true 806 579 246 7.9 osh-native
33 no-host bin-true 802 567 249 7.7 osh-native-souffle
2 no-host configure.cpython 15,002 8,991 6,411 27.5 bash
10 no-host configure.cpython 15,041 9,043 6,417 27.4 dash
18 no-host configure.cpython 28,825 17,715 12,990 27.1 osh-cpython
26 no-host configure.cpython 15,177 8,969 6,476 27.4 osh-native
34 no-host configure.cpython 15,293 8,912 6,500 27.4 osh-native-souffle
4 no-host configure.ocaml 3,835 1,646 1,217 20.6 bash
12 no-host configure.ocaml 3,729 1,548 1,200 20.4 dash
20 no-host configure.ocaml 4,641 2,170 1,682 20.4 osh-cpython
28 no-host configure.ocaml 3,831 1,671 1,199 20.6 osh-native
36 no-host configure.ocaml 3,813 1,603 1,246 20.6 osh-native-souffle
5 no-host configure.tcc 48 37 11 19.3 bash
13 no-host configure.tcc 42 29 13 19.1 dash
21 no-host configure.tcc 203 142 65 19.2 osh-cpython
29 no-host configure.tcc 49 30 19 19.3 osh-native
37 no-host configure.tcc 48 22 27 19.1 osh-native-souffle
3 no-host configure.util-linux 14,016 8,778 5,695 30.1 bash
11 no-host configure.util-linux 14,903 9,164 6,235 30.0 dash
19 no-host configure.util-linux 31,421 20,903 11,608 30.1 osh-cpython
27 no-host configure.util-linux 14,351 8,498 6,050 30.3 osh-native
35 no-host configure.util-linux 14,270 8,580 5,878 30.3 osh-native-souffle
6 no-host configure.yash 1,857 1,017 849 24.5 bash
14 no-host configure.yash 1,765 1,026 742 24.2 dash
22 no-host configure.yash 2,453 1,466 1,030 24.4 osh-cpython
30 no-host configure.yash 1,823 1,056 770 24.4 osh-native
38 no-host configure.yash 1,814 1,056 762 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 57 41 16 18.8 osh-cpython
24 no-host hello-world 3 0 3 6.3 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,540 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,095 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,957 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,147 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,104 0 0 0 16 0 38 3 osh-native-souffle
1 no-host bin-true 107,355 0 0 0 8 0 1,991 48 bash
9 no-host bin-true 66,463 0 0 0 8 0 1,986 34 dash
17 no-host bin-true 793,539 0 0 0 8 0 1,995 101 osh-cpython
25 no-host bin-true 125,237 0 0 0 16 0 1,990 87 osh-native
33 no-host bin-true 123,254 0 0 0 16 0 1,987 89 osh-native-souffle
2 no-host configure.cpython 2,231,588 0 0 0 32,928 0 14,425 1,127 bash
10 no-host configure.cpython 2,239,639 1 0 0 32,992 0 14,623 958 dash
18 no-host configure.cpython 6,277,963 0 0 0 27,512 0 13,240 1,300 osh-cpython
26 no-host configure.cpython 2,213,145 0 0 0 27,520 0 13,256 1,200 osh-native
34 no-host configure.cpython 2,205,195 0 0 0 27,520 0 13,188 1,050 osh-native-souffle
4 no-host configure.ocaml 410,914 0 0 0 5,120 0 1,956 259 bash
12 no-host configure.ocaml 390,908 0 0 0 5,112 0 1,877 137 dash
20 no-host configure.ocaml 649,815 0 0 0 5,112 0 1,858 195 osh-cpython
28 no-host configure.ocaml 413,451 0 0 0 5,120 0 1,922 244 osh-native
36 no-host configure.ocaml 411,955 0 0 0 5,120 0 1,929 170 osh-native-souffle
5 no-host configure.tcc 6,540 0 0 0 104 0 49 0 bash
13 no-host configure.tcc 5,498 0 0 0 96 0 47 6 dash
21 no-host configure.tcc 24,468 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,956 0 0 0 104 0 47 0 osh-native
37 no-host configure.tcc 6,906 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,108,701 0 0 0 42,400 0 18,527 982 bash
11 no-host configure.util-linux 2,259,789 1 0 0 42,584 0 17,501 1,007 dash
19 no-host configure.util-linux 5,421,917 17 0 0 39,112 0 16,934 1,154 osh-cpython
27 no-host configure.util-linux 2,001,555 2 0 0 39,120 0 16,994 931 osh-native
35 no-host configure.util-linux 1,992,787 0 0 0 39,136 0 16,957 1,016 osh-native-souffle
6 no-host configure.yash 255,980 0 0 0 4,120 0 871 70 bash
14 no-host configure.yash 245,016 0 0 0 3,720 0 869 73 dash
22 no-host configure.yash 390,447 0 0 0 3,728 0 854 85 osh-cpython
30 no-host configure.yash 258,101 0 0 0 3,736 0 847 84 osh-native
38 no-host configure.yash 257,280 0 0 0 3,736 0 848 80 osh-native-souffle
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,992 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 351 0 0 0 16 0 0 1 osh-native
32 no-host hello-world 344 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-5195d068
dash dash-0ebcf347
osh-cpython osh-3ffcbfc1
osh-native osh-85f6fa1c
osh-native-souffle osh-ff2d615d
host label host id
no-host no-host-556df3ee