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 |
492 |
22 |
21 |
25.79 |
1.16 |
| bin-true |
no-host |
661 |
531 |
2,336 |
808 |
786 |
3.53 |
1.22 |
| configure.cpython |
no-host |
15,114 |
15,131 |
29,939 |
15,302 |
15,348 |
1.98 |
1.01 |
| configure.ocaml |
no-host |
3,839 |
3,769 |
4,800 |
3,850 |
3,845 |
1.25 |
1.00 |
| configure.tcc |
no-host |
51 |
41 |
222 |
48 |
49 |
4.35 |
0.94 |
| configure.util-linux |
no-host |
14,066 |
14,882 |
32,888 |
14,348 |
14,342 |
2.34 |
1.02 |
| configure.yash |
no-host |
1,856 |
1,802 |
2,570 |
1,856 |
1,847 |
1.38 |
1.00 |
| hello-world |
no-host |
1 |
1 |
60 |
3 |
3 |
43.54 |
2.09 |
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,585 |
1,093 |
24,340 |
3,201 |
3,121 |
9.42 |
1.24 |
| bin-true |
no-host |
107,329 |
65,444 |
795,177 |
127,120 |
125,247 |
7.41 |
1.18 |
| configure.cpython |
no-host |
1,997,449 |
2,018,685 |
6,115,997 |
2,017,264 |
2,004,570 |
3.06 |
1.01 |
| configure.ocaml |
no-host |
373,336 |
353,715 |
618,229 |
376,715 |
375,914 |
1.66 |
1.01 |
| configure.tcc |
no-host |
6,093 |
5,022 |
23,973 |
6,493 |
6,474 |
3.93 |
1.07 |
| configure.util-linux |
no-host |
1,912,304 |
2,074,978 |
5,336,586 |
1,825,815 |
1,807,074 |
2.79 |
0.95 |
| configure.yash |
no-host |
233,709 |
222,219 |
369,013 |
235,738 |
235,195 |
1.58 |
1.01 |
| hello-world |
no-host |
145 |
78 |
3,985 |
350 |
340 |
27.48 |
2.41 |
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 |
808 |
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 |
15,302 |
2 |
74 |
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,348 |
3 |
69 |
21.6 |
30.3 |
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,850 |
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 |
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,856 |
1 |
2 |
2.6 |
26.2 |
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 |
5.9 |
3,809 |
3,809 |
0 |
703 |
1,870 |
1,236 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
786 |
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 |
15,348 |
2 |
74 |
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 |
14,342 |
3 |
69 |
21.6 |
30.4 |
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,845 |
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 |
49 |
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,847 |
1 |
2 |
2.6 |
26.4 |
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 |
19 |
10 |
10 |
4.5 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.4 |
dash |
| 23 |
no-host |
abuild-print-help |
492 |
438 |
57 |
22.9 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
12 |
11 |
9.2 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
10 |
11 |
8.7 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
661 |
314 |
381 |
2.8 |
bash |
| 9 |
no-host |
bin-true |
531 |
282 |
263 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,336 |
842 |
1,770 |
18.6 |
osh-cpython |
| 25 |
no-host |
bin-true |
808 |
289 |
534 |
8.1 |
osh-native |
| 33 |
no-host |
bin-true |
786 |
283 |
518 |
7.6 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
15,114 |
6,838 |
8,696 |
29.2 |
bash |
| 10 |
no-host |
configure.cpython |
15,131 |
6,909 |
8,670 |
29.2 |
dash |
| 18 |
no-host |
configure.cpython |
29,939 |
15,198 |
16,726 |
29.3 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,302 |
6,777 |
8,830 |
29.3 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,348 |
6,775 |
8,750 |
29.2 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,839 |
1,340 |
1,543 |
22.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,769 |
1,334 |
1,455 |
22.6 |
dash |
| 20 |
no-host |
configure.ocaml |
4,800 |
1,971 |
2,058 |
22.5 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,850 |
1,310 |
1,580 |
22.5 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,845 |
1,393 |
1,490 |
22.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
51 |
30 |
21 |
19.7 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
24 |
18 |
19.7 |
dash |
| 21 |
no-host |
configure.tcc |
222 |
143 |
84 |
19.7 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
48 |
26 |
22 |
19.6 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
19 |
30 |
19.7 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
14,066 |
5,986 |
8,591 |
30.3 |
bash |
| 11 |
no-host |
configure.util-linux |
14,882 |
5,954 |
9,457 |
30.2 |
dash |
| 19 |
no-host |
configure.util-linux |
32,888 |
18,982 |
15,062 |
30.5 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,348 |
5,737 |
8,842 |
30.3 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,342 |
5,746 |
8,756 |
30.4 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,856 |
928 |
931 |
26.5 |
bash |
| 14 |
no-host |
configure.yash |
1,802 |
909 |
898 |
26.2 |
dash |
| 22 |
no-host |
configure.yash |
2,570 |
1,415 |
1,197 |
26.2 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,856 |
938 |
921 |
26.2 |
osh-native |
| 38 |
no-host |
configure.yash |
1,847 |
926 |
926 |
26.4 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
2.8 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
60 |
37 |
23 |
18.3 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
6.4 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
3 |
0 |
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,585 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
bash |
| 15 |
no-host |
abuild-print-help |
1,093 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,340 |
0 |
0 |
0 |
8 |
0 |
45 |
6 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,201 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,121 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
107,329 |
0 |
0 |
0 |
8 |
0 |
1,986 |
152 |
bash |
| 9 |
no-host |
bin-true |
65,444 |
0 |
0 |
0 |
8 |
0 |
1,986 |
67 |
dash |
| 17 |
no-host |
bin-true |
795,177 |
0 |
0 |
0 |
8 |
0 |
1,983 |
167 |
osh-cpython |
| 25 |
no-host |
bin-true |
127,120 |
0 |
0 |
0 |
16 |
0 |
1,989 |
338 |
osh-native |
| 33 |
no-host |
bin-true |
125,247 |
0 |
0 |
0 |
16 |
0 |
1,975 |
128 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,997,449 |
0 |
0 |
0 |
32,928 |
0 |
14,278 |
1,200 |
bash |
| 10 |
no-host |
configure.cpython |
2,018,685 |
0 |
0 |
0 |
32,992 |
0 |
14,324 |
1,207 |
dash |
| 18 |
no-host |
configure.cpython |
6,115,997 |
0 |
0 |
0 |
27,512 |
0 |
13,035 |
1,233 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,017,264 |
1 |
0 |
0 |
27,520 |
0 |
13,045 |
980 |
osh-native |
| 34 |
no-host |
configure.cpython |
2,004,570 |
0 |
0 |
0 |
27,520 |
0 |
13,026 |
1,111 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
373,336 |
0 |
0 |
0 |
5,120 |
0 |
1,938 |
218 |
bash |
| 12 |
no-host |
configure.ocaml |
353,715 |
0 |
0 |
0 |
5,112 |
0 |
1,926 |
170 |
dash |
| 20 |
no-host |
configure.ocaml |
618,229 |
0 |
0 |
0 |
5,112 |
0 |
1,846 |
198 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
376,715 |
0 |
0 |
0 |
5,120 |
0 |
1,932 |
200 |
osh-native |
| 36 |
no-host |
configure.ocaml |
375,914 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
183 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,093 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
5,022 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
23,973 |
0 |
0 |
0 |
96 |
0 |
53 |
11 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,493 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,474 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,912,304 |
0 |
0 |
0 |
42,400 |
0 |
18,579 |
1,221 |
bash |
| 11 |
no-host |
configure.util-linux |
2,074,978 |
1 |
0 |
0 |
42,592 |
0 |
17,401 |
1,359 |
dash |
| 19 |
no-host |
configure.util-linux |
5,336,586 |
12 |
0 |
0 |
39,128 |
0 |
17,031 |
1,275 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,825,815 |
1 |
0 |
0 |
39,128 |
0 |
17,010 |
1,161 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,807,074 |
1 |
0 |
0 |
39,136 |
0 |
16,898 |
1,172 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
233,709 |
0 |
0 |
0 |
4,120 |
0 |
883 |
81 |
bash |
| 14 |
no-host |
configure.yash |
222,219 |
0 |
0 |
0 |
3,720 |
0 |
867 |
86 |
dash |
| 22 |
no-host |
configure.yash |
369,013 |
0 |
0 |
0 |
3,728 |
0 |
854 |
82 |
osh-cpython |
| 30 |
no-host |
configure.yash |
235,738 |
0 |
0 |
0 |
3,736 |
0 |
849 |
96 |
osh-native |
| 38 |
no-host |
configure.yash |
235,195 |
0 |
0 |
0 |
3,736 |
0 |
854 |
85 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
145 |
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,985 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
350 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
| 32 |
no-host |
hello-world |
340 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host