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 |
479 |
22 |
20 |
25.96 |
1.19 |
| bin-true |
no-host |
654 |
520 |
2,313 |
774 |
781 |
3.54 |
1.18 |
| configure.cpython |
no-host |
14,715 |
14,738 |
28,433 |
14,942 |
14,903 |
1.93 |
1.02 |
| configure.ocaml |
no-host |
3,748 |
3,712 |
4,616 |
3,756 |
3,760 |
1.23 |
1.00 |
| configure.tcc |
no-host |
47 |
41 |
203 |
48 |
47 |
4.31 |
1.03 |
| configure.util-linux |
no-host |
13,613 |
14,471 |
31,280 |
13,941 |
13,910 |
2.30 |
1.02 |
| configure.yash |
no-host |
1,800 |
1,761 |
2,447 |
1,814 |
1,804 |
1.36 |
1.01 |
| hello-world |
no-host |
1 |
1 |
57 |
3 |
3 |
44.25 |
2.11 |
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,538 |
1,120 |
24,514 |
3,195 |
3,107 |
9.66 |
1.26 |
| bin-true |
no-host |
105,251 |
66,415 |
800,455 |
127,212 |
126,201 |
7.61 |
1.21 |
| configure.cpython |
no-host |
2,001,600 |
2,020,026 |
6,111,846 |
2,012,088 |
1,997,250 |
3.05 |
1.01 |
| configure.ocaml |
no-host |
373,353 |
353,928 |
617,651 |
376,611 |
376,006 |
1.65 |
1.01 |
| configure.tcc |
no-host |
6,107 |
5,010 |
23,954 |
6,500 |
6,470 |
3.92 |
1.06 |
| configure.util-linux |
no-host |
1,912,115 |
2,065,332 |
5,352,930 |
1,826,689 |
1,815,180 |
2.80 |
0.96 |
| configure.yash |
no-host |
233,418 |
221,369 |
368,595 |
235,076 |
234,884 |
1.58 |
1.01 |
| hello-world |
no-host |
147 |
78 |
3,983 |
345 |
338 |
27.10 |
2.35 |
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 |
774 |
1 |
2 |
2.6 |
8.3 |
156,777 |
15,416 |
2,903 |
8,754 |
77,337 |
70,686 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,942 |
1 |
74 |
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,941 |
3 |
69 |
21.6 |
30.2 |
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,756 |
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,814 |
1 |
2 |
2.6 |
26.4 |
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.0 |
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 |
5.9 |
3,809 |
3,809 |
0 |
703 |
1,870 |
1,236 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
781 |
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,903 |
1 |
72 |
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,910 |
3 |
69 |
21.6 |
30.3 |
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,760 |
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 |
47 |
0 |
0 |
1.3 |
19.7 |
30,580 |
30,580 |
0 |
1,546 |
14,636 |
14,398 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,804 |
1 |
2 |
2.6 |
26.2 |
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.8 |
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 |
10 |
9 |
4.3 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
5 |
3.4 |
dash |
| 23 |
no-host |
abuild-print-help |
479 |
424 |
59 |
22.9 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
12 |
10 |
9.0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
20 |
10 |
11 |
8.8 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
654 |
303 |
384 |
3.0 |
bash |
| 9 |
no-host |
bin-true |
520 |
283 |
250 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,313 |
833 |
1,748 |
18.6 |
osh-cpython |
| 25 |
no-host |
bin-true |
774 |
304 |
489 |
8.3 |
osh-native |
| 33 |
no-host |
bin-true |
781 |
305 |
493 |
7.6 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,715 |
6,701 |
8,386 |
29.1 |
bash |
| 10 |
no-host |
configure.cpython |
14,738 |
6,718 |
8,440 |
29.2 |
dash |
| 18 |
no-host |
configure.cpython |
28,433 |
14,404 |
15,910 |
29.2 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,942 |
6,749 |
8,473 |
29.2 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,903 |
6,616 |
8,457 |
29.1 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,748 |
1,339 |
1,449 |
22.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,712 |
1,316 |
1,417 |
22.5 |
dash |
| 20 |
no-host |
configure.ocaml |
4,616 |
1,915 |
1,913 |
22.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,756 |
1,329 |
1,467 |
22.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,760 |
1,312 |
1,487 |
22.5 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
47 |
25 |
23 |
19.7 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
21 |
20 |
19.7 |
dash |
| 21 |
no-host |
configure.tcc |
203 |
134 |
72 |
19.5 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
48 |
25 |
24 |
19.7 |
osh-native |
| 37 |
no-host |
configure.tcc |
47 |
24 |
23 |
19.7 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
13,613 |
5,906 |
8,163 |
30.2 |
bash |
| 11 |
no-host |
configure.util-linux |
14,471 |
5,966 |
8,999 |
30.3 |
dash |
| 19 |
no-host |
configure.util-linux |
31,280 |
17,940 |
14,409 |
30.3 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,941 |
5,636 |
8,533 |
30.2 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,910 |
5,678 |
8,445 |
30.3 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,800 |
898 |
910 |
26.3 |
bash |
| 14 |
no-host |
configure.yash |
1,761 |
901 |
864 |
26.4 |
dash |
| 22 |
no-host |
configure.yash |
2,447 |
1,364 |
1,127 |
26.5 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,814 |
942 |
875 |
26.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,804 |
886 |
924 |
26.2 |
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 |
46 |
12 |
18.4 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
6.3 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
2 |
1 |
5.9 |
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,538 |
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,514 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,195 |
0 |
0 |
0 |
16 |
0 |
39 |
5 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,107 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
105,251 |
0 |
0 |
0 |
8 |
0 |
1,986 |
314 |
bash |
| 9 |
no-host |
bin-true |
66,415 |
0 |
0 |
0 |
8 |
0 |
1,981 |
65 |
dash |
| 17 |
no-host |
bin-true |
800,455 |
0 |
0 |
0 |
8 |
0 |
1,983 |
304 |
osh-cpython |
| 25 |
no-host |
bin-true |
127,212 |
0 |
0 |
0 |
16 |
0 |
1,977 |
162 |
osh-native |
| 33 |
no-host |
bin-true |
126,201 |
0 |
0 |
0 |
16 |
0 |
1,988 |
202 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
2,001,600 |
0 |
0 |
0 |
32,952 |
0 |
14,210 |
1,207 |
bash |
| 10 |
no-host |
configure.cpython |
2,020,026 |
0 |
0 |
0 |
32,992 |
0 |
14,371 |
1,171 |
dash |
| 18 |
no-host |
configure.cpython |
6,111,846 |
0 |
0 |
0 |
27,512 |
0 |
13,000 |
1,223 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,012,088 |
0 |
0 |
0 |
27,520 |
0 |
13,019 |
996 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,997,250 |
0 |
0 |
0 |
27,520 |
0 |
13,012 |
1,120 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
373,353 |
0 |
0 |
0 |
5,120 |
0 |
1,944 |
179 |
bash |
| 12 |
no-host |
configure.ocaml |
353,928 |
0 |
0 |
0 |
5,112 |
0 |
1,922 |
192 |
dash |
| 20 |
no-host |
configure.ocaml |
617,651 |
0 |
0 |
0 |
5,112 |
0 |
1,845 |
213 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
376,611 |
0 |
0 |
0 |
5,120 |
0 |
1,921 |
201 |
osh-native |
| 36 |
no-host |
configure.ocaml |
376,006 |
0 |
0 |
0 |
5,120 |
0 |
1,926 |
186 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,107 |
0 |
0 |
0 |
104 |
0 |
50 |
12 |
bash |
| 13 |
no-host |
configure.tcc |
5,010 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
23,954 |
0 |
0 |
0 |
96 |
0 |
52 |
6 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,500 |
0 |
0 |
0 |
104 |
0 |
46 |
1 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,470 |
0 |
0 |
0 |
104 |
0 |
47 |
5 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,912,115 |
2 |
0 |
0 |
42,400 |
0 |
18,477 |
1,256 |
bash |
| 11 |
no-host |
configure.util-linux |
2,065,332 |
0 |
0 |
0 |
42,584 |
0 |
17,352 |
1,310 |
dash |
| 19 |
no-host |
configure.util-linux |
5,352,930 |
1 |
0 |
0 |
39,112 |
0 |
16,988 |
1,415 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,826,689 |
1 |
0 |
0 |
39,120 |
0 |
17,019 |
1,179 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,815,180 |
0 |
0 |
0 |
39,128 |
0 |
17,126 |
1,200 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
233,418 |
0 |
0 |
0 |
4,120 |
0 |
872 |
89 |
bash |
| 14 |
no-host |
configure.yash |
221,369 |
0 |
0 |
0 |
3,720 |
0 |
869 |
84 |
dash |
| 22 |
no-host |
configure.yash |
368,595 |
0 |
0 |
0 |
3,728 |
0 |
850 |
83 |
osh-cpython |
| 30 |
no-host |
configure.yash |
235,076 |
0 |
0 |
0 |
3,736 |
0 |
849 |
96 |
osh-native |
| 38 |
no-host |
configure.yash |
234,884 |
0 |
0 |
0 |
3,736 |
0 |
851 |
92 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
147 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
78 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
dash |
| 16 |
no-host |
hello-world |
3,983 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
| 24 |
no-host |
hello-world |
345 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
338 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host