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 |
16 |
9 |
543 |
21 |
21 |
34.50 |
1.36 |
| bin-true |
no-host |
608 |
437 |
2,457 |
814 |
806 |
4.04 |
1.34 |
| configure.cpython |
no-host |
13,962 |
13,954 |
29,645 |
14,743 |
14,827 |
2.12 |
1.06 |
| configure.ocaml |
no-host |
3,714 |
3,644 |
4,689 |
3,738 |
3,733 |
1.26 |
1.01 |
| configure.tcc |
no-host |
46 |
42 |
223 |
50 |
49 |
4.83 |
1.07 |
| configure.util-linux |
no-host |
12,668 |
13,425 |
32,392 |
13,700 |
13,804 |
2.56 |
1.08 |
| configure.yash |
no-host |
1,713 |
1,682 |
2,450 |
1,738 |
1,724 |
1.43 |
1.01 |
| hello-world |
no-host |
1 |
1 |
61 |
3 |
3 |
50.73 |
2.41 |
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,414 |
1,178 |
24,677 |
3,431 |
3,385 |
10.22 |
1.42 |
| bin-true |
no-host |
100,926 |
49,435 |
837,970 |
139,211 |
137,261 |
8.30 |
1.38 |
| configure.cpython |
no-host |
1,623,667 |
1,637,587 |
5,942,672 |
1,808,095 |
1,785,702 |
3.66 |
1.11 |
| configure.ocaml |
no-host |
298,865 |
280,559 |
556,773 |
317,195 |
315,412 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,198 |
4,196 |
23,823 |
5,976 |
5,846 |
4.58 |
1.15 |
| configure.util-linux |
no-host |
1,534,748 |
1,691,268 |
4,965,816 |
1,724,542 |
1,720,405 |
3.24 |
1.12 |
| configure.yash |
no-host |
173,695 |
159,551 |
315,376 |
179,071 |
179,256 |
1.82 |
1.03 |
| hello-world |
no-host |
152 |
87 |
3,877 |
382 |
378 |
25.51 |
2.51 |
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.8 |
3,831 |
3,831 |
0 |
703 |
1,881 |
1,247 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
814 |
1 |
2 |
2.6 |
8.7 |
156,803 |
15,433 |
2,920 |
8,760 |
77,348 |
70,695 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,743 |
1 |
68 |
15.2 |
34.7 |
1,782,994 |
46,106 |
25,369 |
91,621 |
885,112 |
806,261 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,700 |
3 |
61 |
21.4 |
39.7 |
2,707,127 |
126,359 |
66,591 |
113,462 |
1,294,568 |
1,299,097 |
32,539 |
41 |
133,182 |
1 |
| configure.ocaml |
no-host |
3,738 |
1 |
2 |
2.7 |
28.5 |
149,878 |
12,481 |
6,524 |
7,818 |
70,840 |
71,220 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
26.4 |
30,633 |
30,633 |
0 |
1,581 |
14,646 |
14,406 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,738 |
1 |
2 |
2.6 |
33.1 |
140,022 |
8,085 |
6,719 |
6,525 |
68,348 |
65,149 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
9.8 |
116,373 |
64,443 |
42,644 |
4,561 |
54,472 |
57,340 |
277 |
3 |
85,288 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.4 |
3,830 |
3,830 |
0 |
704 |
1,881 |
1,245 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
806 |
1 |
2 |
2.6 |
8.4 |
156,802 |
15,428 |
2,915 |
8,761 |
77,348 |
70,693 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,827 |
1 |
68 |
15.2 |
34.4 |
1,782,993 |
46,092 |
25,355 |
91,622 |
885,112 |
806,259 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,804 |
3 |
61 |
21.4 |
39.9 |
2,707,127 |
126,352 |
66,584 |
113,464 |
1,294,568 |
1,299,095 |
32,539 |
41 |
133,168 |
1 |
| configure.ocaml |
no-host |
3,733 |
1 |
2 |
2.7 |
28.8 |
149,878 |
12,475 |
6,518 |
7,820 |
70,840 |
71,218 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
26.2 |
30,633 |
30,633 |
0 |
1,583 |
14,646 |
14,404 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,724 |
1 |
2 |
2.6 |
33.3 |
140,022 |
8,074 |
6,708 |
6,527 |
68,348 |
65,147 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
9.4 |
116,372 |
64,438 |
42,639 |
4,562 |
54,472 |
57,338 |
277 |
3 |
85,278 |
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 |
16 |
11 |
5 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
4 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
543 |
485 |
62 |
22.8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
21 |
9 |
13 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
12 |
9 |
9.4 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
608 |
313 |
334 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
437 |
275 |
167 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,457 |
896 |
1,831 |
18.1 |
osh-cpython |
| 25 |
no-host |
bin-true |
814 |
307 |
523 |
8.7 |
osh-native |
| 33 |
no-host |
bin-true |
806 |
320 |
504 |
8.4 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,962 |
7,564 |
6,771 |
34.3 |
bash |
| 10 |
no-host |
configure.cpython |
13,954 |
7,576 |
6,770 |
34.3 |
dash |
| 18 |
no-host |
configure.cpython |
29,645 |
16,276 |
15,328 |
34.6 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,743 |
7,360 |
7,670 |
34.7 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,827 |
7,470 |
7,492 |
34.4 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,714 |
1,481 |
1,272 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,644 |
1,470 |
1,196 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,689 |
2,130 |
1,783 |
28.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,738 |
1,478 |
1,299 |
28.5 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,733 |
1,478 |
1,293 |
28.8 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
28 |
19 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
23 |
19 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
223 |
160 |
68 |
26.1 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
50 |
30 |
20 |
26.4 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
26 |
23 |
26.2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,668 |
6,504 |
6,617 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,425 |
6,540 |
7,364 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
32,392 |
20,368 |
13,098 |
39.7 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,700 |
6,282 |
7,653 |
39.7 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,804 |
6,310 |
7,561 |
39.9 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,713 |
960 |
760 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,682 |
935 |
749 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
2,450 |
1,441 |
1,051 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,738 |
918 |
824 |
33.1 |
osh-native |
| 38 |
no-host |
configure.yash |
1,724 |
929 |
798 |
33.3 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
61 |
41 |
20 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
6.8 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
1 |
2 |
6.4 |
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,414 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,178 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,677 |
0 |
0 |
0 |
8 |
0 |
45 |
3 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,431 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,385 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
100,926 |
0 |
0 |
0 |
8 |
0 |
1,995 |
55 |
bash |
| 9 |
no-host |
bin-true |
49,435 |
0 |
0 |
0 |
8 |
0 |
2,981 |
56 |
dash |
| 17 |
no-host |
bin-true |
837,970 |
0 |
0 |
0 |
8 |
0 |
2,001 |
122 |
osh-cpython |
| 25 |
no-host |
bin-true |
139,211 |
0 |
0 |
0 |
16 |
0 |
1,990 |
82 |
osh-native |
| 33 |
no-host |
bin-true |
137,261 |
0 |
0 |
0 |
16 |
0 |
1,983 |
114 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,623,667 |
0 |
0 |
0 |
25,272 |
0 |
14,053 |
1,080 |
bash |
| 10 |
no-host |
configure.cpython |
1,637,587 |
0 |
0 |
0 |
25,272 |
0 |
14,088 |
1,077 |
dash |
| 18 |
no-host |
configure.cpython |
5,942,672 |
0 |
0 |
0 |
25,272 |
0 |
12,878 |
952 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,808,095 |
0 |
0 |
0 |
25,280 |
0 |
12,854 |
1,012 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,785,702 |
0 |
0 |
0 |
25,280 |
0 |
12,836 |
1,032 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,865 |
0 |
0 |
0 |
4,432 |
0 |
2,011 |
170 |
bash |
| 12 |
no-host |
configure.ocaml |
280,559 |
0 |
0 |
0 |
4,432 |
0 |
2,105 |
190 |
dash |
| 20 |
no-host |
configure.ocaml |
556,773 |
0 |
0 |
0 |
4,432 |
0 |
1,914 |
166 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
317,195 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
203 |
osh-native |
| 36 |
no-host |
configure.ocaml |
315,412 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
195 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,198 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,196 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
23,823 |
0 |
0 |
0 |
88 |
0 |
53 |
4 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,976 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,846 |
0 |
0 |
0 |
96 |
0 |
47 |
0 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,534,748 |
0 |
0 |
0 |
35,944 |
0 |
18,968 |
1,195 |
bash |
| 11 |
no-host |
configure.util-linux |
1,691,268 |
0 |
0 |
0 |
35,936 |
0 |
17,033 |
1,221 |
dash |
| 19 |
no-host |
configure.util-linux |
4,965,816 |
2 |
0 |
0 |
35,944 |
0 |
17,530 |
840 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,724,542 |
1 |
0 |
0 |
35,944 |
0 |
17,478 |
1,083 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,720,405 |
0 |
0 |
0 |
35,944 |
0 |
17,470 |
1,103 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,695 |
0 |
0 |
0 |
3,616 |
0 |
869 |
92 |
bash |
| 14 |
no-host |
configure.yash |
159,551 |
0 |
0 |
0 |
3,616 |
0 |
1,001 |
95 |
dash |
| 22 |
no-host |
configure.yash |
315,376 |
0 |
0 |
0 |
3,616 |
0 |
862 |
109 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,071 |
0 |
0 |
0 |
3,624 |
0 |
856 |
112 |
osh-native |
| 38 |
no-host |
configure.yash |
179,256 |
0 |
0 |
0 |
3,624 |
0 |
856 |
99 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
87 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,877 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
| 24 |
no-host |
hello-world |
382 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
378 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host