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 |
470 |
22 |
21 |
24.42 |
1.16 |
| bin-true |
no-host |
676 |
542 |
2,323 |
814 |
813 |
3.44 |
1.20 |
| configure.cpython |
no-host |
15,295 |
15,242 |
29,242 |
15,510 |
15,648 |
1.91 |
1.01 |
| configure.ocaml |
no-host |
3,864 |
3,778 |
4,739 |
3,868 |
3,863 |
1.23 |
1.00 |
| configure.tcc |
no-host |
48 |
42 |
208 |
50 |
50 |
4.37 |
1.05 |
| configure.util-linux |
no-host |
14,303 |
15,141 |
31,948 |
14,680 |
14,590 |
2.23 |
1.03 |
| configure.yash |
no-host |
1,839 |
1,805 |
2,503 |
1,861 |
1,848 |
1.36 |
1.01 |
| hello-world |
no-host |
2 |
1 |
58 |
3 |
3 |
37.61 |
1.86 |
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,544 |
1,083 |
23,769 |
3,201 |
3,075 |
9.34 |
1.26 |
| bin-true |
no-host |
105,396 |
65,410 |
769,534 |
126,251 |
126,251 |
7.30 |
1.20 |
| configure.cpython |
no-host |
2,222,199 |
2,237,785 |
6,245,494 |
2,223,704 |
2,205,403 |
2.81 |
1.00 |
| configure.ocaml |
no-host |
410,894 |
391,024 |
647,623 |
412,333 |
412,605 |
1.58 |
1.00 |
| configure.tcc |
no-host |
6,560 |
5,463 |
24,130 |
6,940 |
6,903 |
3.68 |
1.06 |
| configure.util-linux |
no-host |
2,102,071 |
2,263,693 |
5,389,623 |
1,992,279 |
1,992,109 |
2.56 |
0.95 |
| configure.yash |
no-host |
256,507 |
243,661 |
388,490 |
258,617 |
257,524 |
1.51 |
1.01 |
| hello-world |
no-host |
150 |
79 |
3,940 |
344 |
336 |
26.27 |
2.29 |
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.2 |
3,782 |
3,782 |
0 |
694 |
1,858 |
1,230 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
814 |
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,510 |
1 |
64 |
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,680 |
3 |
62 |
21.2 |
30.1 |
2,702,513 |
53,766 |
65,691 |
108,691 |
1,290,640 |
1,303,182 |
32,239 |
41 |
131,382 |
1 |
| configure.ocaml |
no-host |
3,868 |
1 |
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 |
50 |
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,861 |
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.8 |
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 |
813 |
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,648 |
1 |
64 |
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,590 |
3 |
63 |
21.2 |
30.1 |
2,702,513 |
53,693 |
65,629 |
108,693 |
1,290,640 |
1,303,180 |
32,239 |
41 |
131,258 |
1 |
| configure.ocaml |
no-host |
3,863 |
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 |
50 |
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,848 |
1 |
2 |
2.5 |
24.2 |
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 |
8 |
12 |
4.5 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.5 |
dash |
| 23 |
no-host |
abuild-print-help |
470 |
433 |
40 |
22.5 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
14 |
8 |
8.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
19 |
3 |
8.7 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
676 |
492 |
213 |
2.9 |
bash |
| 9 |
no-host |
bin-true |
542 |
415 |
138 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,323 |
1,473 |
1,112 |
18.4 |
osh-cpython |
| 25 |
no-host |
bin-true |
814 |
578 |
250 |
8.1 |
osh-native |
| 33 |
no-host |
bin-true |
813 |
605 |
221 |
7.7 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
15,295 |
9,175 |
6,508 |
27.4 |
bash |
| 10 |
no-host |
configure.cpython |
15,242 |
9,190 |
6,468 |
27.4 |
dash |
| 18 |
no-host |
configure.cpython |
29,242 |
17,624 |
13,514 |
27.5 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,510 |
9,167 |
6,607 |
27.4 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,648 |
9,189 |
6,596 |
27.4 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,864 |
1,638 |
1,264 |
20.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,778 |
1,592 |
1,204 |
20.6 |
dash |
| 20 |
no-host |
configure.ocaml |
4,739 |
2,339 |
1,613 |
20.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,868 |
1,690 |
1,214 |
20.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,863 |
1,642 |
1,259 |
20.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
48 |
26 |
22 |
19.3 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
25 |
18 |
19.3 |
dash |
| 21 |
no-host |
configure.tcc |
208 |
150 |
62 |
19.4 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
50 |
18 |
32 |
19.3 |
osh-native |
| 37 |
no-host |
configure.tcc |
50 |
33 |
17 |
19.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
14,303 |
8,975 |
5,814 |
30.0 |
bash |
| 11 |
no-host |
configure.util-linux |
15,141 |
9,295 |
6,296 |
30.0 |
dash |
| 19 |
no-host |
configure.util-linux |
31,948 |
21,223 |
11,841 |
30.1 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,680 |
9,009 |
5,814 |
30.1 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,590 |
8,665 |
6,118 |
30.1 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,839 |
1,120 |
728 |
24.4 |
bash |
| 14 |
no-host |
configure.yash |
1,805 |
1,006 |
803 |
24.2 |
dash |
| 22 |
no-host |
configure.yash |
2,503 |
1,586 |
961 |
24.2 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,861 |
1,064 |
801 |
24.2 |
osh-native |
| 38 |
no-host |
configure.yash |
1,848 |
1,049 |
800 |
24.2 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.3 |
dash |
| 16 |
no-host |
hello-world |
58 |
29 |
28 |
18.2 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
6.2 |
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,544 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,083 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
23,769 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,201 |
0 |
0 |
0 |
16 |
0 |
39 |
4 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,075 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
105,396 |
0 |
0 |
0 |
8 |
0 |
1,994 |
46 |
bash |
| 9 |
no-host |
bin-true |
65,410 |
0 |
0 |
0 |
8 |
0 |
1,984 |
70 |
dash |
| 17 |
no-host |
bin-true |
769,534 |
0 |
0 |
0 |
8 |
0 |
2,000 |
225 |
osh-cpython |
| 25 |
no-host |
bin-true |
126,251 |
0 |
0 |
0 |
16 |
0 |
1,986 |
54 |
osh-native |
| 33 |
no-host |
bin-true |
126,251 |
0 |
0 |
0 |
16 |
0 |
1,992 |
53 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
2,222,199 |
0 |
0 |
0 |
32,928 |
0 |
14,563 |
983 |
bash |
| 10 |
no-host |
configure.cpython |
2,237,785 |
0 |
0 |
0 |
32,992 |
0 |
14,646 |
986 |
dash |
| 18 |
no-host |
configure.cpython |
6,245,494 |
0 |
0 |
0 |
27,512 |
0 |
13,263 |
1,212 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,223,704 |
0 |
0 |
0 |
27,520 |
0 |
13,262 |
1,001 |
osh-native |
| 34 |
no-host |
configure.cpython |
2,205,403 |
0 |
0 |
0 |
27,520 |
0 |
13,238 |
955 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
410,894 |
0 |
0 |
0 |
5,120 |
0 |
1,947 |
169 |
bash |
| 12 |
no-host |
configure.ocaml |
391,024 |
0 |
0 |
0 |
5,112 |
0 |
1,877 |
137 |
dash |
| 20 |
no-host |
configure.ocaml |
647,623 |
0 |
0 |
0 |
5,112 |
0 |
1,859 |
181 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
412,333 |
0 |
0 |
0 |
5,120 |
0 |
1,925 |
158 |
osh-native |
| 36 |
no-host |
configure.ocaml |
412,605 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
211 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,560 |
0 |
0 |
0 |
104 |
0 |
49 |
5 |
bash |
| 13 |
no-host |
configure.tcc |
5,463 |
0 |
0 |
0 |
96 |
0 |
46 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
24,130 |
0 |
0 |
0 |
96 |
0 |
53 |
9 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,940 |
0 |
0 |
0 |
104 |
0 |
47 |
5 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,903 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
2,102,071 |
1 |
0 |
0 |
42,400 |
0 |
18,520 |
970 |
bash |
| 11 |
no-host |
configure.util-linux |
2,263,693 |
0 |
0 |
0 |
42,592 |
0 |
17,493 |
1,041 |
dash |
| 19 |
no-host |
configure.util-linux |
5,389,623 |
3 |
0 |
0 |
39,120 |
0 |
16,926 |
1,173 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,992,279 |
0 |
0 |
0 |
39,128 |
0 |
16,984 |
1,000 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,992,109 |
2 |
0 |
0 |
39,136 |
0 |
16,960 |
996 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
256,507 |
0 |
0 |
0 |
4,120 |
0 |
867 |
85 |
bash |
| 14 |
no-host |
configure.yash |
243,661 |
0 |
0 |
0 |
3,720 |
0 |
869 |
79 |
dash |
| 22 |
no-host |
configure.yash |
388,490 |
0 |
0 |
0 |
3,728 |
0 |
853 |
81 |
osh-cpython |
| 30 |
no-host |
configure.yash |
258,617 |
0 |
0 |
0 |
3,736 |
0 |
849 |
89 |
osh-native |
| 38 |
no-host |
configure.yash |
257,524 |
0 |
0 |
0 |
3,736 |
0 |
849 |
95 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
79 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,940 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
| 24 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
336 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host