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 |
20 |
10 |
465 |
22 |
21 |
23.64 |
1.11 |
| bin-true |
no-host |
671 |
551 |
2,292 |
812 |
813 |
3.41 |
1.21 |
| configure.cpython |
no-host |
15,144 |
15,726 |
29,296 |
15,939 |
15,665 |
1.93 |
1.05 |
| configure.ocaml |
no-host |
3,956 |
3,794 |
4,657 |
3,869 |
3,891 |
1.18 |
0.98 |
| configure.tcc |
no-host |
50 |
43 |
205 |
49 |
49 |
4.13 |
0.99 |
| configure.util-linux |
no-host |
14,600 |
15,173 |
31,704 |
15,728 |
14,689 |
2.17 |
1.08 |
| configure.yash |
no-host |
1,894 |
1,792 |
2,485 |
1,855 |
1,857 |
1.31 |
0.98 |
| hello-world |
no-host |
2 |
1 |
58 |
3 |
3 |
35.18 |
1.69 |
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,561 |
1,103 |
23,759 |
3,172 |
3,066 |
9.28 |
1.24 |
| bin-true |
no-host |
104,294 |
65,426 |
768,573 |
128,285 |
127,232 |
7.37 |
1.23 |
| configure.cpython |
no-host |
2,214,481 |
2,245,149 |
6,245,643 |
2,213,744 |
2,207,394 |
2.82 |
1.00 |
| configure.ocaml |
no-host |
410,463 |
391,777 |
648,041 |
413,241 |
412,915 |
1.58 |
1.01 |
| configure.tcc |
no-host |
6,551 |
5,471 |
24,122 |
6,937 |
6,903 |
3.68 |
1.06 |
| configure.util-linux |
no-host |
2,092,796 |
2,263,753 |
5,399,368 |
1,996,380 |
1,988,045 |
2.58 |
0.95 |
| configure.yash |
no-host |
256,139 |
244,492 |
389,002 |
258,727 |
257,481 |
1.52 |
1.01 |
| hello-world |
no-host |
152 |
84 |
3,937 |
341 |
335 |
25.90 |
2.24 |
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 |
812 |
1 |
2 |
2.6 |
8.0 |
153,746 |
12,267 |
2,887 |
8,743 |
76,322 |
68,681 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,939 |
1 |
63 |
14.9 |
27.5 |
1,771,747 |
49,125 |
28,512 |
85,415 |
878,115 |
808,217 |
25,733 |
60 |
50,000 |
0 |
| configure.util-linux |
no-host |
15,728 |
3 |
60 |
21.2 |
30.1 |
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,869 |
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 |
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,855 |
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 |
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.6 |
153,745 |
12,111 |
2,825 |
8,744 |
76,322 |
68,679 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,665 |
1 |
62 |
14.9 |
27.5 |
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,689 |
3 |
61 |
21.2 |
30.1 |
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,891 |
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.4 |
30,586 |
30,586 |
0 |
1,520 |
14,641 |
14,425 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,857 |
1 |
2 |
2.5 |
24.5 |
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 |
20 |
16 |
4 |
4.5 |
bash |
| 15 |
no-host |
abuild-print-help |
10 |
9 |
0 |
3.5 |
dash |
| 23 |
no-host |
abuild-print-help |
465 |
407 |
61 |
22.6 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
22 |
0 |
8.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
14 |
8 |
8.7 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
671 |
505 |
197 |
3.0 |
bash |
| 9 |
no-host |
bin-true |
551 |
418 |
143 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,292 |
1,466 |
1,085 |
18.4 |
osh-cpython |
| 25 |
no-host |
bin-true |
812 |
590 |
236 |
8.0 |
osh-native |
| 33 |
no-host |
bin-true |
813 |
597 |
232 |
7.6 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
15,144 |
8,998 |
6,552 |
27.4 |
bash |
| 10 |
no-host |
configure.cpython |
15,726 |
9,399 |
6,766 |
27.4 |
dash |
| 18 |
no-host |
configure.cpython |
29,296 |
17,580 |
13,625 |
27.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,939 |
9,266 |
6,673 |
27.5 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,665 |
9,254 |
6,514 |
27.5 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,956 |
1,643 |
1,352 |
20.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,794 |
1,543 |
1,270 |
20.6 |
dash |
| 20 |
no-host |
configure.ocaml |
4,657 |
2,161 |
1,707 |
20.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,869 |
1,651 |
1,257 |
20.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,891 |
1,628 |
1,299 |
20.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
50 |
29 |
21 |
19.4 |
bash |
| 13 |
no-host |
configure.tcc |
43 |
33 |
10 |
19.3 |
dash |
| 21 |
no-host |
configure.tcc |
205 |
154 |
54 |
19.4 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
23 |
26 |
19.3 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
35 |
14 |
19.4 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
14,600 |
9,246 |
5,833 |
30.3 |
bash |
| 11 |
no-host |
configure.util-linux |
15,173 |
9,244 |
6,416 |
30.1 |
dash |
| 19 |
no-host |
configure.util-linux |
31,704 |
21,130 |
11,670 |
30.3 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
15,728 |
8,770 |
6,115 |
30.1 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,689 |
8,720 |
6,164 |
30.1 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,894 |
1,112 |
792 |
24.4 |
bash |
| 14 |
no-host |
configure.yash |
1,792 |
1,060 |
736 |
24.2 |
dash |
| 22 |
no-host |
configure.yash |
2,485 |
1,460 |
1,068 |
24.2 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,855 |
1,063 |
796 |
24.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,857 |
1,073 |
787 |
24.5 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
2 |
2 |
0 |
2.6 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
58 |
33 |
25 |
18.2 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
3 |
0 |
6.2 |
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,561 |
0 |
0 |
0 |
16 |
0 |
40 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,103 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
23,759 |
0 |
0 |
0 |
8 |
0 |
45 |
7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,172 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,066 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
104,294 |
0 |
0 |
0 |
8 |
0 |
1,997 |
42 |
bash |
| 9 |
no-host |
bin-true |
65,426 |
0 |
0 |
0 |
8 |
0 |
1,989 |
38 |
dash |
| 17 |
no-host |
bin-true |
768,573 |
0 |
0 |
0 |
8 |
0 |
1,999 |
129 |
osh-cpython |
| 25 |
no-host |
bin-true |
128,285 |
0 |
0 |
0 |
16 |
0 |
1,991 |
40 |
osh-native |
| 33 |
no-host |
bin-true |
127,232 |
0 |
0 |
0 |
16 |
0 |
1,994 |
69 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
2,214,481 |
0 |
0 |
0 |
32,928 |
0 |
14,490 |
961 |
bash |
| 10 |
no-host |
configure.cpython |
2,245,149 |
0 |
0 |
0 |
32,992 |
0 |
14,649 |
1,051 |
dash |
| 18 |
no-host |
configure.cpython |
6,245,643 |
0 |
0 |
0 |
27,512 |
0 |
13,251 |
1,254 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,213,744 |
0 |
0 |
0 |
27,520 |
0 |
13,199 |
1,177 |
osh-native |
| 34 |
no-host |
configure.cpython |
2,207,394 |
0 |
0 |
0 |
27,520 |
0 |
13,212 |
928 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
410,463 |
0 |
0 |
0 |
5,120 |
0 |
1,951 |
155 |
bash |
| 12 |
no-host |
configure.ocaml |
391,777 |
0 |
0 |
0 |
5,112 |
0 |
1,892 |
155 |
dash |
| 20 |
no-host |
configure.ocaml |
648,041 |
0 |
0 |
0 |
5,112 |
0 |
1,853 |
186 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
413,241 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
165 |
osh-native |
| 36 |
no-host |
configure.ocaml |
412,915 |
0 |
0 |
0 |
5,120 |
0 |
1,934 |
139 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,551 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
5,471 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
dash |
| 21 |
no-host |
configure.tcc |
24,122 |
0 |
0 |
0 |
96 |
0 |
53 |
10 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,937 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
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,092,796 |
0 |
0 |
0 |
42,400 |
0 |
18,669 |
1,079 |
bash |
| 11 |
no-host |
configure.util-linux |
2,263,753 |
0 |
0 |
0 |
42,592 |
0 |
17,396 |
1,072 |
dash |
| 19 |
no-host |
configure.util-linux |
5,399,368 |
5 |
0 |
0 |
39,136 |
0 |
16,997 |
1,246 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,996,380 |
0 |
0 |
0 |
39,120 |
0 |
16,987 |
953 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,988,045 |
0 |
0 |
0 |
39,136 |
0 |
16,975 |
1,031 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
256,139 |
0 |
0 |
0 |
4,120 |
0 |
868 |
71 |
bash |
| 14 |
no-host |
configure.yash |
244,492 |
0 |
0 |
0 |
3,720 |
0 |
870 |
61 |
dash |
| 22 |
no-host |
configure.yash |
389,002 |
0 |
0 |
0 |
3,728 |
0 |
852 |
86 |
osh-cpython |
| 30 |
no-host |
configure.yash |
258,727 |
0 |
0 |
0 |
3,736 |
0 |
849 |
75 |
osh-native |
| 38 |
no-host |
configure.yash |
257,481 |
0 |
0 |
0 |
3,736 |
0 |
848 |
77 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
bash |
| 8 |
no-host |
hello-world |
84 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,937 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
| 24 |
no-host |
hello-world |
341 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
335 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host