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 |
463 |
22 |
20 |
25.75 |
1.21 |
| bin-true |
no-host |
638 |
522 |
2,278 |
770 |
777 |
3.57 |
1.21 |
| configure.cpython |
no-host |
14,428 |
14,513 |
28,097 |
14,560 |
14,856 |
1.95 |
1.01 |
| configure.ocaml |
no-host |
3,690 |
3,636 |
4,542 |
3,745 |
3,720 |
1.23 |
1.01 |
| configure.tcc |
no-host |
46 |
40 |
200 |
47 |
46 |
4.35 |
1.03 |
| configure.util-linux |
no-host |
13,393 |
14,282 |
30,942 |
13,737 |
13,658 |
2.31 |
1.03 |
| configure.yash |
no-host |
1,757 |
1,712 |
2,406 |
1,801 |
1,770 |
1.37 |
1.03 |
| hello-world |
no-host |
1 |
1 |
56 |
3 |
3 |
42.43 |
2.08 |
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,505 |
1,120 |
24,391 |
3,232 |
3,125 |
9.74 |
1.29 |
| bin-true |
no-host |
104,343 |
65,463 |
795,184 |
126,208 |
125,168 |
7.62 |
1.21 |
| configure.cpython |
no-host |
2,003,369 |
2,022,853 |
6,124,413 |
2,016,870 |
1,998,639 |
3.06 |
1.01 |
| configure.ocaml |
no-host |
373,462 |
354,033 |
618,255 |
377,770 |
376,301 |
1.66 |
1.01 |
| configure.tcc |
no-host |
6,111 |
5,000 |
24,011 |
6,528 |
6,445 |
3.93 |
1.07 |
| configure.util-linux |
no-host |
1,915,169 |
2,066,938 |
5,350,459 |
1,826,297 |
1,811,620 |
2.79 |
0.95 |
| configure.yash |
no-host |
233,785 |
222,351 |
369,554 |
235,266 |
235,007 |
1.58 |
1.01 |
| hello-world |
no-host |
149 |
77 |
3,986 |
346 |
342 |
26.75 |
2.32 |
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 |
770 |
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,560 |
1 |
67 |
15.2 |
29.1 |
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,737 |
3 |
64 |
21.6 |
30.3 |
2,709,228 |
56,216 |
66,561 |
114,377 |
1,295,039 |
1,299,812 |
32,241 |
42 |
133,122 |
1 |
| configure.ocaml |
no-host |
3,745 |
1 |
2 |
2.7 |
22.5 |
149,879 |
12,467 |
6,510 |
7,749 |
70,874 |
71,256 |
1,695 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
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,801 |
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.3 |
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 |
777 |
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,856 |
1 |
69 |
15.2 |
29.1 |
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,658 |
3 |
62 |
21.6 |
30.3 |
2,709,228 |
56,191 |
66,554 |
114,379 |
1,295,039 |
1,299,810 |
32,241 |
42 |
133,108 |
1 |
| configure.ocaml |
no-host |
3,720 |
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 |
46 |
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,770 |
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 |
20 |
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 |
11 |
8 |
4.3 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.5 |
dash |
| 23 |
no-host |
abuild-print-help |
463 |
407 |
59 |
23.0 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
10 |
12 |
9.3 |
osh-native |
| 39 |
no-host |
abuild-print-help |
20 |
11 |
10 |
8.7 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
638 |
298 |
372 |
2.9 |
bash |
| 9 |
no-host |
bin-true |
522 |
281 |
251 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,278 |
791 |
1,748 |
18.7 |
osh-cpython |
| 25 |
no-host |
bin-true |
770 |
310 |
475 |
8.1 |
osh-native |
| 33 |
no-host |
bin-true |
777 |
304 |
491 |
7.6 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,428 |
6,574 |
8,222 |
29.2 |
bash |
| 10 |
no-host |
configure.cpython |
14,513 |
6,651 |
8,289 |
29.2 |
dash |
| 18 |
no-host |
configure.cpython |
28,097 |
14,248 |
15,686 |
29.3 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,560 |
6,452 |
8,380 |
29.1 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,856 |
6,582 |
8,332 |
29.1 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,690 |
1,273 |
1,457 |
22.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,636 |
1,279 |
1,379 |
22.4 |
dash |
| 20 |
no-host |
configure.ocaml |
4,542 |
1,872 |
1,884 |
22.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,745 |
1,301 |
1,485 |
22.5 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,720 |
1,354 |
1,405 |
22.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
21 |
25 |
19.6 |
bash |
| 13 |
no-host |
configure.tcc |
40 |
19 |
21 |
19.7 |
dash |
| 21 |
no-host |
configure.tcc |
200 |
135 |
69 |
19.7 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
47 |
21 |
27 |
19.7 |
osh-native |
| 37 |
no-host |
configure.tcc |
46 |
28 |
19 |
19.5 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
13,393 |
5,873 |
8,004 |
30.3 |
bash |
| 11 |
no-host |
configure.util-linux |
14,282 |
5,850 |
8,922 |
30.2 |
dash |
| 19 |
no-host |
configure.util-linux |
30,942 |
17,779 |
14,223 |
30.5 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,737 |
5,634 |
8,331 |
30.3 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,658 |
5,566 |
8,271 |
30.3 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,757 |
880 |
886 |
26.2 |
bash |
| 14 |
no-host |
configure.yash |
1,712 |
875 |
842 |
26.4 |
dash |
| 22 |
no-host |
configure.yash |
2,406 |
1,352 |
1,097 |
26.3 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,801 |
920 |
886 |
26.3 |
osh-native |
| 38 |
no-host |
configure.yash |
1,770 |
917 |
858 |
26.3 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
2.9 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
56 |
37 |
19 |
18.3 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
3 |
0 |
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,505 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,120 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,391 |
0 |
0 |
0 |
8 |
0 |
45 |
6 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,232 |
0 |
0 |
0 |
16 |
0 |
39 |
4 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,125 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
104,343 |
0 |
0 |
0 |
8 |
0 |
1,981 |
70 |
bash |
| 9 |
no-host |
bin-true |
65,463 |
0 |
0 |
0 |
8 |
0 |
1,978 |
200 |
dash |
| 17 |
no-host |
bin-true |
795,184 |
0 |
0 |
0 |
8 |
0 |
1,991 |
218 |
osh-cpython |
| 25 |
no-host |
bin-true |
126,208 |
0 |
0 |
0 |
16 |
0 |
1,985 |
146 |
osh-native |
| 33 |
no-host |
bin-true |
125,168 |
0 |
0 |
0 |
16 |
0 |
1,991 |
326 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
2,003,369 |
0 |
0 |
0 |
32,928 |
0 |
14,227 |
1,276 |
bash |
| 10 |
no-host |
configure.cpython |
2,022,853 |
0 |
0 |
0 |
32,992 |
0 |
14,334 |
1,363 |
dash |
| 18 |
no-host |
configure.cpython |
6,124,413 |
0 |
0 |
0 |
27,512 |
0 |
13,026 |
1,254 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,016,870 |
0 |
0 |
0 |
27,520 |
0 |
13,035 |
1,155 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,998,639 |
0 |
0 |
0 |
27,520 |
0 |
13,020 |
1,234 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
373,462 |
0 |
0 |
0 |
5,120 |
0 |
1,945 |
194 |
bash |
| 12 |
no-host |
configure.ocaml |
354,033 |
0 |
0 |
0 |
5,112 |
0 |
1,945 |
206 |
dash |
| 20 |
no-host |
configure.ocaml |
618,255 |
0 |
0 |
0 |
5,112 |
0 |
1,851 |
221 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
377,770 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
228 |
osh-native |
| 36 |
no-host |
configure.ocaml |
376,301 |
0 |
0 |
0 |
5,120 |
0 |
1,929 |
200 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,111 |
0 |
0 |
0 |
104 |
0 |
48 |
6 |
bash |
| 13 |
no-host |
configure.tcc |
5,000 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
24,011 |
0 |
0 |
0 |
96 |
0 |
53 |
7 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,528 |
0 |
0 |
0 |
104 |
0 |
47 |
0 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,445 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,915,169 |
0 |
0 |
0 |
42,408 |
0 |
18,473 |
1,273 |
bash |
| 11 |
no-host |
configure.util-linux |
2,066,938 |
1 |
0 |
0 |
42,592 |
0 |
17,330 |
1,504 |
dash |
| 19 |
no-host |
configure.util-linux |
5,350,459 |
11 |
0 |
0 |
39,112 |
0 |
17,048 |
1,343 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,826,297 |
0 |
0 |
0 |
39,120 |
0 |
17,034 |
1,291 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,811,620 |
0 |
0 |
0 |
39,128 |
0 |
16,988 |
1,345 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
233,785 |
0 |
0 |
0 |
4,120 |
0 |
872 |
116 |
bash |
| 14 |
no-host |
configure.yash |
222,351 |
0 |
0 |
0 |
3,728 |
0 |
870 |
100 |
dash |
| 22 |
no-host |
configure.yash |
369,554 |
0 |
0 |
0 |
3,728 |
0 |
856 |
98 |
osh-cpython |
| 30 |
no-host |
configure.yash |
235,266 |
0 |
0 |
0 |
3,736 |
0 |
851 |
118 |
osh-native |
| 38 |
no-host |
configure.yash |
235,007 |
0 |
0 |
0 |
3,736 |
0 |
847 |
104 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
149 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
77 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,986 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
| 24 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
342 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host