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 |
459 |
22 |
22 |
24.26 |
1.16 |
| bin-true |
no-host |
675 |
538 |
2,302 |
802 |
809 |
3.41 |
1.19 |
| configure.cpython |
no-host |
14,837 |
14,879 |
28,609 |
15,009 |
15,078 |
1.93 |
1.01 |
| configure.ocaml |
no-host |
3,763 |
3,700 |
4,642 |
3,769 |
3,780 |
1.23 |
1.00 |
| configure.tcc |
no-host |
47 |
41 |
201 |
49 |
48 |
4.23 |
1.03 |
| configure.util-linux |
no-host |
13,811 |
14,713 |
30,937 |
14,203 |
14,198 |
2.24 |
1.03 |
| configure.yash |
no-host |
1,799 |
1,746 |
2,433 |
1,798 |
1,788 |
1.35 |
1.00 |
| hello-world |
no-host |
2 |
1 |
56 |
3 |
3 |
36.72 |
1.89 |
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,530 |
1,093 |
23,679 |
3,189 |
3,099 |
9.36 |
1.26 |
| bin-true |
no-host |
106,366 |
66,437 |
766,610 |
125,252 |
126,288 |
7.21 |
1.18 |
| configure.cpython |
no-host |
2,222,856 |
2,243,756 |
6,243,627 |
2,216,657 |
2,209,725 |
2.81 |
1.00 |
| configure.ocaml |
no-host |
410,110 |
391,195 |
647,403 |
413,105 |
412,322 |
1.58 |
1.01 |
| configure.tcc |
no-host |
6,541 |
5,486 |
24,119 |
7,000 |
6,886 |
3.69 |
1.07 |
| configure.util-linux |
no-host |
2,098,177 |
2,258,733 |
5,397,173 |
2,002,593 |
1,993,138 |
2.57 |
0.95 |
| configure.yash |
no-host |
256,064 |
244,247 |
389,087 |
257,672 |
256,810 |
1.52 |
1.01 |
| hello-world |
no-host |
154 |
82 |
3,949 |
343 |
336 |
25.64 |
2.23 |
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,783 |
3,783 |
0 |
694 |
1,859 |
1,230 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
802 |
1 |
2 |
2.6 |
8.0 |
153,747 |
12,268 |
2,888 |
8,743 |
76,323 |
68,681 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,009 |
1 |
60 |
14.9 |
27.4 |
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,203 |
3 |
59 |
21.2 |
30.0 |
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,769 |
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 |
49 |
0 |
0 |
1.3 |
19.3 |
30,587 |
30,587 |
0 |
1,518 |
14,642 |
14,427 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,798 |
1 |
2 |
2.5 |
24.5 |
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.2 |
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 |
5.8 |
3,782 |
3,782 |
0 |
695 |
1,859 |
1,228 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
809 |
1 |
2 |
2.6 |
7.5 |
153,746 |
12,112 |
2,826 |
8,744 |
76,323 |
68,679 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,078 |
1 |
58 |
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,198 |
2 |
57 |
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,780 |
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 |
48 |
0 |
0 |
1.3 |
19.3 |
30,587 |
30,587 |
0 |
1,520 |
14,642 |
14,425 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,788 |
1 |
2 |
2.5 |
24.4 |
139,413 |
7,963 |
6,625 |
5,991 |
67,943 |
65,479 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
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 |
19 |
13 |
6 |
4.5 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
8 |
1 |
3.5 |
dash |
| 23 |
no-host |
abuild-print-help |
459 |
424 |
38 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
17 |
6 |
9.2 |
osh-native |
| 39 |
no-host |
abuild-print-help |
22 |
10 |
13 |
8.7 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
675 |
505 |
201 |
2.9 |
bash |
| 9 |
no-host |
bin-true |
538 |
408 |
138 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,302 |
1,566 |
998 |
18.4 |
osh-cpython |
| 25 |
no-host |
bin-true |
802 |
559 |
259 |
8.0 |
osh-native |
| 33 |
no-host |
bin-true |
809 |
584 |
239 |
7.5 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,837 |
8,941 |
6,295 |
27.4 |
bash |
| 10 |
no-host |
configure.cpython |
14,879 |
8,959 |
6,340 |
27.4 |
dash |
| 18 |
no-host |
configure.cpython |
28,609 |
17,534 |
12,928 |
27.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,009 |
9,052 |
6,229 |
27.4 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,078 |
8,622 |
6,597 |
27.4 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,763 |
1,587 |
1,215 |
20.4 |
bash |
| 12 |
no-host |
configure.ocaml |
3,700 |
1,536 |
1,184 |
20.6 |
dash |
| 20 |
no-host |
configure.ocaml |
4,642 |
2,261 |
1,592 |
20.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,769 |
1,604 |
1,204 |
20.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,780 |
1,520 |
1,296 |
20.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
47 |
29 |
19 |
19.4 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
18 |
24 |
19.4 |
dash |
| 21 |
no-host |
configure.tcc |
201 |
145 |
59 |
19.4 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
32 |
17 |
19.3 |
osh-native |
| 37 |
no-host |
configure.tcc |
48 |
29 |
20 |
19.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
13,811 |
8,828 |
5,454 |
30.3 |
bash |
| 11 |
no-host |
configure.util-linux |
14,713 |
8,937 |
6,268 |
30.1 |
dash |
| 19 |
no-host |
configure.util-linux |
30,937 |
20,923 |
11,080 |
30.0 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,203 |
8,664 |
5,743 |
30.0 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,198 |
8,476 |
5,924 |
30.1 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,799 |
1,070 |
737 |
24.5 |
bash |
| 14 |
no-host |
configure.yash |
1,746 |
1,023 |
727 |
24.2 |
dash |
| 22 |
no-host |
configure.yash |
2,433 |
1,508 |
965 |
24.2 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,798 |
1,026 |
777 |
24.5 |
osh-native |
| 38 |
no-host |
configure.yash |
1,788 |
1,049 |
742 |
24.4 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
56 |
30 |
25 |
18.2 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
3 |
0 |
6.3 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
3 |
0 |
5.8 |
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,530 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
bash |
| 15 |
no-host |
abuild-print-help |
1,093 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
23,679 |
0 |
0 |
0 |
8 |
0 |
45 |
12 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,189 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,099 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
106,366 |
0 |
0 |
0 |
8 |
0 |
1,990 |
78 |
bash |
| 9 |
no-host |
bin-true |
66,437 |
0 |
0 |
0 |
8 |
0 |
1,983 |
37 |
dash |
| 17 |
no-host |
bin-true |
766,610 |
0 |
0 |
0 |
8 |
0 |
1,998 |
204 |
osh-cpython |
| 25 |
no-host |
bin-true |
125,252 |
0 |
0 |
0 |
16 |
0 |
1,995 |
54 |
osh-native |
| 33 |
no-host |
bin-true |
126,288 |
0 |
0 |
0 |
16 |
0 |
1,988 |
65 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
2,222,856 |
0 |
0 |
0 |
32,928 |
0 |
14,496 |
1,094 |
bash |
| 10 |
no-host |
configure.cpython |
2,243,756 |
0 |
0 |
0 |
32,992 |
0 |
14,589 |
1,068 |
dash |
| 18 |
no-host |
configure.cpython |
6,243,627 |
0 |
0 |
0 |
27,512 |
0 |
13,159 |
1,148 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,216,657 |
0 |
0 |
0 |
27,520 |
0 |
13,211 |
953 |
osh-native |
| 34 |
no-host |
configure.cpython |
2,209,725 |
0 |
0 |
0 |
27,520 |
0 |
13,135 |
964 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
410,110 |
0 |
0 |
0 |
5,120 |
0 |
1,948 |
183 |
bash |
| 12 |
no-host |
configure.ocaml |
391,195 |
0 |
0 |
0 |
5,112 |
0 |
1,933 |
162 |
dash |
| 20 |
no-host |
configure.ocaml |
647,403 |
0 |
0 |
0 |
5,112 |
0 |
1,853 |
199 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
413,105 |
0 |
0 |
0 |
5,120 |
0 |
1,924 |
173 |
osh-native |
| 36 |
no-host |
configure.ocaml |
412,322 |
0 |
0 |
0 |
5,120 |
0 |
1,924 |
174 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,541 |
0 |
0 |
0 |
104 |
0 |
48 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
5,486 |
0 |
0 |
0 |
96 |
0 |
46 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
24,119 |
0 |
0 |
0 |
96 |
0 |
53 |
7 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
7,000 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,886 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
2,098,177 |
1 |
0 |
0 |
42,400 |
0 |
18,551 |
1,059 |
bash |
| 11 |
no-host |
configure.util-linux |
2,258,733 |
1 |
0 |
0 |
42,584 |
0 |
17,442 |
1,194 |
dash |
| 19 |
no-host |
configure.util-linux |
5,397,173 |
8 |
0 |
0 |
39,120 |
0 |
16,941 |
1,215 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
2,002,593 |
3 |
0 |
0 |
39,120 |
0 |
16,984 |
1,011 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,993,138 |
1 |
0 |
0 |
39,128 |
0 |
16,975 |
967 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
256,064 |
0 |
0 |
0 |
4,120 |
0 |
870 |
76 |
bash |
| 14 |
no-host |
configure.yash |
244,247 |
0 |
0 |
0 |
3,720 |
0 |
868 |
92 |
dash |
| 22 |
no-host |
configure.yash |
389,087 |
0 |
0 |
0 |
3,728 |
0 |
854 |
73 |
osh-cpython |
| 30 |
no-host |
configure.yash |
257,672 |
0 |
0 |
0 |
3,736 |
0 |
851 |
77 |
osh-native |
| 38 |
no-host |
configure.yash |
256,810 |
0 |
0 |
0 |
3,736 |
0 |
845 |
76 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
154 |
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,949 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
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