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 464 22 21 23.95 1.12
bin-true no-host 683 550 2,279 803 793 3.34 1.18
configure.cpython no-host 15,462 15,341 28,609 15,157 15,217 1.85 0.98
configure.ocaml no-host 3,891 3,705 4,611 3,793 3,800 1.18 0.97
configure.tcc no-host 48 41 201 48 48 4.15 0.99
configure.util-linux no-host 14,349 14,946 31,263 14,224 14,185 2.18 0.99
configure.yash no-host 1,882 1,742 2,441 1,806 1,818 1.30 0.96
hello-world no-host 2 1 56 3 3 37.16 1.93

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,534 1,082 23,729 3,143 3,101 9.36 1.24
bin-true no-host 107,346 65,442 772,366 125,247 124,221 7.20 1.17
configure.cpython no-host 2,230,893 2,241,233 6,220,294 2,220,737 2,206,873 2.79 1.00
configure.ocaml no-host 410,094 390,912 645,760 413,103 412,771 1.57 1.01
configure.tcc no-host 6,563 5,466 24,098 6,963 6,920 3.67 1.06
configure.util-linux no-host 2,098,987 2,259,313 5,372,686 1,997,211 1,995,091 2.56 0.95
configure.yash no-host 256,634 244,634 386,083 257,241 258,086 1.50 1.00
hello-world no-host 154 79 3,936 344 335 25.56 2.23

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.8 8.9 8.7 5.28 2.06
bin-true no-host 2.9 1.4 18.2 8.1 7.9 6.32 2.82
configure.cpython no-host 27.3 27.3 27.4 27.4 27.5 1.00 1.00
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.3 19.3 19.3 0.99 0.99
configure.util-linux no-host 30.1 30.1 30.1 30.0 30.3 1.00 1.00
configure.yash no-host 24.5 24.4 24.4 24.2 24.4 0.99 0.99
hello-world no-host 2.9 1.4 18.2 6.4 5.9 6.32 2.23

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.4 3,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 803 1 2 2.6 8.1 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,157 2 61 14.9 27.4 1,771,747 49,125 28,512 85,415 878,115 808,217 25,733 60 50,000 0
configure.util-linux no-host 14,224 3 58 21.2 30.0 2,702,513 45,898 65,711 108,691 1,290,640 1,303,182 32,239 41 131,422 1
configure.ocaml no-host 3,793 0 2 2.6 20.6 150,080 11,112 5,207 7,508 70,969 71,603 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,586 30,586 0 1,518 14,641 14,427 271 0 50,000 0
configure.yash no-host 1,806 1 2 2.5 24.2 139,412 8,024 6,686 5,989 67,942 65,481 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,292 64,403 42,613 4,532 54,436 57,324 277 3 85,226 1
hello-world no-host 3 0 0 0.2 5.9 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 793 1 2 2.6 7.9 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,217 1 59 14.9 27.5 1,771,746 44,577 28,450 85,416 878,115 808,215 25,733 60 50,000 0
configure.util-linux no-host 14,185 3 58 21.2 30.3 2,702,513 53,693 65,649 108,693 1,290,640 1,303,180 32,239 41 131,298 1
configure.ocaml no-host 3,800 1 2 2.6 20.4 150,080 11,050 5,145 7,510 70,969 71,601 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,818 1 2 2.5 24.4 139,412 7,962 6,624 5,991 67,942 65,479 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,291 64,341 42,551 4,533 54,436 57,322 277 3 85,102 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 7 3 3.4 dash
23 no-host abuild-print-help 464 424 43 22.8 osh-cpython
31 no-host abuild-print-help 22 16 6 8.9 osh-native
39 no-host abuild-print-help 21 10 11 8.7 osh-native-souffle
1 no-host bin-true 683 497 219 2.9 bash
9 no-host bin-true 550 414 146 1.4 dash
17 no-host bin-true 2,279 1,533 998 18.2 osh-cpython
25 no-host bin-true 803 569 249 8.1 osh-native
33 no-host bin-true 793 547 262 7.9 osh-native-souffle
2 no-host configure.cpython 15,462 9,213 6,660 27.3 bash
10 no-host configure.cpython 15,341 9,216 6,544 27.3 dash
18 no-host configure.cpython 28,609 17,519 12,915 27.4 osh-cpython
26 no-host configure.cpython 15,157 9,076 6,345 27.4 osh-native
34 no-host configure.cpython 15,217 8,960 6,369 27.5 osh-native-souffle
4 no-host configure.ocaml 3,891 1,648 1,276 20.6 bash
12 no-host configure.ocaml 3,705 1,577 1,146 20.6 dash
20 no-host configure.ocaml 4,611 2,279 1,536 20.6 osh-cpython
28 no-host configure.ocaml 3,793 1,617 1,212 20.6 osh-native
36 no-host configure.ocaml 3,800 1,624 1,214 20.4 osh-native-souffle
5 no-host configure.tcc 48 38 11 19.4 bash
13 no-host configure.tcc 41 30 11 19.3 dash
21 no-host configure.tcc 201 133 71 19.3 osh-cpython
29 no-host configure.tcc 48 23 26 19.3 osh-native
37 no-host configure.tcc 48 22 27 19.3 osh-native-souffle
3 no-host configure.util-linux 14,349 9,007 5,825 30.1 bash
11 no-host configure.util-linux 14,946 9,099 6,332 30.1 dash
19 no-host configure.util-linux 31,263 20,732 11,592 30.1 osh-cpython
27 no-host configure.util-linux 14,224 8,678 5,737 30.0 osh-native
35 no-host configure.util-linux 14,185 8,477 5,905 30.3 osh-native-souffle
6 no-host configure.yash 1,882 1,112 776 24.5 bash
14 no-host configure.yash 1,742 1,066 680 24.4 dash
22 no-host configure.yash 2,441 1,547 933 24.4 osh-cpython
30 no-host configure.yash 1,806 1,051 759 24.2 osh-native
38 no-host configure.yash 1,818 998 824 24.4 osh-native-souffle
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 56 40 16 18.2 osh-cpython
24 no-host hello-world 3 0 3 6.4 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,534 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,082 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,729 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,143 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,101 0 0 0 16 0 39 3 osh-native-souffle
1 no-host bin-true 107,346 0 0 0 8 0 1,992 106 bash
9 no-host bin-true 65,442 0 0 0 8 0 1,985 113 dash
17 no-host bin-true 772,366 0 0 0 8 0 1,999 286 osh-cpython
25 no-host bin-true 125,247 0 0 0 16 0 1,985 53 osh-native
33 no-host bin-true 124,221 0 0 0 16 0 1,991 50 osh-native-souffle
2 no-host configure.cpython 2,230,893 0 0 0 32,928 0 14,529 1,059 bash
10 no-host configure.cpython 2,241,233 0 0 0 32,992 0 14,622 1,130 dash
18 no-host configure.cpython 6,220,294 1 0 0 27,512 0 13,274 1,110 osh-cpython
26 no-host configure.cpython 2,220,737 0 0 0 27,520 0 13,194 1,046 osh-native
34 no-host configure.cpython 2,206,873 0 0 0 27,520 0 13,222 1,091 osh-native-souffle
4 no-host configure.ocaml 410,094 0 0 0 5,120 0 1,960 161 bash
12 no-host configure.ocaml 390,912 0 0 0 5,112 0 1,890 157 dash
20 no-host configure.ocaml 645,760 0 0 0 5,112 0 1,857 173 osh-cpython
28 no-host configure.ocaml 413,103 0 0 0 5,120 0 1,928 172 osh-native
36 no-host configure.ocaml 412,771 0 0 0 5,120 0 1,929 163 osh-native-souffle
5 no-host configure.tcc 6,563 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,466 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 24,098 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,963 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,920 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,098,987 0 0 0 42,400 0 18,566 1,004 bash
11 no-host configure.util-linux 2,259,313 0 0 0 42,584 0 17,436 1,056 dash
19 no-host configure.util-linux 5,372,686 8 0 0 39,112 0 16,974 1,174 osh-cpython
27 no-host configure.util-linux 1,997,211 0 0 0 39,120 0 17,009 988 osh-native
35 no-host configure.util-linux 1,995,091 2 0 0 39,128 0 17,065 945 osh-native-souffle
6 no-host configure.yash 256,634 0 0 0 4,120 0 868 95 bash
14 no-host configure.yash 244,634 0 0 0 3,720 0 869 70 dash
22 no-host configure.yash 386,083 0 0 0 3,728 0 856 83 osh-cpython
30 no-host configure.yash 257,241 0 0 0 3,736 0 846 92 osh-native
38 no-host configure.yash 258,086 0 0 0 3,736 0 845 79 osh-native-souffle
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 79 0 0 0 8 0 1 1 dash
16 no-host hello-world 3,936 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 344 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 335 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-bcbc5cb9
dash dash-0ebcf347
osh-cpython osh-e2297d36
osh-native osh-d4946ca8
osh-native-souffle osh-1757c6f1
host label host id
no-host no-host-556df3ee