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 |
10 |
470 |
23 |
21 |
24.32 |
1.18 |
bin-true |
no-host |
683 |
550 |
2,284 |
817 |
820 |
3.34 |
1.20 |
configure.cpython |
no-host |
15,220 |
15,427 |
29,511 |
15,555 |
15,839 |
1.94 |
1.02 |
configure.ocaml |
no-host |
3,886 |
3,828 |
4,731 |
3,920 |
3,907 |
1.22 |
1.01 |
configure.tcc |
no-host |
48 |
42 |
205 |
49 |
49 |
4.29 |
1.03 |
configure.util-linux |
no-host |
14,345 |
15,101 |
31,937 |
14,627 |
14,662 |
2.23 |
1.02 |
configure.yash |
no-host |
1,869 |
1,807 |
2,508 |
1,874 |
1,871 |
1.34 |
1.00 |
hello-world |
no-host |
1 |
1 |
57 |
3 |
3 |
38.32 |
1.90 |
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,511 |
1,140 |
23,521 |
3,217 |
3,126 |
9.37 |
1.28 |
bin-true |
no-host |
104,312 |
65,439 |
761,041 |
127,168 |
124,266 |
7.30 |
1.22 |
configure.cpython |
no-host |
2,221,066 |
2,242,063 |
6,199,327 |
2,226,196 |
2,215,967 |
2.79 |
1.00 |
configure.ocaml |
no-host |
410,610 |
391,117 |
643,311 |
412,929 |
411,838 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,560 |
5,458 |
23,911 |
6,963 |
6,903 |
3.64 |
1.06 |
configure.util-linux |
no-host |
2,093,627 |
2,263,949 |
5,358,033 |
1,997,000 |
1,991,330 |
2.56 |
0.95 |
configure.yash |
no-host |
256,606 |
244,665 |
386,289 |
257,392 |
258,244 |
1.51 |
1.00 |
hello-world |
no-host |
152 |
83 |
3,956 |
344 |
337 |
26.03 |
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.3 |
3,789 |
3,789 |
0 |
694 |
1,861 |
1,234 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
817 |
1 |
2 |
2.6 |
8.3 |
153,753 |
12,329 |
2,894 |
8,743 |
76,325 |
68,685 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,555 |
2 |
65 |
14.9 |
27.5 |
1,771,800 |
49,612 |
28,519 |
85,427 |
878,134 |
808,239 |
25,736 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,627 |
3 |
63 |
21.2 |
30.1 |
2,702,546 |
53,773 |
65,698 |
108,699 |
1,290,651 |
1,303,196 |
32,241 |
41 |
131,396 |
1 |
configure.ocaml |
no-host |
3,920 |
1 |
2 |
2.6 |
20.4 |
150,087 |
11,119 |
5,214 |
7,508 |
70,972 |
71,607 |
1,695 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,593 |
30,593 |
0 |
1,518 |
14,644 |
14,431 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,874 |
1 |
2 |
2.5 |
24.4 |
139,419 |
8,031 |
6,693 |
5,989 |
67,945 |
65,485 |
2,095 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
9.2 |
116,299 |
64,410 |
42,620 |
4,532 |
54,439 |
57,328 |
277 |
3 |
85,240 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.9 |
3,788 |
3,788 |
0 |
695 |
1,861 |
1,232 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
820 |
1 |
2 |
2.6 |
7.7 |
153,752 |
12,118 |
2,832 |
8,744 |
76,325 |
68,683 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,839 |
1 |
64 |
14.9 |
27.4 |
1,771,799 |
49,070 |
28,457 |
85,428 |
878,134 |
808,237 |
25,736 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,662 |
3 |
62 |
21.2 |
30.0 |
2,702,546 |
53,700 |
65,656 |
108,701 |
1,290,651 |
1,303,194 |
32,241 |
41 |
131,312 |
1 |
configure.ocaml |
no-host |
3,907 |
1 |
2 |
2.6 |
20.4 |
150,087 |
11,057 |
5,152 |
7,510 |
70,972 |
71,605 |
1,695 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,593 |
30,593 |
0 |
1,520 |
14,644 |
14,429 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,871 |
1 |
2 |
2.5 |
24.4 |
139,419 |
7,969 |
6,631 |
5,991 |
67,945 |
65,483 |
2,095 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.4 |
116,298 |
64,348 |
42,558 |
4,533 |
54,439 |
57,326 |
277 |
3 |
85,116 |
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 |
17 |
3 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
4 |
6 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
470 |
402 |
70 |
22.3 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
15 |
8 |
9.2 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
17 |
5 |
8.4 |
osh-native-souffle |
1 |
no-host |
bin-true |
683 |
513 |
200 |
3.0 |
bash |
9 |
no-host |
bin-true |
550 |
423 |
136 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,284 |
1,474 |
1,067 |
18.4 |
osh-cpython |
25 |
no-host |
bin-true |
817 |
567 |
264 |
8.3 |
osh-native |
33 |
no-host |
bin-true |
820 |
581 |
253 |
7.7 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,220 |
9,123 |
6,506 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,427 |
9,292 |
6,561 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,511 |
17,889 |
13,525 |
27.1 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,555 |
9,156 |
6,654 |
27.5 |
osh-native |
34 |
no-host |
configure.cpython |
15,839 |
9,051 |
6,902 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,886 |
1,672 |
1,247 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,828 |
1,627 |
1,217 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,731 |
2,283 |
1,665 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,920 |
1,664 |
1,295 |
20.4 |
osh-native |
36 |
no-host |
configure.ocaml |
3,907 |
1,678 |
1,263 |
20.4 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
31 |
18 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
26 |
16 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
205 |
155 |
53 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
38 |
12 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
49 |
29 |
20 |
19.4 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,345 |
9,108 |
5,706 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,101 |
9,164 |
6,443 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,937 |
21,223 |
11,826 |
30.4 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,627 |
8,870 |
5,950 |
30.1 |
osh-native |
35 |
no-host |
configure.util-linux |
14,662 |
8,896 |
5,966 |
30.0 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,869 |
1,058 |
819 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,807 |
1,113 |
695 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,508 |
1,480 |
1,070 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,874 |
1,040 |
838 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,871 |
1,011 |
863 |
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 |
57 |
29 |
28 |
18.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.3 |
osh-native |
32 |
no-host |
hello-world |
3 |
0 |
3 |
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,511 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,140 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,521 |
0 |
0 |
0 |
8 |
0 |
45 |
6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,217 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
39 |
no-host |
abuild-print-help |
3,126 |
0 |
0 |
0 |
16 |
0 |
38 |
0 |
osh-native-souffle |
1 |
no-host |
bin-true |
104,312 |
0 |
0 |
0 |
8 |
0 |
1,991 |
59 |
bash |
9 |
no-host |
bin-true |
65,439 |
0 |
0 |
0 |
8 |
0 |
1,985 |
39 |
dash |
17 |
no-host |
bin-true |
761,041 |
0 |
0 |
0 |
8 |
0 |
1,997 |
95 |
osh-cpython |
25 |
no-host |
bin-true |
127,168 |
0 |
0 |
0 |
16 |
0 |
1,985 |
41 |
osh-native |
33 |
no-host |
bin-true |
124,266 |
0 |
0 |
0 |
16 |
0 |
1,990 |
132 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,221,066 |
0 |
0 |
0 |
32,928 |
0 |
14,517 |
967 |
bash |
10 |
no-host |
configure.cpython |
2,242,063 |
0 |
0 |
0 |
32,992 |
0 |
14,570 |
935 |
dash |
18 |
no-host |
configure.cpython |
6,199,327 |
0 |
0 |
0 |
27,512 |
0 |
13,289 |
1,122 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,226,196 |
0 |
0 |
0 |
27,520 |
0 |
13,189 |
924 |
osh-native |
34 |
no-host |
configure.cpython |
2,215,967 |
0 |
0 |
0 |
27,520 |
0 |
13,281 |
894 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,610 |
0 |
0 |
0 |
5,120 |
0 |
1,953 |
165 |
bash |
12 |
no-host |
configure.ocaml |
391,117 |
0 |
0 |
0 |
5,112 |
0 |
1,909 |
199 |
dash |
20 |
no-host |
configure.ocaml |
643,311 |
1 |
0 |
0 |
5,112 |
0 |
1,867 |
161 |
osh-cpython |
28 |
no-host |
configure.ocaml |
412,929 |
0 |
0 |
0 |
5,120 |
0 |
1,929 |
151 |
osh-native |
36 |
no-host |
configure.ocaml |
411,838 |
0 |
0 |
0 |
5,120 |
0 |
1,935 |
156 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,560 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,458 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,911 |
0 |
0 |
0 |
96 |
0 |
53 |
17 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,963 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
37 |
no-host |
configure.tcc |
6,903 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,093,627 |
1 |
0 |
0 |
42,400 |
0 |
18,578 |
1,028 |
bash |
11 |
no-host |
configure.util-linux |
2,263,949 |
0 |
0 |
0 |
42,584 |
0 |
17,452 |
962 |
dash |
19 |
no-host |
configure.util-linux |
5,358,033 |
16 |
0 |
0 |
39,112 |
0 |
17,001 |
1,147 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,997,000 |
1 |
0 |
0 |
39,120 |
0 |
16,983 |
905 |
osh-native |
35 |
no-host |
configure.util-linux |
1,991,330 |
0 |
0 |
0 |
39,136 |
0 |
16,985 |
869 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,606 |
0 |
0 |
0 |
4,120 |
0 |
869 |
88 |
bash |
14 |
no-host |
configure.yash |
244,665 |
0 |
0 |
0 |
3,720 |
0 |
869 |
84 |
dash |
22 |
no-host |
configure.yash |
386,289 |
0 |
0 |
0 |
3,728 |
0 |
855 |
86 |
osh-cpython |
30 |
no-host |
configure.yash |
257,392 |
0 |
0 |
0 |
3,736 |
0 |
849 |
87 |
osh-native |
38 |
no-host |
configure.yash |
258,244 |
0 |
0 |
0 |
3,736 |
0 |
851 |
87 |
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,956 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
24 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
337 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host