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 |
461 |
22 |
21 |
24.18 |
1.16 |
| bin-true |
no-host |
672 |
538 |
2,274 |
806 |
801 |
3.39 |
1.20 |
| configure.cpython |
no-host |
15,085 |
14,868 |
28,487 |
15,019 |
15,124 |
1.89 |
1.00 |
| configure.ocaml |
no-host |
3,750 |
3,702 |
4,617 |
3,780 |
3,784 |
1.23 |
1.01 |
| configure.tcc |
no-host |
48 |
41 |
205 |
49 |
49 |
4.28 |
1.02 |
| configure.util-linux |
no-host |
13,864 |
14,701 |
30,901 |
14,166 |
14,120 |
2.23 |
1.02 |
| configure.yash |
no-host |
1,790 |
1,750 |
2,433 |
1,805 |
1,805 |
1.36 |
1.01 |
| hello-world |
no-host |
1 |
1 |
56 |
3 |
3 |
39.02 |
1.97 |
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,548 |
1,112 |
23,775 |
3,178 |
3,083 |
9.33 |
1.25 |
| bin-true |
no-host |
108,289 |
67,454 |
768,509 |
124,320 |
123,233 |
7.10 |
1.15 |
| configure.cpython |
no-host |
2,223,049 |
2,240,200 |
6,239,896 |
2,219,491 |
2,211,926 |
2.81 |
1.00 |
| configure.ocaml |
no-host |
410,366 |
391,431 |
647,135 |
412,555 |
412,373 |
1.58 |
1.01 |
| configure.tcc |
no-host |
6,585 |
5,463 |
24,128 |
6,969 |
6,886 |
3.66 |
1.06 |
| configure.util-linux |
no-host |
2,108,562 |
2,265,603 |
5,392,177 |
1,997,704 |
1,989,164 |
2.56 |
0.95 |
| configure.yash |
no-host |
255,859 |
245,130 |
388,385 |
257,093 |
257,123 |
1.52 |
1.00 |
| hello-world |
no-host |
152 |
81 |
3,939 |
347 |
339 |
25.91 |
2.28 |
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,782 |
3,782 |
0 |
694 |
1,858 |
1,230 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
806 |
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,019 |
1 |
60 |
14.9 |
27.3 |
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,166 |
3 |
59 |
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,780 |
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 |
49 |
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,805 |
1 |
2 |
2.5 |
24.4 |
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 |
9.2 |
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 |
801 |
1 |
2 |
2.6 |
7.7 |
153,745 |
12,111 |
2,825 |
8,744 |
76,322 |
68,679 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,124 |
1 |
59 |
14.9 |
27.4 |
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,120 |
3 |
59 |
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,784 |
1 |
2 |
2.6 |
20.6 |
150,080 |
11,050 |
5,145 |
7,510 |
70,969 |
71,601 |
1,695 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
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,805 |
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 |
12 |
8 |
4.3 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.5 |
dash |
| 23 |
no-host |
abuild-print-help |
461 |
428 |
36 |
22.6 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
17 |
5 |
9.2 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
11 |
10 |
8.7 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
672 |
502 |
200 |
3.0 |
bash |
| 9 |
no-host |
bin-true |
538 |
405 |
143 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,274 |
1,530 |
998 |
18.4 |
osh-cpython |
| 25 |
no-host |
bin-true |
806 |
599 |
224 |
8.1 |
osh-native |
| 33 |
no-host |
bin-true |
801 |
552 |
262 |
7.7 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
15,085 |
8,988 |
6,229 |
27.4 |
bash |
| 10 |
no-host |
configure.cpython |
14,868 |
9,047 |
6,238 |
27.4 |
dash |
| 18 |
no-host |
configure.cpython |
28,487 |
17,516 |
12,820 |
27.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,019 |
9,018 |
6,268 |
27.3 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,124 |
8,909 |
6,340 |
27.4 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,750 |
1,569 |
1,220 |
20.4 |
bash |
| 12 |
no-host |
configure.ocaml |
3,702 |
1,617 |
1,106 |
20.4 |
dash |
| 20 |
no-host |
configure.ocaml |
4,617 |
2,219 |
1,605 |
20.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,780 |
1,592 |
1,226 |
20.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,784 |
1,620 |
1,200 |
20.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
48 |
37 |
12 |
19.3 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
31 |
11 |
19.3 |
dash |
| 21 |
no-host |
configure.tcc |
205 |
152 |
57 |
19.3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
27 |
22 |
19.3 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
23 |
26 |
19.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
13,864 |
8,620 |
5,717 |
30.0 |
bash |
| 11 |
no-host |
configure.util-linux |
14,701 |
9,015 |
6,173 |
30.1 |
dash |
| 19 |
no-host |
configure.util-linux |
30,901 |
20,526 |
11,443 |
30.1 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,166 |
8,496 |
5,870 |
30.0 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,120 |
8,380 |
5,933 |
30.3 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,790 |
1,083 |
716 |
24.4 |
bash |
| 14 |
no-host |
configure.yash |
1,750 |
1,024 |
730 |
24.4 |
dash |
| 22 |
no-host |
configure.yash |
2,433 |
1,490 |
984 |
24.2 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,805 |
1,039 |
770 |
24.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,805 |
947 |
862 |
24.4 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
2.8 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
56 |
44 |
12 |
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,548 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
| 15 |
no-host |
abuild-print-help |
1,112 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
23,775 |
0 |
0 |
0 |
8 |
0 |
44 |
7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,178 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,083 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
108,289 |
0 |
0 |
0 |
8 |
0 |
1,991 |
45 |
bash |
| 9 |
no-host |
bin-true |
67,454 |
0 |
0 |
0 |
8 |
0 |
1,988 |
45 |
dash |
| 17 |
no-host |
bin-true |
768,509 |
0 |
0 |
0 |
8 |
0 |
1,998 |
125 |
osh-cpython |
| 25 |
no-host |
bin-true |
124,320 |
0 |
0 |
0 |
16 |
0 |
1,994 |
33 |
osh-native |
| 33 |
no-host |
bin-true |
123,233 |
0 |
0 |
0 |
16 |
0 |
1,992 |
142 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
2,223,049 |
0 |
0 |
0 |
32,928 |
0 |
14,545 |
1,185 |
bash |
| 10 |
no-host |
configure.cpython |
2,240,200 |
0 |
0 |
0 |
32,992 |
0 |
14,616 |
975 |
dash |
| 18 |
no-host |
configure.cpython |
6,239,896 |
1 |
0 |
0 |
27,512 |
0 |
13,297 |
1,143 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,219,491 |
1 |
0 |
0 |
27,520 |
0 |
13,282 |
968 |
osh-native |
| 34 |
no-host |
configure.cpython |
2,211,926 |
0 |
0 |
0 |
27,520 |
0 |
13,166 |
1,088 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
410,366 |
0 |
0 |
0 |
5,120 |
0 |
1,944 |
186 |
bash |
| 12 |
no-host |
configure.ocaml |
391,431 |
0 |
0 |
0 |
5,112 |
0 |
1,942 |
147 |
dash |
| 20 |
no-host |
configure.ocaml |
647,135 |
0 |
0 |
0 |
5,112 |
0 |
1,862 |
195 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
412,555 |
0 |
0 |
0 |
5,120 |
0 |
1,925 |
182 |
osh-native |
| 36 |
no-host |
configure.ocaml |
412,373 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
140 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,585 |
0 |
0 |
0 |
104 |
0 |
49 |
5 |
bash |
| 13 |
no-host |
configure.tcc |
5,463 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
24,128 |
0 |
0 |
0 |
96 |
0 |
53 |
17 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,969 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,886 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
2,108,562 |
0 |
0 |
0 |
42,408 |
0 |
18,615 |
1,027 |
bash |
| 11 |
no-host |
configure.util-linux |
2,265,603 |
1 |
0 |
0 |
42,592 |
0 |
17,446 |
1,156 |
dash |
| 19 |
no-host |
configure.util-linux |
5,392,177 |
4 |
0 |
0 |
39,112 |
0 |
16,972 |
1,181 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,997,704 |
1 |
0 |
0 |
39,120 |
0 |
17,025 |
1,042 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,989,164 |
0 |
0 |
0 |
39,136 |
0 |
16,925 |
914 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
255,859 |
0 |
0 |
0 |
4,120 |
0 |
866 |
68 |
bash |
| 14 |
no-host |
configure.yash |
245,130 |
0 |
0 |
0 |
3,720 |
0 |
866 |
67 |
dash |
| 22 |
no-host |
configure.yash |
388,385 |
0 |
0 |
0 |
3,728 |
0 |
851 |
99 |
osh-cpython |
| 30 |
no-host |
configure.yash |
257,093 |
0 |
0 |
0 |
3,736 |
0 |
845 |
72 |
osh-native |
| 38 |
no-host |
configure.yash |
257,123 |
0 |
0 |
0 |
3,736 |
0 |
849 |
73 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
81 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,939 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
| 24 |
no-host |
hello-world |
347 |
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