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 |
469 |
21 |
21 |
24.80 |
1.14 |
| bin-true |
no-host |
667 |
524 |
2,295 |
767 |
776 |
3.44 |
1.15 |
| configure.cpython |
no-host |
14,788 |
14,607 |
28,336 |
14,843 |
14,952 |
1.92 |
1.00 |
| configure.ocaml |
no-host |
3,738 |
3,687 |
4,595 |
3,759 |
3,758 |
1.23 |
1.01 |
| configure.tcc |
no-host |
46 |
40 |
206 |
48 |
48 |
4.43 |
1.03 |
| configure.util-linux |
no-host |
13,535 |
14,413 |
31,287 |
13,883 |
13,841 |
2.31 |
1.03 |
| configure.yash |
no-host |
1,813 |
1,746 |
2,450 |
1,792 |
1,786 |
1.35 |
0.99 |
| hello-world |
no-host |
1 |
1 |
57 |
3 |
3 |
39.79 |
1.95 |
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,508 |
1,106 |
24,466 |
3,169 |
3,104 |
9.76 |
1.26 |
| bin-true |
no-host |
107,320 |
66,412 |
802,431 |
125,166 |
126,247 |
7.48 |
1.17 |
| configure.cpython |
no-host |
2,002,562 |
2,027,119 |
6,119,503 |
2,008,040 |
2,006,023 |
3.06 |
1.00 |
| configure.ocaml |
no-host |
373,351 |
353,792 |
618,186 |
377,015 |
376,065 |
1.66 |
1.01 |
| configure.tcc |
no-host |
6,120 |
5,018 |
23,930 |
6,500 |
6,437 |
3.91 |
1.06 |
| configure.util-linux |
no-host |
1,911,883 |
2,067,570 |
5,324,625 |
1,824,366 |
1,814,703 |
2.79 |
0.95 |
| configure.yash |
no-host |
232,295 |
222,360 |
368,096 |
235,690 |
234,559 |
1.58 |
1.01 |
| hello-world |
no-host |
146 |
78 |
3,984 |
345 |
341 |
27.29 |
2.36 |
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.4 |
3,810 |
3,810 |
0 |
702 |
1,870 |
1,238 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
767 |
1 |
2 |
2.6 |
8.0 |
156,777 |
15,416 |
2,903 |
8,754 |
77,337 |
70,686 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,843 |
2 |
73 |
15.2 |
29.2 |
1,785,027 |
49,179 |
25,898 |
91,515 |
886,574 |
806,938 |
25,736 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,883 |
3 |
68 |
21.6 |
30.3 |
2,709,227 |
56,216 |
66,561 |
114,377 |
1,295,038 |
1,299,812 |
32,241 |
42 |
133,122 |
1 |
| configure.ocaml |
no-host |
3,759 |
1 |
2 |
2.6 |
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.7 |
30,580 |
30,580 |
0 |
1,544 |
14,636 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,792 |
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 |
21 |
1 |
2 |
2.8 |
8.9 |
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 |
776 |
1 |
2 |
2.6 |
7.6 |
156,776 |
15,411 |
2,898 |
8,755 |
77,337 |
70,684 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,952 |
1 |
71 |
15.2 |
29.2 |
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,841 |
3 |
67 |
21.6 |
30.5 |
2,709,227 |
56,191 |
66,554 |
114,379 |
1,295,038 |
1,299,810 |
32,241 |
42 |
133,108 |
1 |
| configure.ocaml |
no-host |
3,758 |
1 |
2 |
2.6 |
22.5 |
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.5 |
30,580 |
30,580 |
0 |
1,546 |
14,636 |
14,398 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,786 |
1 |
2 |
2.6 |
26.5 |
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.5 |
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 |
19 |
13 |
7 |
4.3 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
6 |
3.5 |
dash |
| 23 |
no-host |
abuild-print-help |
469 |
408 |
64 |
23.0 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
21 |
13 |
9 |
8.9 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
8 |
13 |
8.5 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
667 |
303 |
394 |
3.0 |
bash |
| 9 |
no-host |
bin-true |
524 |
279 |
256 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,295 |
831 |
1,724 |
18.7 |
osh-cpython |
| 25 |
no-host |
bin-true |
767 |
297 |
487 |
8.0 |
osh-native |
| 33 |
no-host |
bin-true |
776 |
314 |
479 |
7.6 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,788 |
6,759 |
8,450 |
29.2 |
bash |
| 10 |
no-host |
configure.cpython |
14,607 |
6,724 |
8,321 |
29.1 |
dash |
| 18 |
no-host |
configure.cpython |
28,336 |
14,290 |
15,904 |
29.2 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,843 |
6,619 |
8,483 |
29.2 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,952 |
6,578 |
8,553 |
29.2 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,738 |
1,326 |
1,453 |
22.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,687 |
1,298 |
1,411 |
22.6 |
dash |
| 20 |
no-host |
configure.ocaml |
4,595 |
1,884 |
1,924 |
22.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,759 |
1,316 |
1,482 |
22.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,758 |
1,307 |
1,488 |
22.5 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
20 |
27 |
19.7 |
bash |
| 13 |
no-host |
configure.tcc |
40 |
24 |
17 |
19.7 |
dash |
| 21 |
no-host |
configure.tcc |
206 |
148 |
61 |
19.7 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
48 |
25 |
23 |
19.7 |
osh-native |
| 37 |
no-host |
configure.tcc |
48 |
19 |
29 |
19.5 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
13,535 |
5,836 |
8,193 |
30.2 |
bash |
| 11 |
no-host |
configure.util-linux |
14,413 |
5,975 |
8,963 |
30.2 |
dash |
| 19 |
no-host |
configure.util-linux |
31,287 |
18,079 |
14,311 |
30.3 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,883 |
5,581 |
8,540 |
30.3 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,841 |
5,663 |
8,406 |
30.5 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,813 |
931 |
885 |
26.4 |
bash |
| 14 |
no-host |
configure.yash |
1,746 |
878 |
872 |
26.3 |
dash |
| 22 |
no-host |
configure.yash |
2,450 |
1,363 |
1,131 |
26.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,792 |
881 |
916 |
26.3 |
osh-native |
| 38 |
no-host |
configure.yash |
1,786 |
929 |
860 |
26.5 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
2.8 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
57 |
39 |
18 |
18.4 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
6.4 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
2 |
1 |
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,508 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
| 15 |
no-host |
abuild-print-help |
1,106 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,466 |
0 |
0 |
0 |
8 |
0 |
44 |
8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,169 |
0 |
0 |
0 |
16 |
0 |
39 |
4 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,104 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
107,320 |
0 |
0 |
0 |
8 |
0 |
1,994 |
324 |
bash |
| 9 |
no-host |
bin-true |
66,412 |
0 |
0 |
0 |
8 |
0 |
1,976 |
161 |
dash |
| 17 |
no-host |
bin-true |
802,431 |
0 |
0 |
0 |
8 |
0 |
1,990 |
391 |
osh-cpython |
| 25 |
no-host |
bin-true |
125,166 |
0 |
0 |
0 |
16 |
0 |
1,982 |
78 |
osh-native |
| 33 |
no-host |
bin-true |
126,247 |
0 |
0 |
0 |
16 |
0 |
1,992 |
112 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
2,002,562 |
0 |
0 |
0 |
32,928 |
0 |
14,215 |
1,249 |
bash |
| 10 |
no-host |
configure.cpython |
2,027,119 |
0 |
0 |
0 |
32,992 |
0 |
14,390 |
1,241 |
dash |
| 18 |
no-host |
configure.cpython |
6,119,503 |
7 |
0 |
0 |
27,512 |
0 |
13,044 |
1,352 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,008,040 |
3 |
0 |
0 |
27,520 |
0 |
13,052 |
1,223 |
osh-native |
| 34 |
no-host |
configure.cpython |
2,006,023 |
1 |
0 |
0 |
27,520 |
0 |
13,058 |
1,139 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
373,351 |
0 |
0 |
0 |
5,120 |
0 |
1,949 |
188 |
bash |
| 12 |
no-host |
configure.ocaml |
353,792 |
0 |
0 |
0 |
5,112 |
0 |
1,942 |
179 |
dash |
| 20 |
no-host |
configure.ocaml |
618,186 |
0 |
0 |
0 |
5,112 |
0 |
1,850 |
207 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
377,015 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
215 |
osh-native |
| 36 |
no-host |
configure.ocaml |
376,065 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
219 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,120 |
0 |
0 |
0 |
104 |
0 |
49 |
8 |
bash |
| 13 |
no-host |
configure.tcc |
5,018 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
23,930 |
0 |
0 |
0 |
96 |
0 |
53 |
10 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,500 |
0 |
0 |
0 |
104 |
0 |
47 |
7 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,437 |
0 |
0 |
0 |
104 |
0 |
47 |
13 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,911,883 |
0 |
0 |
0 |
42,400 |
0 |
18,542 |
1,354 |
bash |
| 11 |
no-host |
configure.util-linux |
2,067,570 |
0 |
0 |
0 |
42,592 |
0 |
17,377 |
1,485 |
dash |
| 19 |
no-host |
configure.util-linux |
5,324,625 |
9 |
0 |
0 |
39,112 |
0 |
17,052 |
1,397 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,824,366 |
0 |
0 |
0 |
39,120 |
0 |
17,120 |
1,175 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,814,703 |
0 |
0 |
0 |
39,128 |
0 |
17,049 |
1,245 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
232,295 |
0 |
0 |
0 |
4,120 |
0 |
884 |
116 |
bash |
| 14 |
no-host |
configure.yash |
222,360 |
0 |
0 |
0 |
3,720 |
0 |
870 |
93 |
dash |
| 22 |
no-host |
configure.yash |
368,096 |
0 |
0 |
0 |
3,728 |
0 |
850 |
116 |
osh-cpython |
| 30 |
no-host |
configure.yash |
235,690 |
0 |
0 |
0 |
3,736 |
0 |
847 |
111 |
osh-native |
| 38 |
no-host |
configure.yash |
234,559 |
0 |
0 |
0 |
3,736 |
0 |
850 |
101 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
146 |
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,984 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
| 24 |
no-host |
hello-world |
345 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
| 32 |
no-host |
hello-world |
341 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native-souffle |
Shell and Host