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 |
544 |
23 |
21 |
33.27 |
1.40 |
| bin-true |
no-host |
615 |
435 |
2,458 |
812 |
796 |
4.00 |
1.32 |
| configure.cpython |
no-host |
14,193 |
14,275 |
30,419 |
15,368 |
15,048 |
2.14 |
1.08 |
| configure.ocaml |
no-host |
3,754 |
3,672 |
4,800 |
3,808 |
3,803 |
1.28 |
1.01 |
| configure.tcc |
no-host |
47 |
42 |
229 |
51 |
50 |
4.91 |
1.08 |
| configure.util-linux |
no-host |
12,883 |
13,659 |
33,203 |
14,014 |
14,108 |
2.58 |
1.09 |
| configure.yash |
no-host |
1,743 |
1,687 |
2,529 |
1,770 |
1,769 |
1.45 |
1.02 |
| hello-world |
no-host |
1 |
1 |
61 |
3 |
3 |
49.48 |
2.50 |
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,380 |
1,182 |
24,691 |
3,473 |
3,337 |
10.37 |
1.46 |
| bin-true |
no-host |
100,893 |
49,405 |
840,485 |
138,243 |
134,312 |
8.33 |
1.37 |
| configure.cpython |
no-host |
1,624,457 |
1,650,984 |
5,986,515 |
1,810,295 |
1,779,724 |
3.69 |
1.11 |
| configure.ocaml |
no-host |
298,654 |
280,741 |
558,305 |
316,276 |
316,045 |
1.87 |
1.06 |
| configure.tcc |
no-host |
5,219 |
4,213 |
23,916 |
5,926 |
5,920 |
4.58 |
1.14 |
| configure.util-linux |
no-host |
1,535,555 |
1,697,798 |
4,979,878 |
1,716,480 |
1,706,828 |
3.24 |
1.12 |
| configure.yash |
no-host |
173,601 |
159,660 |
316,365 |
179,410 |
178,820 |
1.82 |
1.03 |
| hello-world |
no-host |
153 |
87 |
3,869 |
388 |
383 |
25.29 |
2.54 |
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.9 |
3,827 |
3,827 |
0 |
704 |
1,881 |
1,242 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
812 |
1 |
2 |
2.6 |
9.0 |
156,799 |
15,429 |
2,916 |
8,761 |
77,348 |
70,690 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,368 |
2 |
77 |
15.2 |
34.7 |
1,782,990 |
46,102 |
25,357 |
91,622 |
885,112 |
806,256 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
14,014 |
3 |
67 |
21.4 |
39.5 |
2,707,123 |
126,355 |
66,587 |
113,463 |
1,294,568 |
1,299,092 |
32,539 |
41 |
133,174 |
1 |
| configure.ocaml |
no-host |
3,808 |
1 |
2 |
2.7 |
28.7 |
149,874 |
12,477 |
6,520 |
7,819 |
70,840 |
71,215 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
51 |
0 |
0 |
1.3 |
26.1 |
30,629 |
30,629 |
0 |
1,582 |
14,646 |
14,401 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,770 |
1 |
2 |
2.6 |
33.2 |
140,018 |
8,081 |
6,715 |
6,526 |
68,348 |
65,144 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
10.0 |
116,369 |
64,439 |
42,640 |
4,562 |
54,472 |
57,335 |
277 |
3 |
85,280 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.7 |
3,826 |
3,826 |
0 |
705 |
1,881 |
1,240 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
796 |
1 |
2 |
2.6 |
8.4 |
156,798 |
15,424 |
2,911 |
8,762 |
77,348 |
70,688 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,048 |
1 |
70 |
15.2 |
34.4 |
1,782,989 |
46,088 |
25,353 |
91,623 |
885,112 |
806,254 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
14,108 |
3 |
64 |
21.4 |
40.0 |
2,707,123 |
126,348 |
66,580 |
113,465 |
1,294,568 |
1,299,090 |
32,539 |
41 |
133,160 |
1 |
| configure.ocaml |
no-host |
3,803 |
1 |
2 |
2.7 |
28.7 |
149,874 |
12,471 |
6,514 |
7,821 |
70,840 |
71,213 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
26.2 |
30,629 |
30,629 |
0 |
1,584 |
14,646 |
14,399 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,769 |
1 |
2 |
2.6 |
33.1 |
140,018 |
8,070 |
6,704 |
6,528 |
68,348 |
65,142 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
9.2 |
116,368 |
64,434 |
42,635 |
4,563 |
54,472 |
57,333 |
277 |
3 |
85,270 |
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 |
6 |
11 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
5 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
544 |
490 |
58 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
23 |
12 |
11 |
10.0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
13 |
9 |
9.2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
615 |
314 |
338 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
435 |
277 |
163 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,458 |
887 |
1,845 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
812 |
315 |
514 |
9.0 |
osh-native |
| 33 |
no-host |
bin-true |
796 |
305 |
509 |
8.4 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,193 |
7,676 |
6,903 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,275 |
7,771 |
6,908 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
30,419 |
16,755 |
15,696 |
34.6 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,368 |
7,744 |
7,935 |
34.7 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,048 |
7,516 |
7,661 |
34.4 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,754 |
1,496 |
1,298 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,672 |
1,519 |
1,176 |
28.5 |
dash |
| 20 |
no-host |
configure.ocaml |
4,800 |
2,198 |
1,832 |
28.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,808 |
1,511 |
1,339 |
28.7 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,803 |
1,476 |
1,367 |
28.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
47 |
21 |
26 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
24 |
19 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
229 |
153 |
80 |
26.1 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
51 |
30 |
21 |
26.1 |
osh-native |
| 37 |
no-host |
configure.tcc |
50 |
24 |
26 |
26.2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,883 |
6,705 |
6,645 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,659 |
6,596 |
7,557 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
33,203 |
20,722 |
13,594 |
39.7 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,014 |
6,395 |
7,849 |
39.5 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,108 |
6,426 |
7,751 |
40.0 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,743 |
985 |
765 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,687 |
936 |
753 |
33.5 |
dash |
| 22 |
no-host |
configure.yash |
2,529 |
1,521 |
1,052 |
33.3 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,770 |
990 |
783 |
33.2 |
osh-native |
| 38 |
no-host |
configure.yash |
1,769 |
964 |
808 |
33.1 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
61 |
37 |
24 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
6.9 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
2 |
1 |
6.7 |
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,380 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,182 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,691 |
0 |
0 |
0 |
8 |
0 |
45 |
3 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,473 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,337 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
100,893 |
0 |
0 |
0 |
8 |
0 |
1,986 |
71 |
bash |
| 9 |
no-host |
bin-true |
49,405 |
0 |
0 |
0 |
8 |
0 |
2,990 |
44 |
dash |
| 17 |
no-host |
bin-true |
840,485 |
0 |
0 |
0 |
8 |
0 |
2,000 |
164 |
osh-cpython |
| 25 |
no-host |
bin-true |
138,243 |
0 |
0 |
0 |
16 |
0 |
1,990 |
80 |
osh-native |
| 33 |
no-host |
bin-true |
134,312 |
0 |
0 |
0 |
16 |
0 |
1,972 |
104 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,624,457 |
0 |
0 |
0 |
25,272 |
0 |
14,040 |
1,031 |
bash |
| 10 |
no-host |
configure.cpython |
1,650,984 |
0 |
0 |
0 |
25,272 |
0 |
14,090 |
1,067 |
dash |
| 18 |
no-host |
configure.cpython |
5,986,515 |
0 |
0 |
0 |
25,272 |
0 |
12,880 |
874 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,810,295 |
0 |
0 |
0 |
25,280 |
0 |
12,935 |
1,087 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,779,724 |
0 |
0 |
0 |
25,280 |
0 |
12,859 |
1,039 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,654 |
0 |
0 |
0 |
4,432 |
0 |
2,014 |
216 |
bash |
| 12 |
no-host |
configure.ocaml |
280,741 |
0 |
0 |
0 |
4,432 |
0 |
2,106 |
188 |
dash |
| 20 |
no-host |
configure.ocaml |
558,305 |
0 |
0 |
0 |
4,432 |
0 |
1,917 |
201 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
316,276 |
0 |
0 |
0 |
4,440 |
0 |
2,006 |
211 |
osh-native |
| 36 |
no-host |
configure.ocaml |
316,045 |
0 |
0 |
0 |
4,440 |
0 |
2,002 |
217 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,219 |
0 |
0 |
0 |
80 |
0 |
49 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,213 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
23,916 |
0 |
0 |
0 |
88 |
0 |
53 |
3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,926 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,920 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,535,555 |
0 |
0 |
0 |
35,944 |
0 |
18,923 |
1,033 |
bash |
| 11 |
no-host |
configure.util-linux |
1,697,798 |
2 |
0 |
0 |
35,936 |
0 |
17,049 |
1,324 |
dash |
| 19 |
no-host |
configure.util-linux |
4,979,878 |
3 |
0 |
0 |
35,952 |
0 |
17,533 |
850 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,716,480 |
2 |
0 |
0 |
35,952 |
0 |
17,550 |
1,140 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,706,828 |
2 |
0 |
0 |
35,952 |
0 |
17,489 |
1,085 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,601 |
0 |
0 |
0 |
3,616 |
0 |
877 |
95 |
bash |
| 14 |
no-host |
configure.yash |
159,660 |
0 |
0 |
0 |
3,616 |
0 |
998 |
97 |
dash |
| 22 |
no-host |
configure.yash |
316,365 |
0 |
0 |
0 |
3,616 |
0 |
860 |
105 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,410 |
0 |
0 |
0 |
3,624 |
0 |
856 |
89 |
osh-native |
| 38 |
no-host |
configure.yash |
178,820 |
0 |
0 |
0 |
3,624 |
0 |
858 |
95 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
153 |
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,869 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
| 24 |
no-host |
hello-world |
388 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
383 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host