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 |
18 |
9 |
468 |
22 |
21 |
25.44 |
1.20 |
| bin-true |
no-host |
636 |
515 |
2,235 |
758 |
780 |
3.51 |
1.19 |
| configure.cpython |
no-host |
14,338 |
14,544 |
28,517 |
14,964 |
15,217 |
1.99 |
1.04 |
| configure.ocaml |
no-host |
3,689 |
3,645 |
4,584 |
3,829 |
3,778 |
1.24 |
1.04 |
| configure.tcc |
no-host |
46 |
40 |
204 |
48 |
48 |
4.45 |
1.05 |
| configure.util-linux |
no-host |
13,291 |
14,159 |
32,020 |
14,220 |
13,839 |
2.41 |
1.07 |
| configure.yash |
no-host |
1,779 |
1,696 |
2,436 |
1,838 |
1,833 |
1.37 |
1.03 |
| hello-world |
no-host |
1 |
1 |
56 |
3 |
3 |
43.56 |
2.12 |
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,558 |
1,100 |
24,514 |
3,166 |
3,097 |
9.58 |
1.24 |
| bin-true |
no-host |
106,396 |
65,351 |
794,320 |
126,158 |
128,151 |
7.47 |
1.19 |
| configure.cpython |
no-host |
1,998,123 |
2,022,653 |
6,136,120 |
2,007,788 |
2,005,251 |
3.07 |
1.00 |
| configure.ocaml |
no-host |
373,411 |
353,889 |
619,312 |
376,954 |
376,870 |
1.66 |
1.01 |
| configure.tcc |
no-host |
6,082 |
4,996 |
24,014 |
6,524 |
6,467 |
3.95 |
1.07 |
| configure.util-linux |
no-host |
1,912,590 |
2,076,123 |
5,351,692 |
1,821,610 |
1,813,049 |
2.80 |
0.95 |
| configure.yash |
no-host |
233,888 |
221,820 |
369,049 |
234,680 |
235,528 |
1.58 |
1.00 |
| hello-world |
no-host |
149 |
78 |
3,999 |
349 |
341 |
26.84 |
2.34 |
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.3 |
6.3 |
3,810 |
3,810 |
0 |
702 |
1,870 |
1,238 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
758 |
1 |
2 |
2.6 |
8.1 |
156,777 |
15,416 |
2,903 |
8,754 |
77,337 |
70,686 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,964 |
2 |
72 |
15.2 |
29.3 |
1,785,027 |
49,179 |
25,898 |
91,515 |
886,574 |
806,938 |
25,736 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
14,220 |
3 |
69 |
21.6 |
30.2 |
2,709,226 |
56,216 |
66,561 |
114,377 |
1,295,038 |
1,299,811 |
32,241 |
42 |
133,122 |
1 |
| configure.ocaml |
no-host |
3,829 |
1 |
2 |
2.7 |
22.6 |
149,879 |
12,467 |
6,510 |
7,749 |
70,874 |
71,256 |
1,695 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.6 |
30,580 |
30,580 |
0 |
1,544 |
14,636 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,838 |
1 |
2 |
2.6 |
26.3 |
139,886 |
8,047 |
6,702 |
6,399 |
68,339 |
65,148 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.2 |
116,340 |
64,422 |
42,627 |
4,546 |
54,461 |
57,333 |
277 |
3 |
85,254 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.0 |
3,809 |
3,809 |
0 |
703 |
1,870 |
1,236 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
780 |
1 |
2 |
2.6 |
8.0 |
156,776 |
15,411 |
2,898 |
8,755 |
77,337 |
70,684 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,217 |
1 |
71 |
15.2 |
29.3 |
1,785,026 |
49,166 |
25,885 |
91,516 |
886,574 |
806,936 |
25,736 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,839 |
3 |
66 |
21.6 |
30.3 |
2,709,226 |
56,191 |
66,554 |
114,379 |
1,295,038 |
1,299,809 |
32,241 |
42 |
133,108 |
1 |
| configure.ocaml |
no-host |
3,778 |
1 |
2 |
2.7 |
22.6 |
149,879 |
12,461 |
6,504 |
7,751 |
70,874 |
71,254 |
1,695 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.6 |
30,580 |
30,580 |
0 |
1,546 |
14,636 |
14,398 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,833 |
1 |
2 |
2.6 |
26.3 |
139,886 |
8,036 |
6,691 |
6,401 |
68,339 |
65,146 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.7 |
116,339 |
64,417 |
42,622 |
4,547 |
54,461 |
57,331 |
277 |
3 |
85,244 |
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 |
18 |
12 |
7 |
4.5 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.5 |
dash |
| 23 |
no-host |
abuild-print-help |
468 |
411 |
61 |
22.9 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
12 |
10 |
9.2 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
11 |
10 |
8.7 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
636 |
312 |
357 |
2.9 |
bash |
| 9 |
no-host |
bin-true |
515 |
280 |
247 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,235 |
776 |
1,715 |
18.4 |
osh-cpython |
| 25 |
no-host |
bin-true |
758 |
294 |
481 |
8.1 |
osh-native |
| 33 |
no-host |
bin-true |
780 |
305 |
490 |
8.0 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,338 |
6,578 |
8,162 |
29.3 |
bash |
| 10 |
no-host |
configure.cpython |
14,544 |
6,720 |
8,247 |
29.2 |
dash |
| 18 |
no-host |
configure.cpython |
28,517 |
14,423 |
15,976 |
29.2 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,964 |
6,636 |
8,619 |
29.3 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,217 |
6,715 |
8,516 |
29.3 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,689 |
1,340 |
1,390 |
22.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,645 |
1,308 |
1,357 |
22.5 |
dash |
| 20 |
no-host |
configure.ocaml |
4,584 |
1,833 |
1,964 |
22.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,829 |
1,384 |
1,486 |
22.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,778 |
1,366 |
1,452 |
22.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
24 |
22 |
19.7 |
bash |
| 13 |
no-host |
configure.tcc |
40 |
22 |
18 |
19.6 |
dash |
| 21 |
no-host |
configure.tcc |
204 |
144 |
64 |
19.7 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
48 |
20 |
28 |
19.6 |
osh-native |
| 37 |
no-host |
configure.tcc |
48 |
21 |
27 |
19.6 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
13,291 |
5,877 |
7,891 |
30.3 |
bash |
| 11 |
no-host |
configure.util-linux |
14,159 |
5,843 |
8,830 |
30.2 |
dash |
| 19 |
no-host |
configure.util-linux |
32,020 |
18,355 |
14,810 |
30.3 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,220 |
5,804 |
8,656 |
30.2 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,839 |
5,555 |
8,519 |
30.3 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,779 |
890 |
892 |
26.4 |
bash |
| 14 |
no-host |
configure.yash |
1,696 |
884 |
816 |
26.3 |
dash |
| 22 |
no-host |
configure.yash |
2,436 |
1,349 |
1,131 |
26.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,838 |
962 |
882 |
26.3 |
osh-native |
| 38 |
no-host |
configure.yash |
1,833 |
893 |
945 |
26.3 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
1 |
1 |
2.8 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
56 |
32 |
24 |
18.4 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
6.3 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
1 |
2 |
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,558 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
| 15 |
no-host |
abuild-print-help |
1,100 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,514 |
0 |
0 |
0 |
8 |
0 |
45 |
4 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,166 |
0 |
0 |
0 |
16 |
0 |
39 |
3 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,097 |
0 |
0 |
0 |
16 |
0 |
38 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
106,396 |
0 |
0 |
0 |
8 |
0 |
1,995 |
188 |
bash |
| 9 |
no-host |
bin-true |
65,351 |
0 |
0 |
0 |
8 |
0 |
1,985 |
63 |
dash |
| 17 |
no-host |
bin-true |
794,320 |
0 |
0 |
0 |
8 |
0 |
1,985 |
209 |
osh-cpython |
| 25 |
no-host |
bin-true |
126,158 |
0 |
0 |
0 |
16 |
0 |
1,990 |
79 |
osh-native |
| 33 |
no-host |
bin-true |
128,151 |
0 |
0 |
0 |
16 |
0 |
1,978 |
260 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,998,123 |
0 |
0 |
0 |
32,928 |
0 |
14,225 |
1,291 |
bash |
| 10 |
no-host |
configure.cpython |
2,022,653 |
0 |
0 |
0 |
32,992 |
0 |
14,336 |
1,235 |
dash |
| 18 |
no-host |
configure.cpython |
6,136,120 |
0 |
0 |
0 |
27,512 |
0 |
13,034 |
1,201 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,007,788 |
0 |
0 |
0 |
27,520 |
0 |
13,078 |
1,218 |
osh-native |
| 34 |
no-host |
configure.cpython |
2,005,251 |
0 |
0 |
0 |
27,520 |
0 |
13,061 |
1,310 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
373,411 |
0 |
0 |
0 |
5,120 |
0 |
1,950 |
203 |
bash |
| 12 |
no-host |
configure.ocaml |
353,889 |
0 |
0 |
0 |
5,112 |
0 |
1,938 |
217 |
dash |
| 20 |
no-host |
configure.ocaml |
619,312 |
0 |
0 |
0 |
5,112 |
0 |
1,855 |
198 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
376,954 |
0 |
0 |
0 |
5,120 |
0 |
1,923 |
204 |
osh-native |
| 36 |
no-host |
configure.ocaml |
376,870 |
0 |
0 |
0 |
5,120 |
0 |
1,926 |
183 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,082 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,996 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
24,014 |
0 |
0 |
0 |
96 |
0 |
53 |
4 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,524 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,467 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,912,590 |
0 |
0 |
0 |
42,400 |
0 |
18,476 |
1,283 |
bash |
| 11 |
no-host |
configure.util-linux |
2,076,123 |
1 |
0 |
0 |
42,592 |
0 |
17,327 |
1,273 |
dash |
| 19 |
no-host |
configure.util-linux |
5,351,692 |
12 |
0 |
0 |
39,120 |
0 |
17,027 |
1,356 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,821,610 |
0 |
0 |
0 |
39,128 |
0 |
17,142 |
1,074 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,813,049 |
1 |
0 |
0 |
39,136 |
0 |
16,994 |
1,083 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
233,888 |
0 |
0 |
0 |
4,120 |
0 |
894 |
108 |
bash |
| 14 |
no-host |
configure.yash |
221,820 |
0 |
0 |
0 |
3,720 |
0 |
872 |
103 |
dash |
| 22 |
no-host |
configure.yash |
369,049 |
0 |
0 |
0 |
3,728 |
0 |
851 |
100 |
osh-cpython |
| 30 |
no-host |
configure.yash |
234,680 |
0 |
0 |
0 |
3,736 |
0 |
850 |
92 |
osh-native |
| 38 |
no-host |
configure.yash |
235,528 |
0 |
0 |
0 |
3,736 |
0 |
852 |
90 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
149 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
78 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,999 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
341 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native-souffle |
Shell and Host