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-native |
osh-nosouffle |
osh-static |
osh bash ratio |
static bash ratio |
| abuild-print-help |
no-host |
15 |
9 |
21 |
22 |
18 |
1.33 |
1.18 |
| bin-true |
no-host |
622 |
445 |
823 |
804 |
657 |
1.32 |
1.06 |
| configure.cpython |
no-host |
13,696 |
13,791 |
13,376 |
13,475 |
12,888 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,680 |
3,585 |
3,685 |
3,692 |
3,653 |
1.00 |
0.99 |
| configure.tcc |
no-host |
46 |
41 |
47 |
47 |
43 |
1.02 |
0.95 |
| configure.util-linux |
no-host |
12,463 |
13,192 |
12,401 |
12,476 |
12,032 |
1.00 |
0.97 |
| configure.yash |
no-host |
1,694 |
1,626 |
1,693 |
1,701 |
1,664 |
1.00 |
0.98 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.71 |
1.05 |
Minor Page Faults
| workload |
host name |
bash |
dash |
osh-native |
osh-nosouffle |
osh-static |
osh bash ratio |
static bash ratio |
| abuild-print-help |
no-host |
2,387 |
1,161 |
3,281 |
3,390 |
2,868 |
1.37 |
1.20 |
| bin-true |
no-host |
102,477 |
49,423 |
134,989 |
133,297 |
112,716 |
1.32 |
1.10 |
| configure.cpython |
no-host |
1,624,630 |
1,647,137 |
1,574,216 |
1,597,304 |
1,521,750 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
298,931 |
280,833 |
306,858 |
307,925 |
300,275 |
1.03 |
1.00 |
| configure.tcc |
no-host |
5,216 |
4,226 |
5,577 |
5,631 |
5,137 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,546,719 |
1,702,717 |
1,499,416 |
1,518,911 |
1,455,573 |
0.97 |
0.94 |
| configure.yash |
no-host |
173,423 |
159,517 |
177,122 |
177,229 |
172,917 |
1.02 |
1.00 |
| hello-world |
no-host |
149 |
87 |
394 |
393 |
181 |
2.64 |
1.21 |
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.6 |
3,908 |
3,908 |
0 |
722 |
1,921 |
1,265 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
823 |
1 |
2 |
3.5 |
8.8 |
151,893 |
10,756 |
2,970 |
14,781 |
72,395 |
64,717 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,376 |
1 |
64 |
14.8 |
34.5 |
1,750,785 |
35,384 |
28,941 |
93,077 |
869,742 |
787,966 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,401 |
3 |
63 |
21.6 |
39.6 |
2,705,321 |
37,456 |
66,329 |
119,745 |
1,291,837 |
1,293,739 |
32,527 |
42 |
132,658 |
1 |
| configure.ocaml |
no-host |
3,685 |
1 |
2 |
2.8 |
28.8 |
149,693 |
12,648 |
6,563 |
9,213 |
70,295 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.4 |
26.0 |
30,542 |
30,542 |
0 |
1,680 |
14,472 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,693 |
1 |
2 |
2.7 |
33.4 |
143,456 |
11,462 |
6,618 |
7,165 |
70,517 |
65,774 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
9.4 |
117,224 |
65,790 |
42,000 |
4,975 |
54,597 |
57,652 |
277 |
3 |
84,000 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.8 |
3,907 |
3,907 |
0 |
721 |
1,921 |
1,265 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
804 |
1 |
2 |
3.5 |
9.2 |
151,893 |
10,760 |
2,974 |
14,781 |
72,395 |
64,717 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,475 |
1 |
65 |
14.8 |
34.4 |
1,750,784 |
35,389 |
28,946 |
93,076 |
869,742 |
787,966 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,476 |
3 |
63 |
21.6 |
39.7 |
2,705,321 |
37,462 |
66,335 |
119,745 |
1,291,837 |
1,293,739 |
32,527 |
42 |
132,670 |
1 |
| configure.ocaml |
no-host |
3,692 |
1 |
2 |
2.8 |
28.5 |
149,693 |
12,653 |
6,568 |
9,213 |
70,295 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.4 |
26.1 |
30,542 |
30,542 |
0 |
1,680 |
14,472 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,701 |
1 |
2 |
2.7 |
33.4 |
143,456 |
11,466 |
6,622 |
7,165 |
70,517 |
65,774 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
10.1 |
117,224 |
65,794 |
42,004 |
4,975 |
54,597 |
57,652 |
277 |
3 |
84,008 |
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 |
15 |
8 |
8 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
4 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
10 |
11 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
16 |
7 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
12 |
7 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
622 |
312 |
350 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
445 |
271 |
177 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
823 |
298 |
542 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
804 |
312 |
509 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
657 |
317 |
359 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,696 |
7,484 |
6,604 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,791 |
7,493 |
6,706 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
13,376 |
7,069 |
6,579 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,475 |
7,137 |
6,626 |
34.4 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,888 |
7,118 |
6,009 |
34.4 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,680 |
1,483 |
1,235 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,585 |
1,425 |
1,184 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,685 |
1,491 |
1,235 |
28.8 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,692 |
1,463 |
1,269 |
28.5 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,653 |
1,526 |
1,158 |
28.5 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
26 |
20 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
24 |
17 |
26.4 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
27 |
20 |
26.0 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
26 |
21 |
26.1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
23 |
21 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,463 |
6,474 |
6,462 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,192 |
6,465 |
7,221 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,401 |
6,187 |
6,441 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,476 |
6,179 |
6,522 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,032 |
6,112 |
6,137 |
39.5 |
osh-static |
| 6 |
no-host |
configure.yash |
1,694 |
949 |
754 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,626 |
898 |
730 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,693 |
951 |
745 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,701 |
945 |
760 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,664 |
932 |
735 |
33.2 |
osh-static |
| 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 |
3 |
1 |
2 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
6.8 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
1 |
0 |
3.4 |
osh-static |
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,387 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,161 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,281 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,390 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,868 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
osh-static |
| 1 |
no-host |
bin-true |
102,477 |
0 |
0 |
0 |
8 |
0 |
1,996 |
54 |
bash |
| 9 |
no-host |
bin-true |
49,423 |
0 |
0 |
0 |
8 |
0 |
2,991 |
65 |
dash |
| 17 |
no-host |
bin-true |
134,989 |
0 |
0 |
0 |
16 |
0 |
1,991 |
90 |
osh-native |
| 25 |
no-host |
bin-true |
133,297 |
0 |
0 |
0 |
16 |
0 |
1,992 |
59 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,716 |
0 |
0 |
0 |
8 |
0 |
2,000 |
71 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,624,630 |
1 |
0 |
0 |
25,272 |
0 |
14,085 |
1,013 |
bash |
| 10 |
no-host |
configure.cpython |
1,647,137 |
0 |
0 |
0 |
25,272 |
0 |
14,116 |
1,035 |
dash |
| 18 |
no-host |
configure.cpython |
1,574,216 |
0 |
0 |
0 |
25,280 |
0 |
11,300 |
889 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,597,304 |
0 |
0 |
0 |
25,280 |
0 |
11,302 |
812 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,521,750 |
0 |
0 |
0 |
25,272 |
0 |
11,296 |
847 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,931 |
0 |
0 |
0 |
4,432 |
0 |
2,023 |
195 |
bash |
| 12 |
no-host |
configure.ocaml |
280,833 |
0 |
0 |
0 |
4,432 |
0 |
2,111 |
200 |
dash |
| 20 |
no-host |
configure.ocaml |
306,858 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
190 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,925 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
209 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,275 |
0 |
0 |
0 |
4,432 |
0 |
2,001 |
210 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,216 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,226 |
0 |
0 |
0 |
88 |
0 |
51 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,577 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,631 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,137 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,546,719 |
0 |
0 |
232 |
35,944 |
0 |
18,982 |
1,151 |
bash |
| 11 |
no-host |
configure.util-linux |
1,702,717 |
3 |
0 |
0 |
35,936 |
0 |
17,116 |
1,225 |
dash |
| 19 |
no-host |
configure.util-linux |
1,499,416 |
1 |
0 |
0 |
35,952 |
0 |
16,137 |
910 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,518,911 |
1 |
0 |
0 |
35,952 |
0 |
16,193 |
888 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,455,573 |
1 |
0 |
0 |
35,936 |
0 |
16,208 |
907 |
osh-static |
| 6 |
no-host |
configure.yash |
173,423 |
0 |
0 |
0 |
3,616 |
0 |
877 |
90 |
bash |
| 14 |
no-host |
configure.yash |
159,517 |
0 |
0 |
0 |
3,616 |
0 |
1,002 |
105 |
dash |
| 22 |
no-host |
configure.yash |
177,122 |
0 |
0 |
0 |
3,624 |
0 |
857 |
93 |
osh-native |
| 30 |
no-host |
configure.yash |
177,229 |
0 |
0 |
0 |
3,624 |
0 |
857 |
102 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,917 |
0 |
0 |
0 |
3,616 |
0 |
853 |
97 |
osh-static |
| 0 |
no-host |
hello-world |
149 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
bash |
| 8 |
no-host |
hello-world |
87 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
394 |
0 |
0 |
0 |
16 |
0 |
2 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
393 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
181 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host