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 |
465 |
22 |
21 |
24.19 |
1.14 |
| bin-true |
no-host |
681 |
543 |
2,273 |
817 |
817 |
3.34 |
1.20 |
| configure.cpython |
no-host |
15,129 |
15,107 |
28,944 |
15,366 |
15,780 |
1.91 |
1.02 |
| configure.ocaml |
no-host |
3,821 |
3,747 |
4,665 |
3,876 |
3,863 |
1.22 |
1.01 |
| configure.tcc |
no-host |
48 |
42 |
201 |
50 |
49 |
4.18 |
1.03 |
| configure.util-linux |
no-host |
14,064 |
15,011 |
31,741 |
14,544 |
14,325 |
2.26 |
1.03 |
| configure.yash |
no-host |
1,819 |
1,783 |
2,499 |
1,851 |
1,867 |
1.37 |
1.02 |
| hello-world |
no-host |
1 |
1 |
56 |
3 |
3 |
37.74 |
1.93 |
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,531 |
1,105 |
23,770 |
3,165 |
3,091 |
9.39 |
1.25 |
| bin-true |
no-host |
106,325 |
65,426 |
770,593 |
127,209 |
127,236 |
7.25 |
1.20 |
| configure.cpython |
no-host |
2,222,696 |
2,245,279 |
6,257,753 |
2,213,064 |
2,200,919 |
2.82 |
1.00 |
| configure.ocaml |
no-host |
410,798 |
391,610 |
647,380 |
412,828 |
412,242 |
1.58 |
1.00 |
| configure.tcc |
no-host |
6,565 |
5,477 |
24,150 |
6,978 |
6,905 |
3.68 |
1.06 |
| configure.util-linux |
no-host |
2,092,262 |
2,268,288 |
5,392,589 |
2,001,734 |
1,987,375 |
2.58 |
0.96 |
| configure.yash |
no-host |
255,128 |
245,221 |
389,004 |
257,644 |
257,636 |
1.52 |
1.01 |
| hello-world |
no-host |
152 |
82 |
3,938 |
348 |
336 |
25.91 |
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.4 |
3,782 |
3,782 |
0 |
694 |
1,858 |
1,230 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
817 |
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,366 |
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,544 |
3 |
63 |
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,876 |
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,851 |
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 |
9.0 |
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 |
6.0 |
3,781 |
3,781 |
0 |
695 |
1,858 |
1,228 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
817 |
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,780 |
2 |
65 |
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,325 |
3 |
60 |
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,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 |
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,867 |
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 |
10 |
8 |
2 |
3.4 |
dash |
| 23 |
no-host |
abuild-print-help |
465 |
421 |
47 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
14 |
9 |
9.0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
20 |
1 |
8.7 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
681 |
518 |
192 |
2.9 |
bash |
| 9 |
no-host |
bin-true |
543 |
419 |
132 |
1.3 |
dash |
| 17 |
no-host |
bin-true |
2,273 |
1,463 |
1,068 |
18.4 |
osh-cpython |
| 25 |
no-host |
bin-true |
817 |
586 |
244 |
8.1 |
osh-native |
| 33 |
no-host |
bin-true |
817 |
571 |
261 |
7.6 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
15,129 |
9,137 |
6,396 |
27.4 |
bash |
| 10 |
no-host |
configure.cpython |
15,107 |
9,228 |
6,296 |
27.3 |
dash |
| 18 |
no-host |
configure.cpython |
28,944 |
17,714 |
13,101 |
27.5 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,366 |
9,262 |
6,374 |
27.4 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,780 |
9,122 |
6,776 |
27.4 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,821 |
1,597 |
1,258 |
20.4 |
bash |
| 12 |
no-host |
configure.ocaml |
3,747 |
1,599 |
1,168 |
20.4 |
dash |
| 20 |
no-host |
configure.ocaml |
4,665 |
2,298 |
1,574 |
20.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,876 |
1,706 |
1,210 |
20.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,863 |
1,604 |
1,294 |
20.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
48 |
28 |
21 |
19.3 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
30 |
12 |
19.3 |
dash |
| 21 |
no-host |
configure.tcc |
201 |
140 |
64 |
19.3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
50 |
30 |
20 |
19.3 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
29 |
20 |
19.4 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
14,064 |
8,979 |
5,527 |
30.1 |
bash |
| 11 |
no-host |
configure.util-linux |
15,011 |
9,279 |
6,226 |
30.0 |
dash |
| 19 |
no-host |
configure.util-linux |
31,741 |
20,921 |
11,914 |
30.1 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,544 |
8,700 |
6,032 |
30.1 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,325 |
8,598 |
5,928 |
30.1 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,819 |
1,081 |
748 |
24.2 |
bash |
| 14 |
no-host |
configure.yash |
1,783 |
1,064 |
722 |
24.4 |
dash |
| 22 |
no-host |
configure.yash |
2,499 |
1,604 |
938 |
24.2 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,851 |
1,042 |
813 |
24.2 |
osh-native |
| 38 |
no-host |
configure.yash |
1,867 |
1,109 |
761 |
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 |
34 |
22 |
18.2 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
6.4 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
3 |
0 |
6.0 |
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,531 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,105 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
23,770 |
0 |
0 |
0 |
8 |
0 |
45 |
8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,165 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,091 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
106,325 |
0 |
0 |
0 |
8 |
0 |
1,992 |
50 |
bash |
| 9 |
no-host |
bin-true |
65,426 |
0 |
0 |
0 |
8 |
0 |
1,985 |
58 |
dash |
| 17 |
no-host |
bin-true |
770,593 |
0 |
0 |
0 |
8 |
0 |
1,992 |
118 |
osh-cpython |
| 25 |
no-host |
bin-true |
127,209 |
0 |
0 |
0 |
16 |
0 |
1,993 |
101 |
osh-native |
| 33 |
no-host |
bin-true |
127,236 |
0 |
0 |
0 |
16 |
0 |
1,993 |
238 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
2,222,696 |
1 |
0 |
0 |
32,928 |
0 |
14,516 |
862 |
bash |
| 10 |
no-host |
configure.cpython |
2,245,279 |
0 |
0 |
0 |
32,992 |
0 |
14,581 |
1,062 |
dash |
| 18 |
no-host |
configure.cpython |
6,257,753 |
0 |
0 |
0 |
27,512 |
0 |
13,234 |
1,183 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,213,064 |
0 |
0 |
0 |
27,520 |
0 |
13,248 |
991 |
osh-native |
| 34 |
no-host |
configure.cpython |
2,200,919 |
1 |
0 |
0 |
27,520 |
0 |
13,188 |
983 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
410,798 |
0 |
0 |
0 |
5,120 |
0 |
1,952 |
161 |
bash |
| 12 |
no-host |
configure.ocaml |
391,610 |
0 |
0 |
0 |
5,112 |
0 |
1,940 |
160 |
dash |
| 20 |
no-host |
configure.ocaml |
647,380 |
0 |
0 |
0 |
5,112 |
0 |
1,871 |
198 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
412,828 |
0 |
0 |
0 |
5,120 |
0 |
1,929 |
158 |
osh-native |
| 36 |
no-host |
configure.ocaml |
412,242 |
0 |
0 |
0 |
5,120 |
0 |
1,923 |
146 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,565 |
0 |
0 |
0 |
104 |
0 |
49 |
4 |
bash |
| 13 |
no-host |
configure.tcc |
5,477 |
0 |
0 |
0 |
96 |
0 |
47 |
7 |
dash |
| 21 |
no-host |
configure.tcc |
24,150 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,978 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,905 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
2,092,262 |
0 |
0 |
0 |
42,400 |
0 |
18,580 |
977 |
bash |
| 11 |
no-host |
configure.util-linux |
2,268,288 |
0 |
0 |
0 |
42,584 |
0 |
17,443 |
1,063 |
dash |
| 19 |
no-host |
configure.util-linux |
5,392,589 |
9 |
0 |
0 |
39,128 |
0 |
16,981 |
1,147 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
2,001,734 |
0 |
0 |
0 |
39,120 |
0 |
16,995 |
898 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,987,375 |
0 |
0 |
0 |
39,128 |
0 |
16,949 |
885 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
255,128 |
0 |
0 |
0 |
4,120 |
0 |
871 |
71 |
bash |
| 14 |
no-host |
configure.yash |
245,221 |
0 |
0 |
0 |
3,720 |
0 |
868 |
80 |
dash |
| 22 |
no-host |
configure.yash |
389,004 |
0 |
0 |
0 |
3,728 |
0 |
854 |
92 |
osh-cpython |
| 30 |
no-host |
configure.yash |
257,644 |
0 |
0 |
0 |
3,736 |
0 |
850 |
74 |
osh-native |
| 38 |
no-host |
configure.yash |
257,636 |
0 |
0 |
0 |
3,736 |
0 |
850 |
132 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
82 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,938 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
| 24 |
no-host |
hello-world |
348 |
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