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 |
9 |
471 |
22 |
21 |
23.89 |
1.13 |
| bin-true |
no-host |
671 |
543 |
2,287 |
818 |
814 |
3.41 |
1.22 |
| configure.cpython |
no-host |
15,064 |
15,171 |
28,853 |
15,312 |
15,416 |
1.92 |
1.02 |
| configure.ocaml |
no-host |
3,816 |
3,754 |
4,658 |
3,830 |
3,806 |
1.22 |
1.00 |
| configure.tcc |
no-host |
48 |
42 |
206 |
50 |
49 |
4.31 |
1.04 |
| configure.util-linux |
no-host |
14,000 |
14,896 |
31,724 |
14,382 |
14,309 |
2.27 |
1.03 |
| configure.yash |
no-host |
1,830 |
1,777 |
2,490 |
1,834 |
1,831 |
1.36 |
1.00 |
| hello-world |
no-host |
2 |
1 |
56 |
3 |
3 |
36.60 |
2.09 |
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,514 |
1,084 |
23,792 |
3,186 |
3,121 |
9.46 |
1.27 |
| bin-true |
no-host |
104,332 |
66,473 |
770,939 |
125,234 |
126,240 |
7.39 |
1.20 |
| configure.cpython |
no-host |
2,217,118 |
2,248,012 |
6,230,140 |
2,211,394 |
2,216,264 |
2.81 |
1.00 |
| configure.ocaml |
no-host |
410,911 |
391,237 |
646,799 |
412,856 |
413,084 |
1.57 |
1.00 |
| configure.tcc |
no-host |
6,555 |
5,490 |
24,106 |
6,979 |
6,904 |
3.68 |
1.06 |
| configure.util-linux |
no-host |
2,091,890 |
2,260,642 |
5,397,856 |
1,998,995 |
1,992,485 |
2.58 |
0.96 |
| configure.yash |
no-host |
256,763 |
244,678 |
388,882 |
257,576 |
257,591 |
1.51 |
1.00 |
| hello-world |
no-host |
153 |
81 |
3,953 |
343 |
336 |
25.84 |
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,783 |
3,783 |
0 |
694 |
1,859 |
1,230 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
818 |
1 |
2 |
2.6 |
8.1 |
153,747 |
12,268 |
2,888 |
8,743 |
76,323 |
68,681 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,312 |
1 |
65 |
14.9 |
27.3 |
1,771,748 |
49,126 |
28,513 |
85,415 |
878,116 |
808,217 |
25,733 |
60 |
50,000 |
0 |
| configure.util-linux |
no-host |
14,382 |
3 |
62 |
21.2 |
30.3 |
2,702,514 |
45,898 |
65,712 |
108,691 |
1,290,641 |
1,303,182 |
32,239 |
41 |
131,424 |
1 |
| configure.ocaml |
no-host |
3,830 |
1 |
2 |
2.6 |
20.6 |
150,081 |
11,113 |
5,208 |
7,508 |
70,970 |
71,603 |
1,695 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.4 |
30,587 |
30,587 |
0 |
1,518 |
14,642 |
14,427 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,834 |
1 |
2 |
2.5 |
24.4 |
139,413 |
8,025 |
6,687 |
5,989 |
67,943 |
65,481 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,293 |
64,404 |
42,614 |
4,532 |
54,437 |
57,324 |
277 |
3 |
85,228 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.2 |
6.0 |
3,782 |
3,782 |
0 |
695 |
1,859 |
1,228 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
814 |
1 |
2 |
2.6 |
7.6 |
153,746 |
12,112 |
2,826 |
8,744 |
76,323 |
68,679 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,416 |
1 |
63 |
14.9 |
27.4 |
1,771,747 |
49,064 |
28,451 |
85,416 |
878,116 |
808,215 |
25,733 |
60 |
50,000 |
0 |
| configure.util-linux |
no-host |
14,309 |
3 |
62 |
21.2 |
30.1 |
2,702,514 |
53,694 |
65,650 |
108,693 |
1,290,641 |
1,303,180 |
32,239 |
41 |
131,300 |
1 |
| configure.ocaml |
no-host |
3,806 |
1 |
2 |
2.6 |
20.6 |
150,081 |
11,051 |
5,146 |
7,510 |
70,970 |
71,601 |
1,695 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.1 |
30,587 |
30,587 |
0 |
1,520 |
14,642 |
14,425 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,831 |
1 |
2 |
2.5 |
24.2 |
139,413 |
7,963 |
6,625 |
5,991 |
67,943 |
65,479 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.7 |
116,292 |
64,342 |
42,552 |
4,533 |
54,437 |
57,322 |
277 |
3 |
85,104 |
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 |
5 |
15 |
4.3 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
8 |
2 |
3.4 |
dash |
| 23 |
no-host |
abuild-print-help |
471 |
412 |
61 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
20 |
3 |
9.0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
16 |
6 |
8.7 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
671 |
496 |
206 |
3.0 |
bash |
| 9 |
no-host |
bin-true |
543 |
422 |
130 |
1.3 |
dash |
| 17 |
no-host |
bin-true |
2,287 |
1,559 |
985 |
18.4 |
osh-cpython |
| 25 |
no-host |
bin-true |
818 |
588 |
246 |
8.1 |
osh-native |
| 33 |
no-host |
bin-true |
814 |
587 |
241 |
7.6 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
15,064 |
9,243 |
6,220 |
27.3 |
bash |
| 10 |
no-host |
configure.cpython |
15,171 |
9,062 |
6,538 |
27.4 |
dash |
| 18 |
no-host |
configure.cpython |
28,853 |
17,596 |
13,122 |
27.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,312 |
9,014 |
6,554 |
27.3 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,416 |
8,992 |
6,554 |
27.4 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,816 |
1,634 |
1,223 |
20.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,754 |
1,594 |
1,180 |
20.4 |
dash |
| 20 |
no-host |
configure.ocaml |
4,658 |
2,231 |
1,636 |
20.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,830 |
1,610 |
1,257 |
20.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,806 |
1,606 |
1,237 |
20.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
48 |
24 |
25 |
19.4 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
25 |
17 |
19.1 |
dash |
| 21 |
no-host |
configure.tcc |
206 |
150 |
60 |
19.3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
50 |
23 |
27 |
19.4 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
33 |
16 |
19.1 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
14,000 |
8,909 |
5,569 |
30.0 |
bash |
| 11 |
no-host |
configure.util-linux |
14,896 |
9,095 |
6,303 |
30.4 |
dash |
| 19 |
no-host |
configure.util-linux |
31,724 |
21,186 |
11,639 |
30.3 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,382 |
8,614 |
5,962 |
30.3 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,309 |
8,609 |
5,901 |
30.1 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,830 |
1,035 |
804 |
24.2 |
bash |
| 14 |
no-host |
configure.yash |
1,777 |
1,054 |
725 |
24.4 |
dash |
| 22 |
no-host |
configure.yash |
2,490 |
1,513 |
1,019 |
24.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,834 |
1,067 |
771 |
24.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,831 |
1,040 |
795 |
24.2 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
56 |
28 |
28 |
18.2 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
6.2 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
0 |
3 |
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,514 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,084 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
23,792 |
0 |
0 |
0 |
8 |
0 |
45 |
12 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,186 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,121 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
104,332 |
0 |
0 |
0 |
8 |
0 |
1,991 |
50 |
bash |
| 9 |
no-host |
bin-true |
66,473 |
0 |
0 |
0 |
8 |
0 |
1,986 |
40 |
dash |
| 17 |
no-host |
bin-true |
770,939 |
0 |
0 |
0 |
8 |
0 |
1,990 |
101 |
osh-cpython |
| 25 |
no-host |
bin-true |
125,234 |
0 |
0 |
0 |
16 |
0 |
1,992 |
164 |
osh-native |
| 33 |
no-host |
bin-true |
126,240 |
0 |
0 |
0 |
16 |
0 |
1,985 |
71 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
2,217,118 |
0 |
0 |
0 |
32,928 |
0 |
14,394 |
977 |
bash |
| 10 |
no-host |
configure.cpython |
2,248,012 |
0 |
0 |
0 |
32,992 |
0 |
14,611 |
1,122 |
dash |
| 18 |
no-host |
configure.cpython |
6,230,140 |
0 |
0 |
0 |
27,512 |
0 |
13,262 |
1,077 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,211,394 |
0 |
0 |
0 |
27,520 |
0 |
13,150 |
990 |
osh-native |
| 34 |
no-host |
configure.cpython |
2,216,264 |
2 |
0 |
0 |
27,520 |
0 |
13,211 |
1,012 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
410,911 |
0 |
0 |
0 |
5,120 |
0 |
1,942 |
152 |
bash |
| 12 |
no-host |
configure.ocaml |
391,237 |
0 |
0 |
0 |
5,112 |
0 |
1,935 |
154 |
dash |
| 20 |
no-host |
configure.ocaml |
646,799 |
0 |
0 |
0 |
5,112 |
0 |
1,857 |
170 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
412,856 |
0 |
0 |
0 |
5,120 |
0 |
1,925 |
167 |
osh-native |
| 36 |
no-host |
configure.ocaml |
413,084 |
0 |
0 |
0 |
5,120 |
0 |
1,936 |
144 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,555 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
5,490 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
24,106 |
0 |
0 |
0 |
96 |
0 |
53 |
14 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,979 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,904 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
2,091,890 |
2 |
0 |
0 |
42,400 |
0 |
18,610 |
960 |
bash |
| 11 |
no-host |
configure.util-linux |
2,260,642 |
2 |
0 |
0 |
42,584 |
0 |
17,417 |
1,036 |
dash |
| 19 |
no-host |
configure.util-linux |
5,397,856 |
10 |
0 |
0 |
39,128 |
0 |
16,931 |
1,120 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,998,995 |
0 |
0 |
0 |
39,120 |
0 |
16,989 |
984 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,992,485 |
0 |
0 |
0 |
39,128 |
0 |
16,979 |
965 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
256,763 |
0 |
0 |
0 |
4,120 |
0 |
870 |
83 |
bash |
| 14 |
no-host |
configure.yash |
244,678 |
0 |
0 |
0 |
3,720 |
0 |
872 |
71 |
dash |
| 22 |
no-host |
configure.yash |
388,882 |
0 |
0 |
0 |
3,728 |
0 |
851 |
99 |
osh-cpython |
| 30 |
no-host |
configure.yash |
257,576 |
0 |
0 |
0 |
3,736 |
0 |
846 |
68 |
osh-native |
| 38 |
no-host |
configure.yash |
257,591 |
0 |
0 |
0 |
3,736 |
0 |
849 |
76 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
81 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,953 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
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 |
0 |
osh-native-souffle |
Shell and Host