oils.pub
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 |
457 |
22 |
21 |
23.66 |
1.13 |
| bin-true |
no-host |
671 |
541 |
2,306 |
810 |
801 |
3.44 |
1.21 |
| configure.cpython |
no-host |
14,782 |
14,851 |
28,484 |
14,938 |
15,135 |
1.93 |
1.01 |
| configure.ocaml |
no-host |
3,744 |
3,698 |
4,599 |
3,780 |
3,771 |
1.23 |
1.01 |
| configure.tcc |
no-host |
47 |
41 |
201 |
48 |
48 |
4.30 |
1.03 |
| configure.util-linux |
no-host |
13,830 |
14,667 |
31,012 |
14,178 |
14,127 |
2.24 |
1.03 |
| configure.yash |
no-host |
1,815 |
1,744 |
2,437 |
1,801 |
1,796 |
1.34 |
0.99 |
| hello-world |
no-host |
1 |
1 |
56 |
3 |
3 |
38.38 |
2.03 |
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,545 |
1,100 |
23,788 |
3,238 |
3,119 |
9.35 |
1.27 |
| bin-true |
no-host |
105,329 |
67,443 |
774,284 |
127,275 |
124,299 |
7.35 |
1.21 |
| configure.cpython |
no-host |
2,218,117 |
2,240,047 |
6,248,394 |
2,208,058 |
2,217,493 |
2.82 |
1.00 |
| configure.ocaml |
no-host |
410,331 |
391,566 |
647,498 |
412,716 |
412,458 |
1.58 |
1.01 |
| configure.tcc |
no-host |
6,548 |
5,465 |
24,141 |
6,983 |
6,905 |
3.69 |
1.07 |
| configure.util-linux |
no-host |
2,097,337 |
2,263,005 |
5,399,790 |
2,002,004 |
1,988,598 |
2.57 |
0.95 |
| configure.yash |
no-host |
256,062 |
245,155 |
388,245 |
258,096 |
257,738 |
1.52 |
1.01 |
| hello-world |
no-host |
152 |
83 |
3,937 |
344 |
338 |
25.90 |
2.26 |
Memory Usage (Max Resident Set Size in MB)
Memory usage is measured in MB (powers of 10), not MiB (powers of 2).
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,783 |
3,783 |
0 |
694 |
1,859 |
1,230 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
810 |
1 |
2 |
2.6 |
8.1 |
153,747 |
12,268 |
2,888 |
8,743 |
76,323 |
68,681 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,938 |
1 |
59 |
14.9 |
27.4 |
1,771,748 |
49,126 |
28,513 |
85,415 |
878,116 |
808,217 |
25,733 |
60 |
50,000 |
0 |
| configure.util-linux |
no-host |
14,178 |
3 |
58 |
21.2 |
30.3 |
2,702,514 |
45,898 |
65,712 |
108,691 |
1,290,641 |
1,303,182 |
32,239 |
41 |
131,424 |
1 |
| configure.ocaml |
no-host |
3,780 |
1 |
2 |
2.6 |
20.6 |
150,081 |
11,113 |
5,208 |
7,508 |
70,970 |
71,603 |
1,695 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.3 |
30,587 |
30,587 |
0 |
1,518 |
14,642 |
14,427 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,801 |
1 |
2 |
2.5 |
24.2 |
139,413 |
8,025 |
6,687 |
5,989 |
67,943 |
65,481 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.2 |
116,293 |
64,404 |
42,614 |
4,532 |
54,437 |
57,324 |
277 |
3 |
85,228 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.9 |
3,782 |
3,782 |
0 |
695 |
1,859 |
1,228 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
801 |
1 |
2 |
2.6 |
7.7 |
153,746 |
12,112 |
2,826 |
8,744 |
76,323 |
68,679 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,135 |
2 |
59 |
14.9 |
27.3 |
1,771,747 |
49,064 |
28,451 |
85,416 |
878,116 |
808,215 |
25,733 |
60 |
50,000 |
0 |
| configure.util-linux |
no-host |
14,127 |
3 |
58 |
21.2 |
30.1 |
2,702,514 |
53,694 |
65,650 |
108,693 |
1,290,641 |
1,303,180 |
32,239 |
41 |
131,300 |
1 |
| configure.ocaml |
no-host |
3,771 |
0 |
2 |
2.6 |
20.6 |
150,081 |
11,051 |
5,146 |
7,510 |
70,970 |
71,601 |
1,695 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.4 |
30,587 |
30,587 |
0 |
1,520 |
14,642 |
14,425 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,796 |
1 |
2 |
2.5 |
24.4 |
139,413 |
7,963 |
6,625 |
5,991 |
67,943 |
65,479 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.4 |
116,292 |
64,342 |
42,552 |
4,533 |
54,437 |
57,322 |
277 |
3 |
85,104 |
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 |
19 |
1 |
4.5 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
8 |
1 |
3.5 |
dash |
| 23 |
no-host |
abuild-print-help |
457 |
405 |
55 |
22.8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
14 |
8 |
9.2 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
17 |
5 |
8.4 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
671 |
506 |
195 |
2.9 |
bash |
| 9 |
no-host |
bin-true |
541 |
422 |
130 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,306 |
1,501 |
1,063 |
18.4 |
osh-cpython |
| 25 |
no-host |
bin-true |
810 |
566 |
260 |
8.1 |
osh-native |
| 33 |
no-host |
bin-true |
801 |
569 |
248 |
7.7 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,782 |
8,879 |
6,302 |
27.4 |
bash |
| 10 |
no-host |
configure.cpython |
14,851 |
9,109 |
6,158 |
27.4 |
dash |
| 18 |
no-host |
configure.cpython |
28,484 |
17,238 |
13,113 |
27.5 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,938 |
8,815 |
6,391 |
27.4 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,135 |
8,726 |
6,536 |
27.3 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,744 |
1,575 |
1,208 |
20.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,698 |
1,515 |
1,201 |
20.4 |
dash |
| 20 |
no-host |
configure.ocaml |
4,599 |
2,226 |
1,583 |
20.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,780 |
1,566 |
1,253 |
20.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,771 |
1,578 |
1,231 |
20.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
47 |
33 |
15 |
19.4 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
24 |
17 |
19.4 |
dash |
| 21 |
no-host |
configure.tcc |
201 |
153 |
51 |
19.4 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
48 |
17 |
32 |
19.3 |
osh-native |
| 37 |
no-host |
configure.tcc |
48 |
37 |
11 |
19.4 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
13,830 |
8,815 |
5,466 |
30.0 |
bash |
| 11 |
no-host |
configure.util-linux |
14,667 |
9,103 |
6,058 |
30.3 |
dash |
| 19 |
no-host |
configure.util-linux |
31,012 |
20,775 |
11,310 |
30.3 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,178 |
8,611 |
5,762 |
30.3 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,127 |
8,421 |
5,908 |
30.1 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,815 |
1,060 |
757 |
24.2 |
bash |
| 14 |
no-host |
configure.yash |
1,744 |
1,038 |
709 |
24.2 |
dash |
| 22 |
no-host |
configure.yash |
2,437 |
1,524 |
955 |
24.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,801 |
1,130 |
675 |
24.2 |
osh-native |
| 38 |
no-host |
configure.yash |
1,796 |
1,016 |
784 |
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.4 |
dash |
| 16 |
no-host |
hello-world |
56 |
36 |
20 |
18.0 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
3 |
0 |
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,545 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,100 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
23,788 |
0 |
0 |
0 |
8 |
0 |
45 |
11 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,238 |
0 |
0 |
0 |
16 |
0 |
39 |
3 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,119 |
0 |
0 |
0 |
16 |
0 |
39 |
4 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
105,329 |
0 |
0 |
0 |
8 |
0 |
1,993 |
54 |
bash |
| 9 |
no-host |
bin-true |
67,443 |
0 |
0 |
0 |
8 |
0 |
1,989 |
37 |
dash |
| 17 |
no-host |
bin-true |
774,284 |
0 |
0 |
0 |
8 |
0 |
1,998 |
169 |
osh-cpython |
| 25 |
no-host |
bin-true |
127,275 |
0 |
0 |
0 |
16 |
0 |
1,993 |
91 |
osh-native |
| 33 |
no-host |
bin-true |
124,299 |
0 |
0 |
0 |
16 |
0 |
1,993 |
46 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
2,218,117 |
0 |
0 |
0 |
32,928 |
0 |
14,507 |
1,013 |
bash |
| 10 |
no-host |
configure.cpython |
2,240,047 |
0 |
0 |
0 |
32,992 |
0 |
14,562 |
892 |
dash |
| 18 |
no-host |
configure.cpython |
6,248,394 |
1 |
0 |
0 |
27,512 |
0 |
13,268 |
1,151 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,208,058 |
0 |
0 |
0 |
27,520 |
0 |
13,270 |
938 |
osh-native |
| 34 |
no-host |
configure.cpython |
2,217,493 |
0 |
0 |
0 |
27,520 |
0 |
13,254 |
1,044 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
410,331 |
0 |
0 |
0 |
5,120 |
0 |
1,948 |
129 |
bash |
| 12 |
no-host |
configure.ocaml |
391,566 |
0 |
0 |
0 |
5,112 |
0 |
1,943 |
141 |
dash |
| 20 |
no-host |
configure.ocaml |
647,498 |
0 |
0 |
0 |
5,112 |
0 |
1,860 |
169 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
412,716 |
0 |
0 |
0 |
5,120 |
0 |
1,927 |
177 |
osh-native |
| 36 |
no-host |
configure.ocaml |
412,458 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
159 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,548 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
5,465 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
24,141 |
0 |
0 |
0 |
96 |
0 |
53 |
11 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,983 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,905 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
2,097,337 |
0 |
0 |
0 |
42,400 |
0 |
18,547 |
1,026 |
bash |
| 11 |
no-host |
configure.util-linux |
2,263,005 |
0 |
0 |
0 |
42,592 |
0 |
17,421 |
1,015 |
dash |
| 19 |
no-host |
configure.util-linux |
5,399,790 |
11 |
0 |
0 |
39,112 |
0 |
17,099 |
1,130 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
2,002,004 |
0 |
0 |
0 |
39,120 |
0 |
16,964 |
936 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,988,598 |
0 |
0 |
0 |
39,128 |
0 |
17,075 |
907 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
256,062 |
0 |
0 |
0 |
4,120 |
0 |
889 |
79 |
bash |
| 14 |
no-host |
configure.yash |
245,155 |
0 |
0 |
0 |
3,720 |
0 |
867 |
89 |
dash |
| 22 |
no-host |
configure.yash |
388,245 |
0 |
0 |
0 |
3,728 |
0 |
854 |
93 |
osh-cpython |
| 30 |
no-host |
configure.yash |
258,096 |
0 |
0 |
0 |
3,736 |
0 |
850 |
74 |
osh-native |
| 38 |
no-host |
configure.yash |
257,738 |
0 |
0 |
0 |
3,736 |
0 |
847 |
75 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
83 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,937 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
| 24 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
| 32 |
no-host |
hello-world |
338 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host