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 |
455 |
22 |
21 |
23.69 |
1.14 |
| bin-true |
no-host |
681 |
536 |
2,290 |
808 |
812 |
3.37 |
1.19 |
| configure.cpython |
no-host |
15,165 |
15,173 |
28,786 |
15,132 |
15,369 |
1.90 |
1.00 |
| configure.ocaml |
no-host |
3,801 |
3,754 |
4,614 |
3,794 |
3,805 |
1.21 |
1.00 |
| configure.tcc |
no-host |
47 |
42 |
200 |
49 |
49 |
4.26 |
1.03 |
| configure.util-linux |
no-host |
14,007 |
14,840 |
31,240 |
14,227 |
14,266 |
2.23 |
1.02 |
| configure.yash |
no-host |
1,825 |
1,764 |
2,447 |
1,809 |
1,824 |
1.34 |
0.99 |
| hello-world |
no-host |
2 |
1 |
56 |
3 |
3 |
35.77 |
1.83 |
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,542 |
1,118 |
23,766 |
3,172 |
3,072 |
9.35 |
1.25 |
| bin-true |
no-host |
107,344 |
66,384 |
768,506 |
127,234 |
126,257 |
7.16 |
1.19 |
| configure.cpython |
no-host |
2,230,307 |
2,243,085 |
6,249,666 |
2,222,539 |
2,209,723 |
2.80 |
1.00 |
| configure.ocaml |
no-host |
410,534 |
390,838 |
647,988 |
412,677 |
412,520 |
1.58 |
1.01 |
| configure.tcc |
no-host |
6,552 |
5,488 |
24,109 |
6,973 |
6,897 |
3.68 |
1.06 |
| configure.util-linux |
no-host |
2,098,571 |
2,260,772 |
5,396,483 |
1,993,595 |
1,993,353 |
2.57 |
0.95 |
| configure.yash |
no-host |
256,576 |
244,576 |
388,962 |
258,444 |
257,412 |
1.52 |
1.01 |
| hello-world |
no-host |
150 |
80 |
3,939 |
344 |
335 |
26.26 |
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 |
808 |
1 |
2 |
2.6 |
8.3 |
153,746 |
12,267 |
2,887 |
8,743 |
76,322 |
68,681 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,132 |
1 |
60 |
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,227 |
3 |
59 |
21.2 |
30.3 |
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,794 |
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,809 |
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.8 |
3,781 |
3,781 |
0 |
695 |
1,858 |
1,228 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
812 |
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,369 |
1 |
59 |
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,266 |
3 |
59 |
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,805 |
1 |
2 |
2.6 |
20.4 |
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.3 |
30,586 |
30,586 |
0 |
1,520 |
14,641 |
14,425 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,824 |
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 |
17 |
3 |
4.3 |
bash |
| 15 |
no-host |
abuild-print-help |
10 |
5 |
5 |
3.4 |
dash |
| 23 |
no-host |
abuild-print-help |
455 |
411 |
47 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
14 |
8 |
8.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
15 |
6 |
8.7 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
681 |
498 |
214 |
2.9 |
bash |
| 9 |
no-host |
bin-true |
536 |
430 |
118 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,290 |
1,463 |
1,092 |
18.3 |
osh-cpython |
| 25 |
no-host |
bin-true |
808 |
581 |
242 |
8.3 |
osh-native |
| 33 |
no-host |
bin-true |
812 |
590 |
236 |
7.7 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
15,165 |
9,128 |
6,430 |
27.4 |
bash |
| 10 |
no-host |
configure.cpython |
15,173 |
9,136 |
6,455 |
27.4 |
dash |
| 18 |
no-host |
configure.cpython |
28,786 |
17,605 |
13,059 |
27.3 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,132 |
8,923 |
6,469 |
27.4 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,369 |
8,916 |
6,430 |
27.4 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,801 |
1,567 |
1,275 |
20.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,754 |
1,602 |
1,172 |
20.6 |
dash |
| 20 |
no-host |
configure.ocaml |
4,614 |
2,210 |
1,611 |
20.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,794 |
1,629 |
1,203 |
20.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,805 |
1,577 |
1,261 |
20.4 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
47 |
30 |
17 |
19.3 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
21 |
22 |
19.3 |
dash |
| 21 |
no-host |
configure.tcc |
200 |
155 |
48 |
19.3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
30 |
19 |
19.3 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
27 |
23 |
19.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
14,007 |
8,839 |
5,648 |
30.3 |
bash |
| 11 |
no-host |
configure.util-linux |
14,840 |
9,038 |
6,289 |
30.1 |
dash |
| 19 |
no-host |
configure.util-linux |
31,240 |
21,122 |
11,195 |
30.3 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,227 |
8,523 |
5,900 |
30.3 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,266 |
8,732 |
5,751 |
30.1 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,825 |
1,095 |
736 |
24.2 |
bash |
| 14 |
no-host |
configure.yash |
1,764 |
1,047 |
721 |
24.4 |
dash |
| 22 |
no-host |
configure.yash |
2,447 |
1,511 |
977 |
24.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,809 |
1,035 |
779 |
24.2 |
osh-native |
| 38 |
no-host |
configure.yash |
1,824 |
994 |
833 |
24.4 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
56 |
32 |
23 |
18.2 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
3 |
0 |
6.4 |
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,542 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,118 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
23,766 |
0 |
0 |
0 |
8 |
0 |
45 |
12 |
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,072 |
0 |
0 |
0 |
16 |
0 |
40 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
107,344 |
0 |
0 |
0 |
8 |
0 |
1,997 |
80 |
bash |
| 9 |
no-host |
bin-true |
66,384 |
0 |
0 |
0 |
8 |
0 |
1,992 |
44 |
dash |
| 17 |
no-host |
bin-true |
768,506 |
0 |
0 |
0 |
8 |
0 |
1,996 |
156 |
osh-cpython |
| 25 |
no-host |
bin-true |
127,234 |
0 |
0 |
0 |
16 |
0 |
1,987 |
59 |
osh-native |
| 33 |
no-host |
bin-true |
126,257 |
0 |
0 |
0 |
16 |
0 |
1,994 |
126 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
2,230,307 |
0 |
0 |
0 |
32,928 |
0 |
14,524 |
1,031 |
bash |
| 10 |
no-host |
configure.cpython |
2,243,085 |
0 |
0 |
0 |
32,992 |
0 |
14,558 |
1,225 |
dash |
| 18 |
no-host |
configure.cpython |
6,249,666 |
0 |
0 |
0 |
27,512 |
0 |
13,267 |
1,253 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,222,539 |
1 |
0 |
0 |
27,520 |
0 |
13,306 |
996 |
osh-native |
| 34 |
no-host |
configure.cpython |
2,209,723 |
0 |
0 |
0 |
27,520 |
0 |
13,281 |
990 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
410,534 |
0 |
0 |
0 |
5,120 |
0 |
1,949 |
178 |
bash |
| 12 |
no-host |
configure.ocaml |
390,838 |
0 |
0 |
0 |
5,112 |
0 |
1,878 |
144 |
dash |
| 20 |
no-host |
configure.ocaml |
647,988 |
0 |
0 |
0 |
5,112 |
0 |
1,855 |
188 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
412,677 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
177 |
osh-native |
| 36 |
no-host |
configure.ocaml |
412,520 |
0 |
0 |
0 |
5,120 |
0 |
1,926 |
234 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,552 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
5,488 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
24,109 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,973 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,897 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
2,098,571 |
0 |
0 |
0 |
42,400 |
0 |
18,524 |
1,146 |
bash |
| 11 |
no-host |
configure.util-linux |
2,260,772 |
1 |
0 |
0 |
42,584 |
0 |
17,468 |
1,066 |
dash |
| 19 |
no-host |
configure.util-linux |
5,396,483 |
11 |
0 |
0 |
39,112 |
0 |
16,966 |
1,155 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,993,595 |
0 |
0 |
0 |
39,128 |
0 |
16,985 |
988 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,993,353 |
1 |
0 |
0 |
39,136 |
0 |
17,070 |
968 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
256,576 |
0 |
0 |
0 |
4,120 |
0 |
871 |
72 |
bash |
| 14 |
no-host |
configure.yash |
244,576 |
0 |
0 |
0 |
3,720 |
0 |
872 |
76 |
dash |
| 22 |
no-host |
configure.yash |
388,962 |
0 |
0 |
0 |
3,728 |
0 |
851 |
98 |
osh-cpython |
| 30 |
no-host |
configure.yash |
258,444 |
0 |
0 |
0 |
3,736 |
0 |
844 |
96 |
osh-native |
| 38 |
no-host |
configure.yash |
257,412 |
0 |
0 |
0 |
3,736 |
0 |
853 |
75 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
80 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,939 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
| 24 |
no-host |
hello-world |
344 |
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