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 487 22 21 25.82 1.17
bin-true no-host 652 534 2,420 804 789 3.71 1.23
configure.cpython no-host 15,094 14,958 29,486 15,143 15,111 1.95 1.00
configure.ocaml no-host 3,838 3,754 4,667 3,836 3,817 1.22 1.00
configure.tcc no-host 48 40 205 48 47 4.25 0.99
configure.util-linux no-host 14,086 14,793 32,316 14,195 14,346 2.29 1.01
configure.yash no-host 1,886 1,764 2,478 1,834 1,824 1.31 0.97
hello-world no-host 1 1 57 3 3 43.74 2.18

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,571 1,099 24,214 3,198 3,079 9.42 1.24
bin-true no-host 104,416 66,391 800,240 127,189 124,207 7.66 1.22
configure.cpython no-host 1,997,490 2,021,164 6,105,402 2,013,177 1,995,059 3.06 1.01
configure.ocaml no-host 373,204 354,023 615,864 376,681 375,271 1.65 1.01
configure.tcc no-host 6,094 5,010 23,979 6,518 6,462 3.93 1.07
configure.util-linux no-host 1,914,896 2,068,108 5,308,543 1,820,333 1,812,354 2.77 0.95
configure.yash no-host 233,890 221,706 368,915 235,712 235,434 1.58 1.01
hello-world no-host 147 75 3,980 350 339 27.07 2.38

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 22.6 9.0 8.5 5.07 2.03
bin-true no-host 2.9 1.4 18.5 8.3 7.6 6.43 2.86
configure.cpython no-host 29.1 29.1 29.2 29.2 29.1 1.00 1.00
configure.ocaml no-host 22.6 22.5 22.6 22.6 22.6 1.00 1.00
configure.tcc no-host 19.6 19.8 19.6 19.6 19.6 1.00 1.00
configure.util-linux no-host 30.2 30.2 30.3 30.3 30.3 1.00 1.00
configure.yash no-host 26.4 26.3 26.3 26.3 26.4 1.00 1.00
hello-world no-host 2.8 1.4 18.4 6.3 5.9 6.69 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.3 6.3 3,806 3,806 0 701 1,870 1,235 2 0 50,000 0
bin-true no-host 804 1 2 2.6 8.3 156,773 15,415 2,902 8,753 77,337 70,683 3,008 3 50,000 0
configure.cpython no-host 15,143 2 72 15.5 29.2 1,785,014 30,560 28,527 91,506 886,575 806,933 25,736 61 50,000 0
configure.util-linux no-host 14,195 3 66 21.6 30.3 2,709,215 53,762 65,726 114,373 1,295,038 1,299,804 32,241 41 131,452 1
configure.ocaml no-host 3,836 1 2 2.6 22.6 149,860 11,179 5,222 7,734 70,874 71,252 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.6 30,576 30,576 0 1,543 14,636 14,397 271 0 50,000 0
configure.yash no-host 1,834 1 2 2.6 26.3 139,882 8,046 6,701 6,398 68,339 65,145 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,338 64,420 42,628 4,545 54,462 57,331 277 3 85,256 1
hello-world no-host 3 0 0 0.3 5.9 3,805 3,805 0 702 1,870 1,233 2 0 50,000 0
bin-true no-host 789 1 2 2.6 7.6 156,772 15,410 2,897 8,754 77,337 70,681 3,008 3 50,000 0
configure.cpython no-host 15,111 1 70 15.4 29.1 1,785,013 30,547 28,522 91,507 886,575 806,931 25,736 61 50,000 0
configure.util-linux no-host 14,346 3 67 21.6 30.3 2,709,215 53,739 65,721 114,375 1,295,038 1,299,802 32,241 41 131,442 1
configure.ocaml no-host 3,817 1 2 2.6 22.6 149,860 11,174 5,217 7,736 70,874 71,250 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.6 30,576 30,576 0 1,545 14,636 14,395 271 0 50,000 0
configure.yash no-host 1,824 1 2 2.6 26.4 139,882 8,035 6,690 6,400 68,339 65,143 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.5 116,337 64,415 42,623 4,546 54,462 57,329 277 3 85,246 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 12 7 4.5 bash
15 no-host abuild-print-help 9 3 6 3.5 dash
23 no-host abuild-print-help 487 433 57 22.6 osh-cpython
31 no-host abuild-print-help 22 15 8 9.0 osh-native
39 no-host abuild-print-help 21 11 11 8.5 osh-native-souffle
1 no-host bin-true 652 299 385 2.9 bash
9 no-host bin-true 534 281 264 1.4 dash
17 no-host bin-true 2,420 794 1,885 18.5 osh-cpython
25 no-host bin-true 804 296 524 8.3 osh-native
33 no-host bin-true 789 291 513 7.6 osh-native-souffle
2 no-host configure.cpython 15,094 6,845 8,669 29.1 bash
10 no-host configure.cpython 14,958 6,767 8,619 29.1 dash
18 no-host configure.cpython 29,486 14,622 16,826 29.2 osh-cpython
26 no-host configure.cpython 15,143 6,686 8,748 29.2 osh-native
34 no-host configure.cpython 15,111 6,654 8,737 29.1 osh-native-souffle
4 no-host configure.ocaml 3,838 1,352 1,528 22.6 bash
12 no-host configure.ocaml 3,754 1,300 1,477 22.5 dash
20 no-host configure.ocaml 4,667 1,885 2,003 22.6 osh-cpython
28 no-host configure.ocaml 3,836 1,303 1,574 22.6 osh-native
36 no-host configure.ocaml 3,817 1,270 1,587 22.6 osh-native-souffle
5 no-host configure.tcc 48 18 31 19.6 bash
13 no-host configure.tcc 40 17 23 19.8 dash
21 no-host configure.tcc 205 138 70 19.6 osh-cpython
29 no-host configure.tcc 48 27 22 19.6 osh-native
37 no-host configure.tcc 47 19 28 19.6 osh-native-souffle
3 no-host configure.util-linux 14,086 5,910 8,681 30.2 bash
11 no-host configure.util-linux 14,793 6,020 9,305 30.2 dash
19 no-host configure.util-linux 32,316 18,316 15,125 30.3 osh-cpython
27 no-host configure.util-linux 14,195 5,616 8,791 30.3 osh-native
35 no-host configure.util-linux 14,346 5,732 8,837 30.3 osh-native-souffle
6 no-host configure.yash 1,886 930 937 26.4 bash
14 no-host configure.yash 1,764 930 839 26.3 dash
22 no-host configure.yash 2,478 1,345 1,178 26.3 osh-cpython
30 no-host configure.yash 1,834 902 937 26.3 osh-native
38 no-host configure.yash 1,824 920 909 26.4 osh-native-souffle
0 no-host hello-world 1 0 1 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 57 42 15 18.4 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 1 1 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,571 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,099 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 24,214 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,198 0 0 0 16 0 39 3 osh-native
39 no-host abuild-print-help 3,079 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 104,416 0 0 0 8 0 1,978 90 bash
9 no-host bin-true 66,391 0 0 0 8 0 1,975 94 dash
17 no-host bin-true 800,240 0 0 0 8 0 1,993 657 osh-cpython
25 no-host bin-true 127,189 0 0 0 16 0 1,984 287 osh-native
33 no-host bin-true 124,207 0 0 0 16 0 1,971 158 osh-native-souffle
2 no-host configure.cpython 1,997,490 0 0 0 32,928 0 14,067 1,113 bash
10 no-host configure.cpython 2,021,164 0 0 0 32,992 0 14,332 1,262 dash
18 no-host configure.cpython 6,105,402 1 0 0 27,512 0 13,067 1,180 osh-cpython
26 no-host configure.cpython 2,013,177 0 0 0 27,520 0 13,052 1,024 osh-native
34 no-host configure.cpython 1,995,059 0 0 0 27,520 0 13,052 1,039 osh-native-souffle
4 no-host configure.ocaml 373,204 0 0 0 5,120 0 1,948 180 bash
12 no-host configure.ocaml 354,023 0 0 0 5,112 0 1,941 161 dash
20 no-host configure.ocaml 615,864 0 0 0 5,112 0 1,852 175 osh-cpython
28 no-host configure.ocaml 376,681 0 0 0 5,120 0 1,931 186 osh-native
36 no-host configure.ocaml 375,271 0 0 0 5,120 0 1,917 185 osh-native-souffle
5 no-host configure.tcc 6,094 0 0 0 104 0 48 3 bash
13 no-host configure.tcc 5,010 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,979 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,518 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,462 0 0 0 104 0 47 0 osh-native-souffle
3 no-host configure.util-linux 1,914,896 1 0 0 42,400 0 18,454 1,256 bash
11 no-host configure.util-linux 2,068,108 0 0 0 42,592 0 17,278 1,370 dash
19 no-host configure.util-linux 5,308,543 5 0 0 39,144 0 17,036 1,292 osh-cpython
27 no-host configure.util-linux 1,820,333 0 0 0 39,128 0 17,033 1,053 osh-native
35 no-host configure.util-linux 1,812,354 0 0 0 39,136 0 17,091 1,106 osh-native-souffle
6 no-host configure.yash 233,890 0 0 0 4,120 0 878 85 bash
14 no-host configure.yash 221,706 0 0 0 3,720 0 873 93 dash
22 no-host configure.yash 368,915 0 0 0 3,728 0 854 72 osh-cpython
30 no-host configure.yash 235,712 0 0 0 3,736 0 850 81 osh-native
38 no-host configure.yash 235,434 0 0 0 3,736 0 848 74 osh-native-souffle
0 no-host hello-world 147 0 0 0 8 0 1 0 bash
8 no-host hello-world 75 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,980 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 350 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 339 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-55d5f274
dash dash-0ebcf347
osh-cpython osh-aba76d93
osh-native osh-210d3f7d
osh-native-souffle osh-9b5cbe7f
host label host id
no-host no-host-e4839999