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 |
18 |
9 |
478 |
22 |
21 |
25.86 |
1.18 |
bin-true |
no-host |
654 |
529 |
2,275 |
805 |
784 |
3.48 |
1.23 |
configure.cpython |
no-host |
14,497 |
14,733 |
28,480 |
14,619 |
14,867 |
1.96 |
1.01 |
configure.ocaml |
no-host |
3,743 |
3,632 |
4,579 |
3,722 |
3,740 |
1.22 |
0.99 |
configure.tcc |
no-host |
46 |
40 |
203 |
46 |
46 |
4.39 |
0.99 |
configure.util-linux |
no-host |
13,479 |
14,228 |
30,901 |
13,812 |
13,744 |
2.29 |
1.02 |
configure.yash |
no-host |
1,777 |
1,723 |
2,436 |
1,770 |
1,787 |
1.37 |
1.00 |
hello-world |
no-host |
1 |
1 |
55 |
3 |
3 |
42.41 |
2.17 |
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,509 |
1,085 |
23,853 |
3,197 |
3,101 |
9.51 |
1.27 |
bin-true |
no-host |
105,357 |
66,466 |
779,406 |
129,169 |
125,220 |
7.40 |
1.23 |
configure.cpython |
no-host |
1,993,970 |
2,018,441 |
6,055,936 |
1,998,073 |
1,993,551 |
3.04 |
1.00 |
configure.ocaml |
no-host |
373,129 |
353,649 |
611,291 |
376,540 |
375,357 |
1.64 |
1.01 |
configure.tcc |
no-host |
6,060 |
4,995 |
23,721 |
6,523 |
6,431 |
3.91 |
1.08 |
configure.util-linux |
no-host |
1,902,066 |
2,066,740 |
5,221,450 |
1,807,995 |
1,793,819 |
2.75 |
0.95 |
configure.yash |
no-host |
232,816 |
222,329 |
367,106 |
234,978 |
234,839 |
1.58 |
1.01 |
hello-world |
no-host |
148 |
76 |
3,962 |
343 |
336 |
26.77 |
2.32 |
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 |
695 |
1,861 |
1,233 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
805 |
1 |
2 |
2.6 |
8.1 |
153,753 |
12,329 |
2,894 |
8,744 |
76,325 |
68,684 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
14,619 |
1 |
64 |
14.9 |
29.1 |
1,767,675 |
49,060 |
28,519 |
85,428 |
875,384 |
806,863 |
25,736 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
13,812 |
3 |
63 |
21.2 |
30.2 |
2,698,991 |
29,940 |
65,718 |
108,700 |
1,288,281 |
1,302,010 |
32,241 |
41 |
131,436 |
1 |
configure.ocaml |
no-host |
3,722 |
1 |
2 |
2.6 |
22.5 |
149,553 |
11,119 |
5,214 |
7,509 |
70,616 |
71,428 |
1,695 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
46 |
0 |
0 |
1.3 |
19.7 |
30,539 |
30,539 |
0 |
1,519 |
14,608 |
14,412 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,770 |
1 |
2 |
2.5 |
26.5 |
139,269 |
8,031 |
6,693 |
5,990 |
67,845 |
65,434 |
2,095 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,299 |
64,410 |
42,620 |
4,533 |
54,439 |
57,327 |
277 |
3 |
85,240 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.9 |
3,788 |
3,788 |
0 |
696 |
1,861 |
1,231 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
784 |
1 |
2 |
2.6 |
7.9 |
153,752 |
12,118 |
2,832 |
8,745 |
76,325 |
68,682 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
14,867 |
1 |
70 |
14.9 |
29.3 |
1,767,674 |
37,983 |
24,932 |
85,429 |
875,384 |
806,861 |
25,736 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
13,744 |
3 |
63 |
21.2 |
30.1 |
2,698,991 |
29,878 |
65,656 |
108,702 |
1,288,281 |
1,302,008 |
32,241 |
41 |
131,312 |
1 |
configure.ocaml |
no-host |
3,740 |
1 |
2 |
2.6 |
22.6 |
149,553 |
11,057 |
5,152 |
7,511 |
70,616 |
71,426 |
1,695 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
46 |
0 |
0 |
1.3 |
19.6 |
30,539 |
30,539 |
0 |
1,521 |
14,608 |
14,410 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,787 |
1 |
2 |
2.5 |
26.3 |
139,269 |
7,969 |
6,631 |
5,992 |
67,845 |
65,432 |
2,095 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.7 |
116,298 |
64,348 |
42,558 |
4,534 |
54,439 |
57,325 |
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 |
18 |
11 |
8 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
5 |
4 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
478 |
420 |
61 |
22.7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
15 |
7 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
10 |
11 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
654 |
301 |
386 |
3.0 |
bash |
9 |
no-host |
bin-true |
529 |
280 |
260 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,275 |
753 |
1,780 |
18.3 |
osh-cpython |
25 |
no-host |
bin-true |
805 |
300 |
522 |
8.1 |
osh-native |
33 |
no-host |
bin-true |
784 |
304 |
497 |
7.9 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
14,497 |
6,514 |
8,395 |
29.1 |
bash |
10 |
no-host |
configure.cpython |
14,733 |
6,613 |
8,566 |
29.3 |
dash |
18 |
no-host |
configure.cpython |
28,480 |
14,198 |
16,172 |
29.1 |
osh-cpython |
26 |
no-host |
configure.cpython |
14,619 |
6,415 |
8,487 |
29.1 |
osh-native |
34 |
no-host |
configure.cpython |
14,867 |
6,654 |
8,499 |
29.3 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,743 |
1,329 |
1,453 |
22.6 |
bash |
12 |
no-host |
configure.ocaml |
3,632 |
1,268 |
1,384 |
22.5 |
dash |
20 |
no-host |
configure.ocaml |
4,579 |
1,848 |
1,942 |
22.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,722 |
1,278 |
1,484 |
22.5 |
osh-native |
36 |
no-host |
configure.ocaml |
3,740 |
1,251 |
1,526 |
22.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
46 |
17 |
30 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
40 |
19 |
21 |
19.7 |
dash |
21 |
no-host |
configure.tcc |
203 |
141 |
66 |
19.5 |
osh-cpython |
29 |
no-host |
configure.tcc |
46 |
23 |
23 |
19.7 |
osh-native |
37 |
no-host |
configure.tcc |
46 |
20 |
26 |
19.6 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
13,479 |
5,813 |
8,162 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
14,228 |
5,753 |
8,993 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
30,901 |
17,541 |
14,435 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
13,812 |
5,465 |
8,569 |
30.2 |
osh-native |
35 |
no-host |
configure.util-linux |
13,744 |
5,520 |
8,449 |
30.1 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,777 |
911 |
876 |
26.3 |
bash |
14 |
no-host |
configure.yash |
1,723 |
889 |
838 |
26.2 |
dash |
22 |
no-host |
configure.yash |
2,436 |
1,332 |
1,147 |
26.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,770 |
840 |
935 |
26.5 |
osh-native |
38 |
no-host |
configure.yash |
1,787 |
853 |
939 |
26.3 |
osh-native-souffle |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
16 |
no-host |
hello-world |
55 |
38 |
17 |
18.3 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
1 |
2 |
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,509 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,085 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,853 |
0 |
0 |
0 |
8 |
0 |
45 |
3 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,197 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
39 |
no-host |
abuild-print-help |
3,101 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native-souffle |
1 |
no-host |
bin-true |
105,357 |
0 |
0 |
0 |
8 |
0 |
1,990 |
192 |
bash |
9 |
no-host |
bin-true |
66,466 |
0 |
0 |
0 |
8 |
0 |
1,970 |
124 |
dash |
17 |
no-host |
bin-true |
779,406 |
0 |
0 |
0 |
8 |
0 |
1,968 |
294 |
osh-cpython |
25 |
no-host |
bin-true |
129,169 |
0 |
0 |
0 |
16 |
0 |
1,973 |
266 |
osh-native |
33 |
no-host |
bin-true |
125,220 |
0 |
0 |
0 |
16 |
0 |
1,968 |
114 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
1,993,970 |
0 |
0 |
0 |
32,928 |
0 |
14,237 |
1,225 |
bash |
10 |
no-host |
configure.cpython |
2,018,441 |
0 |
0 |
0 |
32,992 |
0 |
14,445 |
1,268 |
dash |
18 |
no-host |
configure.cpython |
6,055,936 |
0 |
0 |
0 |
27,512 |
0 |
13,100 |
1,139 |
osh-cpython |
26 |
no-host |
configure.cpython |
1,998,073 |
1 |
0 |
0 |
27,520 |
0 |
13,058 |
1,209 |
osh-native |
34 |
no-host |
configure.cpython |
1,993,551 |
0 |
0 |
0 |
27,520 |
0 |
13,044 |
1,126 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
373,129 |
0 |
0 |
0 |
5,120 |
0 |
1,962 |
190 |
bash |
12 |
no-host |
configure.ocaml |
353,649 |
0 |
0 |
0 |
5,112 |
0 |
1,930 |
216 |
dash |
20 |
no-host |
configure.ocaml |
611,291 |
1 |
0 |
0 |
5,112 |
0 |
1,855 |
191 |
osh-cpython |
28 |
no-host |
configure.ocaml |
376,540 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
213 |
osh-native |
36 |
no-host |
configure.ocaml |
375,357 |
0 |
0 |
0 |
5,120 |
0 |
1,914 |
186 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,060 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
4,995 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,721 |
0 |
0 |
0 |
96 |
0 |
53 |
9 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,523 |
0 |
0 |
0 |
104 |
0 |
47 |
8 |
osh-native |
37 |
no-host |
configure.tcc |
6,431 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
1,902,066 |
1 |
0 |
0 |
42,400 |
0 |
18,437 |
1,182 |
bash |
11 |
no-host |
configure.util-linux |
2,066,740 |
0 |
0 |
0 |
42,584 |
0 |
17,324 |
1,359 |
dash |
19 |
no-host |
configure.util-linux |
5,221,450 |
15 |
0 |
0 |
39,112 |
0 |
17,027 |
1,393 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,807,995 |
1 |
0 |
0 |
39,120 |
0 |
17,000 |
1,213 |
osh-native |
35 |
no-host |
configure.util-linux |
1,793,819 |
2 |
0 |
0 |
39,128 |
0 |
16,909 |
1,206 |
osh-native-souffle |
6 |
no-host |
configure.yash |
232,816 |
0 |
0 |
0 |
4,120 |
0 |
869 |
98 |
bash |
14 |
no-host |
configure.yash |
222,329 |
0 |
0 |
0 |
3,720 |
0 |
868 |
101 |
dash |
22 |
no-host |
configure.yash |
367,106 |
0 |
0 |
0 |
3,728 |
0 |
856 |
86 |
osh-cpython |
30 |
no-host |
configure.yash |
234,978 |
0 |
0 |
0 |
3,736 |
0 |
849 |
105 |
osh-native |
38 |
no-host |
configure.yash |
234,839 |
0 |
0 |
0 |
3,736 |
0 |
849 |
85 |
osh-native-souffle |
0 |
no-host |
hello-world |
148 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
76 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,962 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
24 |
no-host |
hello-world |
343 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
336 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native-souffle |
Shell and Host