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 |
20 |
22 |
18 |
1.29 |
1.17 |
| bin-true |
no-host |
623 |
438 |
788 |
796 |
666 |
1.27 |
1.07 |
| configure.cpython |
no-host |
13,980 |
13,865 |
13,542 |
13,713 |
13,406 |
0.97 |
0.96 |
| configure.ocaml |
no-host |
3,669 |
3,623 |
3,729 |
3,737 |
3,759 |
1.02 |
1.02 |
| configure.tcc |
no-host |
46 |
42 |
47 |
48 |
44 |
1.03 |
0.95 |
| configure.util-linux |
no-host |
12,609 |
13,311 |
12,528 |
12,794 |
12,572 |
0.99 |
1.00 |
| configure.yash |
no-host |
1,702 |
1,641 |
1,712 |
1,748 |
1,701 |
1.01 |
1.00 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.31 |
1.06 |
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,393 |
1,158 |
3,338 |
3,384 |
2,847 |
1.39 |
1.19 |
| bin-true |
no-host |
101,396 |
49,326 |
130,984 |
132,338 |
111,727 |
1.29 |
1.10 |
| configure.cpython |
no-host |
1,617,809 |
1,634,402 |
1,586,469 |
1,609,262 |
1,524,867 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
299,295 |
280,669 |
305,256 |
307,798 |
300,292 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,201 |
4,231 |
5,591 |
5,669 |
5,131 |
1.07 |
0.99 |
| configure.util-linux |
no-host |
1,535,114 |
1,705,007 |
1,500,432 |
1,521,937 |
1,454,189 |
0.98 |
0.95 |
| configure.yash |
no-host |
173,213 |
159,519 |
176,820 |
176,927 |
172,920 |
1.02 |
1.00 |
| hello-world |
no-host |
152 |
86 |
392 |
396 |
182 |
2.58 |
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 |
788 |
1 |
2 |
3.5 |
8.7 |
151,892 |
10,755 |
2,969 |
14,781 |
72,395 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,542 |
1 |
66 |
14.8 |
34.5 |
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,528 |
3 |
66 |
21.6 |
39.5 |
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,729 |
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 |
47 |
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,712 |
1 |
2 |
2.7 |
33.3 |
143,454 |
11,460 |
6,616 |
7,166 |
70,508 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
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 |
796 |
1 |
2 |
3.5 |
9.0 |
151,892 |
10,759 |
2,973 |
14,781 |
72,395 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,713 |
1 |
67 |
14.8 |
34.7 |
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,794 |
3 |
65 |
21.6 |
39.5 |
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,737 |
1 |
2 |
2.8 |
28.6 |
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,748 |
1 |
2 |
2.7 |
33.4 |
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.0 |
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 |
8 |
8 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.8 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
9 |
11 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
15 |
7 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
13 |
6 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
623 |
315 |
344 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
438 |
270 |
171 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
788 |
327 |
476 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
796 |
311 |
501 |
9.0 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
666 |
328 |
356 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,980 |
7,618 |
6,742 |
34.6 |
bash |
| 10 |
no-host |
configure.cpython |
13,865 |
7,595 |
6,658 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
13,542 |
7,225 |
6,588 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,713 |
7,280 |
6,715 |
34.7 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,406 |
7,424 |
6,222 |
34.6 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,669 |
1,522 |
1,186 |
28.5 |
bash |
| 12 |
no-host |
configure.ocaml |
3,623 |
1,505 |
1,141 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,729 |
1,501 |
1,268 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,737 |
1,462 |
1,316 |
28.6 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,759 |
1,532 |
1,259 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
23 |
23 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
26 |
17 |
26.4 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
21 |
26 |
26.1 |
osh-native |
| 29 |
no-host |
configure.tcc |
48 |
19 |
29 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
19 |
25 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,609 |
6,675 |
6,401 |
39.5 |
bash |
| 11 |
no-host |
configure.util-linux |
13,311 |
6,583 |
7,216 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
12,528 |
6,219 |
6,530 |
39.5 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,794 |
6,391 |
6,614 |
39.5 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,572 |
6,445 |
6,349 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,702 |
980 |
729 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,641 |
931 |
712 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,712 |
978 |
736 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,748 |
962 |
788 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,701 |
954 |
750 |
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 |
3 |
1 |
1 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
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,393 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,158 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,338 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,384 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,847 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
101,396 |
0 |
0 |
0 |
8 |
0 |
2,000 |
67 |
bash |
| 9 |
no-host |
bin-true |
49,326 |
0 |
0 |
0 |
8 |
0 |
2,993 |
61 |
dash |
| 17 |
no-host |
bin-true |
130,984 |
0 |
0 |
0 |
16 |
0 |
2,001 |
87 |
osh-native |
| 25 |
no-host |
bin-true |
132,338 |
0 |
0 |
0 |
16 |
0 |
2,000 |
80 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,727 |
0 |
0 |
0 |
8 |
0 |
1,999 |
76 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,617,809 |
0 |
0 |
0 |
25,272 |
0 |
14,079 |
1,088 |
bash |
| 10 |
no-host |
configure.cpython |
1,634,402 |
0 |
0 |
0 |
25,272 |
0 |
14,134 |
1,003 |
dash |
| 18 |
no-host |
configure.cpython |
1,586,469 |
0 |
0 |
0 |
25,280 |
0 |
11,291 |
831 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,609,262 |
0 |
0 |
0 |
25,280 |
0 |
11,319 |
869 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,524,867 |
0 |
0 |
0 |
25,272 |
0 |
11,304 |
860 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,295 |
0 |
0 |
0 |
4,432 |
0 |
2,021 |
179 |
bash |
| 12 |
no-host |
configure.ocaml |
280,669 |
0 |
0 |
0 |
4,432 |
0 |
2,109 |
199 |
dash |
| 20 |
no-host |
configure.ocaml |
305,256 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
220 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,798 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
203 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,292 |
0 |
0 |
0 |
4,432 |
0 |
1,999 |
209 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,201 |
0 |
0 |
0 |
80 |
0 |
49 |
5 |
bash |
| 13 |
no-host |
configure.tcc |
4,231 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,591 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,669 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,131 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,535,114 |
0 |
0 |
232 |
35,944 |
0 |
18,967 |
927 |
bash |
| 11 |
no-host |
configure.util-linux |
1,705,007 |
1 |
0 |
0 |
35,936 |
0 |
17,123 |
1,215 |
dash |
| 19 |
no-host |
configure.util-linux |
1,500,432 |
2 |
0 |
0 |
35,952 |
0 |
16,145 |
954 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,521,937 |
1 |
0 |
0 |
35,944 |
0 |
16,215 |
1,140 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,454,189 |
4 |
0 |
0 |
35,936 |
0 |
16,122 |
921 |
osh-static |
| 6 |
no-host |
configure.yash |
173,213 |
0 |
0 |
0 |
3,616 |
0 |
882 |
104 |
bash |
| 14 |
no-host |
configure.yash |
159,519 |
0 |
0 |
0 |
3,624 |
0 |
1,002 |
102 |
dash |
| 22 |
no-host |
configure.yash |
176,820 |
0 |
0 |
0 |
3,624 |
0 |
857 |
99 |
osh-native |
| 30 |
no-host |
configure.yash |
176,927 |
0 |
0 |
0 |
3,624 |
0 |
858 |
91 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,920 |
0 |
0 |
0 |
3,624 |
0 |
857 |
100 |
osh-static |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
86 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
392 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
396 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
182 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host