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 |
461 |
22 |
21 |
24.53 |
1.15 |
| bin-true |
no-host |
648 |
538 |
2,209 |
798 |
795 |
3.41 |
1.23 |
| configure.cpython |
no-host |
14,750 |
14,641 |
28,330 |
14,995 |
14,947 |
1.92 |
1.02 |
| configure.ocaml |
no-host |
3,756 |
3,695 |
4,662 |
3,739 |
3,800 |
1.24 |
1.00 |
| configure.tcc |
no-host |
47 |
41 |
201 |
46 |
48 |
4.28 |
0.98 |
| configure.util-linux |
no-host |
13,769 |
14,517 |
31,000 |
13,924 |
14,079 |
2.25 |
1.01 |
| configure.yash |
no-host |
1,804 |
1,741 |
2,446 |
1,784 |
1,790 |
1.36 |
0.99 |
| hello-world |
no-host |
1 |
1 |
56 |
3 |
3 |
39.01 |
2.10 |
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,555 |
1,132 |
23,973 |
3,182 |
3,114 |
9.38 |
1.25 |
| bin-true |
no-host |
102,359 |
65,382 |
771,653 |
127,217 |
126,314 |
7.54 |
1.24 |
| configure.cpython |
no-host |
2,219,173 |
2,241,971 |
6,235,934 |
2,221,954 |
2,215,217 |
2.81 |
1.00 |
| configure.ocaml |
no-host |
410,577 |
391,019 |
649,343 |
413,076 |
413,016 |
1.58 |
1.01 |
| configure.tcc |
no-host |
6,554 |
5,504 |
24,165 |
6,990 |
6,942 |
3.69 |
1.07 |
| configure.util-linux |
no-host |
2,091,374 |
2,262,778 |
5,387,748 |
1,999,934 |
1,986,346 |
2.58 |
0.96 |
| configure.yash |
no-host |
256,046 |
244,179 |
390,010 |
258,509 |
257,028 |
1.52 |
1.01 |
| hello-world |
no-host |
154 |
81 |
3,964 |
346 |
335 |
25.74 |
2.25 |
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,783 |
3,783 |
0 |
694 |
1,859 |
1,230 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
798 |
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 |
14,995 |
1 |
61 |
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 |
13,924 |
2 |
59 |
21.2 |
30.1 |
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,739 |
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 |
46 |
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,784 |
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 |
8.9 |
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 |
795 |
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 |
14,947 |
1 |
61 |
14.9 |
27.5 |
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,079 |
3 |
61 |
21.2 |
30.3 |
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,800 |
1 |
2 |
2.6 |
20.4 |
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,790 |
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.5 |
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 |
14 |
5 |
4.3 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.4 |
dash |
| 23 |
no-host |
abuild-print-help |
461 |
418 |
46 |
22.4 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
14 |
8 |
8.9 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
12 |
9 |
8.5 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
648 |
467 |
212 |
3.0 |
bash |
| 9 |
no-host |
bin-true |
538 |
418 |
129 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,209 |
1,482 |
973 |
18.3 |
osh-cpython |
| 25 |
no-host |
bin-true |
798 |
562 |
248 |
8.1 |
osh-native |
| 33 |
no-host |
bin-true |
795 |
556 |
254 |
7.6 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,750 |
9,018 |
6,127 |
27.3 |
bash |
| 10 |
no-host |
configure.cpython |
14,641 |
8,725 |
6,332 |
27.3 |
dash |
| 18 |
no-host |
configure.cpython |
28,330 |
17,660 |
12,519 |
27.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,995 |
8,926 |
6,342 |
27.4 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,947 |
8,897 |
6,187 |
27.5 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,756 |
1,611 |
1,184 |
20.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,695 |
1,518 |
1,195 |
20.6 |
dash |
| 20 |
no-host |
configure.ocaml |
4,662 |
2,177 |
1,707 |
20.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,739 |
1,593 |
1,184 |
20.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,800 |
1,691 |
1,144 |
20.4 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
47 |
27 |
20 |
19.3 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
19 |
23 |
19.3 |
dash |
| 21 |
no-host |
configure.tcc |
201 |
146 |
58 |
19.3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
46 |
22 |
24 |
19.3 |
osh-native |
| 37 |
no-host |
configure.tcc |
48 |
33 |
16 |
19.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
13,769 |
8,731 |
5,524 |
30.3 |
bash |
| 11 |
no-host |
configure.util-linux |
14,517 |
8,868 |
6,136 |
30.0 |
dash |
| 19 |
no-host |
configure.util-linux |
31,000 |
20,738 |
11,344 |
30.0 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,924 |
8,645 |
5,472 |
30.1 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,079 |
8,505 |
5,761 |
30.3 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,804 |
1,042 |
770 |
24.5 |
bash |
| 14 |
no-host |
configure.yash |
1,741 |
1,037 |
707 |
24.2 |
dash |
| 22 |
no-host |
configure.yash |
2,446 |
1,498 |
989 |
24.2 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,784 |
1,052 |
737 |
24.5 |
osh-native |
| 38 |
no-host |
configure.yash |
1,790 |
1,034 |
761 |
24.2 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
2.9 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
56 |
44 |
12 |
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,555 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,132 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
23,973 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,182 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,114 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
102,359 |
0 |
0 |
0 |
8 |
0 |
1,993 |
50 |
bash |
| 9 |
no-host |
bin-true |
65,382 |
0 |
0 |
0 |
8 |
0 |
1,983 |
87 |
dash |
| 17 |
no-host |
bin-true |
771,653 |
0 |
0 |
0 |
8 |
0 |
1,993 |
110 |
osh-cpython |
| 25 |
no-host |
bin-true |
127,217 |
0 |
0 |
0 |
16 |
0 |
1,992 |
162 |
osh-native |
| 33 |
no-host |
bin-true |
126,314 |
0 |
0 |
0 |
16 |
0 |
1,991 |
45 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
2,219,173 |
0 |
0 |
0 |
32,928 |
0 |
14,486 |
1,082 |
bash |
| 10 |
no-host |
configure.cpython |
2,241,971 |
0 |
0 |
0 |
32,992 |
0 |
14,640 |
970 |
dash |
| 18 |
no-host |
configure.cpython |
6,235,934 |
0 |
0 |
0 |
27,512 |
0 |
13,227 |
1,179 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,221,954 |
0 |
0 |
0 |
27,520 |
0 |
13,249 |
922 |
osh-native |
| 34 |
no-host |
configure.cpython |
2,215,217 |
0 |
0 |
0 |
27,520 |
0 |
13,208 |
885 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
410,577 |
0 |
0 |
0 |
5,120 |
0 |
1,938 |
159 |
bash |
| 12 |
no-host |
configure.ocaml |
391,019 |
0 |
0 |
0 |
5,112 |
0 |
1,906 |
144 |
dash |
| 20 |
no-host |
configure.ocaml |
649,343 |
0 |
0 |
0 |
5,112 |
0 |
1,849 |
180 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
413,076 |
0 |
0 |
0 |
5,120 |
0 |
1,921 |
188 |
osh-native |
| 36 |
no-host |
configure.ocaml |
413,016 |
0 |
0 |
0 |
5,120 |
0 |
1,923 |
179 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,554 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
5,504 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
24,165 |
0 |
0 |
0 |
96 |
0 |
53 |
7 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,990 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,942 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
2,091,374 |
0 |
0 |
0 |
42,400 |
0 |
18,587 |
944 |
bash |
| 11 |
no-host |
configure.util-linux |
2,262,778 |
1 |
0 |
0 |
42,584 |
0 |
17,417 |
1,032 |
dash |
| 19 |
no-host |
configure.util-linux |
5,387,748 |
8 |
0 |
0 |
39,128 |
0 |
16,874 |
1,081 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,999,934 |
0 |
0 |
0 |
39,120 |
0 |
16,955 |
874 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,986,346 |
1 |
0 |
0 |
39,128 |
0 |
16,990 |
950 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
256,046 |
0 |
0 |
0 |
4,120 |
0 |
865 |
122 |
bash |
| 14 |
no-host |
configure.yash |
244,179 |
0 |
0 |
0 |
3,720 |
0 |
864 |
79 |
dash |
| 22 |
no-host |
configure.yash |
390,010 |
0 |
0 |
0 |
3,728 |
0 |
852 |
86 |
osh-cpython |
| 30 |
no-host |
configure.yash |
258,509 |
0 |
0 |
0 |
3,736 |
0 |
846 |
63 |
osh-native |
| 38 |
no-host |
configure.yash |
257,028 |
0 |
0 |
0 |
3,736 |
0 |
844 |
66 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
154 |
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,964 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
| 24 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
| 32 |
no-host |
hello-world |
335 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host