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 |
14 |
8 |
20 |
21 |
16 |
1.38 |
1.11 |
| bin-true |
no-host |
487 |
333 |
658 |
692 |
554 |
1.35 |
1.14 |
| configure.cpython |
no-host |
13,042 |
12,839 |
13,142 |
13,068 |
12,282 |
1.01 |
0.94 |
| configure.ocaml |
no-host |
3,722 |
3,484 |
3,702 |
3,751 |
3,553 |
0.99 |
0.95 |
| configure.tcc |
no-host |
44 |
37 |
43 |
46 |
41 |
0.98 |
0.92 |
| configure.util-linux |
no-host |
11,494 |
11,890 |
12,441 |
12,277 |
11,509 |
1.08 |
1.00 |
| configure.yash |
no-host |
1,570 |
1,563 |
1,698 |
1,627 |
1,623 |
1.08 |
1.03 |
| hello-world |
no-host |
1 |
1 |
2 |
3 |
1 |
2.42 |
1.21 |
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,394 |
1,192 |
3,336 |
3,427 |
2,841 |
1.39 |
1.19 |
| bin-true |
no-host |
101,866 |
49,826 |
136,340 |
132,744 |
112,163 |
1.34 |
1.10 |
| configure.cpython |
no-host |
1,623,320 |
1,650,594 |
1,593,882 |
1,610,441 |
1,520,120 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
300,186 |
281,716 |
306,622 |
308,077 |
300,759 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,249 |
4,225 |
5,663 |
5,726 |
5,144 |
1.08 |
0.98 |
| configure.util-linux |
no-host |
1,549,321 |
1,702,769 |
1,530,125 |
1,525,858 |
1,459,037 |
0.99 |
0.94 |
| configure.yash |
no-host |
173,938 |
159,873 |
176,716 |
177,534 |
173,114 |
1.02 |
1.00 |
| hello-world |
no-host |
154 |
86 |
393 |
402 |
184 |
2.55 |
1.19 |
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 |
2 |
0 |
0 |
0.3 |
6.6 |
3,915 |
3,915 |
0 |
723 |
1,921 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
658 |
1 |
2 |
3.5 |
8.9 |
151,900 |
10,763 |
2,977 |
14,782 |
72,395 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,142 |
2 |
69 |
14.8 |
34.5 |
1,750,827 |
35,398 |
28,953 |
93,078 |
869,762 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,441 |
5 |
81 |
21.6 |
40.0 |
2,705,393 |
37,470 |
66,341 |
119,746 |
1,291,872 |
1,293,775 |
32,527 |
42 |
132,682 |
1 |
| configure.ocaml |
no-host |
3,702 |
1 |
2 |
2.8 |
28.8 |
149,700 |
12,655 |
6,570 |
9,214 |
70,295 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
43 |
0 |
0 |
1.4 |
26.4 |
30,551 |
30,551 |
0 |
1,681 |
14,473 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,698 |
1 |
2 |
2.7 |
33.1 |
143,476 |
11,507 |
6,624 |
7,168 |
70,525 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
1 |
2 |
3.0 |
9.7 |
117,234 |
65,800 |
42,007 |
4,977 |
54,599 |
57,658 |
277 |
3 |
84,014 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
7.1 |
3,914 |
3,914 |
0 |
722 |
1,921 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
692 |
1 |
2 |
3.5 |
9.2 |
151,900 |
10,767 |
2,981 |
14,782 |
72,395 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,068 |
2 |
71 |
14.8 |
34.6 |
1,750,826 |
36,457 |
28,958 |
93,077 |
869,762 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,277 |
4 |
77 |
21.6 |
39.6 |
2,705,393 |
37,476 |
66,347 |
119,746 |
1,291,872 |
1,293,775 |
32,527 |
42 |
132,694 |
1 |
| configure.ocaml |
no-host |
3,751 |
1 |
2 |
2.8 |
28.8 |
149,700 |
12,660 |
6,575 |
9,214 |
70,295 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
0 |
0 |
1.4 |
26.3 |
30,551 |
30,551 |
0 |
1,681 |
14,473 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,627 |
1 |
2 |
2.7 |
33.4 |
143,476 |
11,511 |
6,628 |
7,168 |
70,525 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
10.0 |
117,234 |
65,804 |
42,011 |
4,977 |
54,599 |
57,658 |
277 |
3 |
84,022 |
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 |
14 |
9 |
6 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
8 |
5 |
3 |
3.8 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
12 |
9 |
9.7 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
12 |
10 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
16 |
8 |
8 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
487 |
291 |
230 |
3.0 |
bash |
| 9 |
no-host |
bin-true |
333 |
235 |
94 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
658 |
317 |
353 |
8.9 |
osh-native |
| 25 |
no-host |
bin-true |
692 |
326 |
382 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
554 |
308 |
260 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,042 |
8,041 |
5,318 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
12,839 |
8,055 |
5,122 |
34.3 |
dash |
| 18 |
no-host |
configure.cpython |
13,142 |
7,738 |
5,614 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,068 |
7,663 |
5,627 |
34.6 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,282 |
7,573 |
4,881 |
34.4 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,722 |
1,640 |
1,105 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,484 |
1,541 |
948 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,702 |
1,621 |
1,098 |
28.8 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,751 |
1,579 |
1,193 |
28.8 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,553 |
1,566 |
997 |
28.8 |
osh-static |
| 5 |
no-host |
configure.tcc |
44 |
27 |
18 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
37 |
20 |
17 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
43 |
24 |
19 |
26.4 |
osh-native |
| 29 |
no-host |
configure.tcc |
46 |
21 |
26 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
41 |
26 |
14 |
26.4 |
osh-static |
| 3 |
no-host |
configure.util-linux |
11,494 |
6,937 |
4,938 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
11,890 |
6,822 |
5,464 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,441 |
6,824 |
5,783 |
40.0 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,277 |
6,878 |
5,563 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
11,509 |
6,736 |
4,923 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,570 |
997 |
575 |
33.1 |
bash |
| 14 |
no-host |
configure.yash |
1,563 |
976 |
580 |
33.1 |
dash |
| 22 |
no-host |
configure.yash |
1,698 |
992 |
700 |
33.1 |
osh-native |
| 30 |
no-host |
configure.yash |
1,627 |
1,006 |
615 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,623 |
996 |
619 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
2 |
0 |
2 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
7.1 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
1 |
0 |
3.3 |
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,394 |
0 |
0 |
0 |
8 |
0 |
41 |
2 |
bash |
| 15 |
no-host |
abuild-print-help |
1,192 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,336 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,427 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,841 |
0 |
0 |
0 |
8 |
0 |
39 |
2 |
osh-static |
| 1 |
no-host |
bin-true |
101,866 |
0 |
0 |
0 |
8 |
0 |
1,999 |
53 |
bash |
| 9 |
no-host |
bin-true |
49,826 |
0 |
0 |
0 |
8 |
0 |
3,000 |
61 |
dash |
| 17 |
no-host |
bin-true |
136,340 |
0 |
0 |
0 |
16 |
0 |
1,998 |
84 |
osh-native |
| 25 |
no-host |
bin-true |
132,744 |
0 |
0 |
0 |
16 |
0 |
1,999 |
60 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,163 |
0 |
0 |
0 |
8 |
0 |
1,998 |
63 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,623,320 |
0 |
0 |
0 |
25,272 |
0 |
14,042 |
1,007 |
bash |
| 10 |
no-host |
configure.cpython |
1,650,594 |
0 |
0 |
0 |
25,280 |
0 |
14,048 |
1,003 |
dash |
| 18 |
no-host |
configure.cpython |
1,593,882 |
0 |
0 |
0 |
25,288 |
0 |
11,278 |
974 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,610,441 |
0 |
0 |
0 |
25,280 |
0 |
11,310 |
829 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,520,120 |
0 |
0 |
0 |
25,272 |
0 |
11,314 |
786 |
osh-static |
| 4 |
no-host |
configure.ocaml |
300,186 |
0 |
0 |
0 |
4,432 |
0 |
2,022 |
185 |
bash |
| 12 |
no-host |
configure.ocaml |
281,716 |
0 |
0 |
0 |
4,432 |
0 |
2,112 |
185 |
dash |
| 20 |
no-host |
configure.ocaml |
306,622 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
211 |
osh-native |
| 28 |
no-host |
configure.ocaml |
308,077 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
206 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,759 |
0 |
0 |
0 |
4,432 |
0 |
2,001 |
199 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,249 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,225 |
0 |
0 |
0 |
88 |
0 |
52 |
0 |
dash |
| 21 |
no-host |
configure.tcc |
5,663 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,726 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,144 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,549,321 |
0 |
0 |
0 |
35,944 |
0 |
18,878 |
1,019 |
bash |
| 11 |
no-host |
configure.util-linux |
1,702,769 |
0 |
0 |
336 |
35,936 |
0 |
16,912 |
1,136 |
dash |
| 19 |
no-host |
configure.util-linux |
1,530,125 |
2 |
0 |
0 |
35,952 |
0 |
16,214 |
904 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,525,858 |
2 |
0 |
0 |
35,944 |
0 |
16,217 |
843 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,459,037 |
4 |
0 |
0 |
35,936 |
0 |
16,168 |
914 |
osh-static |
| 6 |
no-host |
configure.yash |
173,938 |
0 |
0 |
0 |
3,616 |
0 |
879 |
85 |
bash |
| 14 |
no-host |
configure.yash |
159,873 |
0 |
0 |
0 |
3,616 |
0 |
1,002 |
95 |
dash |
| 22 |
no-host |
configure.yash |
176,716 |
0 |
0 |
0 |
3,624 |
0 |
857 |
94 |
osh-native |
| 30 |
no-host |
configure.yash |
177,534 |
0 |
0 |
0 |
3,632 |
0 |
858 |
102 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,114 |
0 |
0 |
0 |
3,624 |
0 |
857 |
97 |
osh-static |
| 0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
86 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
dash |
| 16 |
no-host |
hello-world |
393 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
| 24 |
no-host |
hello-world |
402 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
184 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host