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 |
16 |
9 |
21 |
22 |
19 |
1.28 |
1.16 |
| bin-true |
no-host |
616 |
448 |
803 |
806 |
669 |
1.30 |
1.09 |
| configure.cpython |
no-host |
13,997 |
14,155 |
13,699 |
13,664 |
13,166 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,736 |
3,620 |
3,769 |
3,790 |
3,735 |
1.01 |
1.00 |
| configure.tcc |
no-host |
49 |
42 |
50 |
48 |
45 |
1.03 |
0.92 |
| configure.util-linux |
no-host |
12,737 |
13,512 |
12,662 |
12,614 |
12,381 |
0.99 |
0.97 |
| configure.yash |
no-host |
1,740 |
1,691 |
1,766 |
1,727 |
1,722 |
1.01 |
0.99 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.49 |
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,388 |
1,170 |
3,303 |
3,423 |
2,860 |
1.38 |
1.20 |
| bin-true |
no-host |
99,486 |
49,444 |
130,003 |
132,347 |
111,676 |
1.31 |
1.12 |
| configure.cpython |
no-host |
1,626,328 |
1,638,707 |
1,594,670 |
1,603,479 |
1,525,616 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
299,190 |
280,707 |
306,664 |
307,100 |
300,152 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,223 |
4,207 |
5,565 |
5,651 |
5,136 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,540,789 |
1,703,539 |
1,494,771 |
1,512,899 |
1,452,004 |
0.97 |
0.94 |
| configure.yash |
no-host |
173,242 |
159,519 |
176,929 |
177,210 |
172,989 |
1.02 |
1.00 |
| hello-world |
no-host |
151 |
88 |
394 |
399 |
181 |
2.61 |
1.20 |
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,907 |
3,907 |
0 |
722 |
1,921 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
803 |
1 |
2 |
3.5 |
8.5 |
151,892 |
10,755 |
2,969 |
14,781 |
72,395 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,699 |
2 |
69 |
14.8 |
34.6 |
1,750,754 |
35,383 |
28,940 |
93,077 |
869,712 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,662 |
3 |
67 |
21.6 |
39.6 |
2,705,290 |
37,455 |
66,328 |
119,745 |
1,291,807 |
1,293,738 |
32,527 |
42 |
132,656 |
1 |
| configure.ocaml |
no-host |
3,769 |
1 |
2 |
2.8 |
28.7 |
149,692 |
12,647 |
6,562 |
9,213 |
70,295 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
50 |
0 |
0 |
1.4 |
26.1 |
30,541 |
30,541 |
0 |
1,680 |
14,472 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,766 |
1 |
2 |
2.7 |
33.1 |
143,454 |
11,460 |
6,616 |
7,166 |
70,508 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
9.6 |
117,223 |
65,789 |
41,999 |
4,975 |
54,597 |
57,651 |
277 |
3 |
83,998 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.9 |
3,906 |
3,906 |
0 |
721 |
1,921 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
806 |
1 |
2 |
3.5 |
8.9 |
151,892 |
10,759 |
2,973 |
14,781 |
72,395 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,664 |
1 |
70 |
14.8 |
34.3 |
1,750,753 |
35,388 |
28,945 |
93,076 |
869,712 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,614 |
3 |
68 |
21.6 |
39.6 |
2,705,290 |
37,461 |
66,334 |
119,745 |
1,291,807 |
1,293,738 |
32,527 |
42 |
132,668 |
1 |
| configure.ocaml |
no-host |
3,790 |
1 |
2 |
2.8 |
28.7 |
149,692 |
12,652 |
6,567 |
9,213 |
70,295 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.4 |
26.2 |
30,541 |
30,541 |
0 |
1,680 |
14,472 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,727 |
1 |
2 |
2.7 |
33.3 |
143,454 |
11,464 |
6,620 |
7,166 |
70,508 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
10.1 |
117,223 |
65,793 |
42,003 |
4,975 |
54,597 |
57,651 |
277 |
3 |
84,006 |
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 |
10 |
6 |
4.6 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
6 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
10 |
11 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
11 |
12 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
10 |
10 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
616 |
311 |
343 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
448 |
283 |
172 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
803 |
307 |
514 |
8.5 |
osh-native |
| 25 |
no-host |
bin-true |
806 |
304 |
521 |
8.9 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
669 |
332 |
354 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,997 |
7,688 |
6,702 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,155 |
7,714 |
6,854 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,699 |
7,228 |
6,744 |
34.6 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,664 |
7,196 |
6,765 |
34.3 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,166 |
7,287 |
6,124 |
34.6 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,736 |
1,536 |
1,239 |
28.5 |
bash |
| 12 |
no-host |
configure.ocaml |
3,620 |
1,464 |
1,179 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,769 |
1,496 |
1,314 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,790 |
1,523 |
1,307 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,735 |
1,530 |
1,237 |
28.6 |
osh-static |
| 5 |
no-host |
configure.tcc |
49 |
25 |
24 |
26.4 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
23 |
19 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
50 |
27 |
23 |
26.1 |
osh-native |
| 29 |
no-host |
configure.tcc |
48 |
23 |
25 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
45 |
21 |
24 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,737 |
6,627 |
6,586 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,512 |
6,573 |
7,430 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,662 |
6,214 |
6,678 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,614 |
6,226 |
6,605 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,381 |
6,299 |
6,304 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,740 |
989 |
760 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,691 |
953 |
739 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,766 |
1,001 |
768 |
33.1 |
osh-native |
| 30 |
no-host |
configure.yash |
1,727 |
946 |
785 |
33.3 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,722 |
1,003 |
722 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
2 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
3 |
0 |
6.9 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
0 |
1 |
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,388 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,170 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,303 |
0 |
0 |
0 |
16 |
0 |
38 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,423 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,860 |
0 |
0 |
0 |
8 |
0 |
38 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
99,486 |
0 |
0 |
0 |
8 |
0 |
1,999 |
55 |
bash |
| 9 |
no-host |
bin-true |
49,444 |
0 |
0 |
0 |
8 |
0 |
2,998 |
56 |
dash |
| 17 |
no-host |
bin-true |
130,003 |
0 |
0 |
0 |
16 |
0 |
1,995 |
72 |
osh-native |
| 25 |
no-host |
bin-true |
132,347 |
0 |
0 |
0 |
16 |
0 |
1,997 |
86 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,676 |
0 |
0 |
0 |
8 |
0 |
1,997 |
80 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,626,328 |
0 |
0 |
0 |
25,272 |
0 |
14,113 |
1,088 |
bash |
| 10 |
no-host |
configure.cpython |
1,638,707 |
0 |
0 |
0 |
25,272 |
0 |
14,119 |
1,063 |
dash |
| 18 |
no-host |
configure.cpython |
1,594,670 |
0 |
0 |
0 |
25,280 |
0 |
11,292 |
935 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,603,479 |
0 |
0 |
0 |
25,280 |
0 |
11,306 |
897 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,525,616 |
1 |
0 |
0 |
25,272 |
0 |
11,313 |
822 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,190 |
0 |
0 |
0 |
4,432 |
0 |
2,018 |
199 |
bash |
| 12 |
no-host |
configure.ocaml |
280,707 |
0 |
0 |
0 |
4,432 |
0 |
2,109 |
202 |
dash |
| 20 |
no-host |
configure.ocaml |
306,664 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
211 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,100 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
353 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,152 |
0 |
0 |
0 |
4,432 |
0 |
2,002 |
244 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,223 |
0 |
0 |
0 |
80 |
0 |
49 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,207 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,565 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,651 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,136 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,540,789 |
0 |
0 |
232 |
35,944 |
0 |
18,960 |
1,082 |
bash |
| 11 |
no-host |
configure.util-linux |
1,703,539 |
1 |
0 |
0 |
35,936 |
0 |
17,098 |
1,233 |
dash |
| 19 |
no-host |
configure.util-linux |
1,494,771 |
0 |
0 |
0 |
35,952 |
0 |
16,265 |
923 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,512,899 |
5 |
0 |
0 |
35,944 |
0 |
16,238 |
961 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,452,004 |
2 |
0 |
0 |
35,936 |
0 |
16,121 |
923 |
osh-static |
| 6 |
no-host |
configure.yash |
173,242 |
0 |
0 |
0 |
3,616 |
0 |
881 |
97 |
bash |
| 14 |
no-host |
configure.yash |
159,519 |
0 |
0 |
0 |
3,616 |
0 |
998 |
105 |
dash |
| 22 |
no-host |
configure.yash |
176,929 |
0 |
0 |
0 |
3,632 |
0 |
859 |
114 |
osh-native |
| 30 |
no-host |
configure.yash |
177,210 |
0 |
0 |
0 |
3,624 |
0 |
858 |
90 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,989 |
0 |
0 |
0 |
3,616 |
0 |
857 |
107 |
osh-static |
| 0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
88 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
394 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
399 |
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