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 |
13 |
7 |
17 |
18 |
16 |
1.38 |
1.28 |
| bin-true |
no-host |
434 |
298 |
584 |
603 |
478 |
1.34 |
1.10 |
| configure.cpython |
no-host |
11,383 |
11,260 |
11,236 |
11,064 |
10,706 |
0.99 |
0.94 |
| configure.ocaml |
no-host |
3,202 |
3,160 |
3,267 |
3,227 |
3,203 |
1.02 |
1.00 |
| configure.tcc |
no-host |
38 |
34 |
38 |
38 |
36 |
1.00 |
0.94 |
| configure.util-linux |
no-host |
10,010 |
10,479 |
10,198 |
10,122 |
9,796 |
1.02 |
0.98 |
| configure.yash |
no-host |
1,394 |
1,340 |
1,409 |
1,400 |
1,376 |
1.01 |
0.99 |
| hello-world |
no-host |
1 |
0 |
2 |
2 |
1 |
2.45 |
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,380 |
1,177 |
3,295 |
3,419 |
2,808 |
1.38 |
1.18 |
| bin-true |
no-host |
101,867 |
49,843 |
130,799 |
135,393 |
111,492 |
1.28 |
1.09 |
| configure.cpython |
no-host |
1,633,304 |
1,645,669 |
1,602,529 |
1,598,526 |
1,527,710 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
299,975 |
281,437 |
306,570 |
307,080 |
301,547 |
1.02 |
1.01 |
| configure.tcc |
no-host |
5,257 |
4,230 |
5,644 |
5,733 |
5,157 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,547,354 |
1,712,393 |
1,495,485 |
1,522,705 |
1,462,248 |
0.97 |
0.94 |
| configure.yash |
no-host |
173,913 |
159,911 |
176,947 |
177,538 |
173,402 |
1.02 |
1.00 |
| hello-world |
no-host |
153 |
84 |
393 |
397 |
182 |
2.57 |
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,896 |
3,896 |
0 |
716 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
584 |
1 |
2 |
3.5 |
8.8 |
151,881 |
10,750 |
2,964 |
14,775 |
72,390 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
11,236 |
1 |
59 |
14.8 |
34.5 |
1,750,743 |
35,378 |
28,935 |
93,071 |
869,707 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
10,198 |
3 |
62 |
21.6 |
39.7 |
2,705,279 |
37,450 |
66,323 |
119,739 |
1,291,802 |
1,293,738 |
32,527 |
42 |
132,646 |
1 |
| configure.ocaml |
no-host |
3,267 |
1 |
2 |
2.8 |
28.6 |
149,681 |
12,642 |
6,557 |
9,207 |
70,290 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
38 |
0 |
0 |
1.4 |
26.0 |
30,530 |
30,530 |
0 |
1,674 |
14,467 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,409 |
1 |
2 |
2.7 |
33.1 |
143,443 |
11,455 |
6,611 |
7,160 |
70,503 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
17 |
1 |
2 |
3.0 |
9.6 |
117,212 |
65,784 |
41,994 |
4,969 |
54,592 |
57,651 |
277 |
3 |
83,988 |
1 |
| hello-world |
no-host |
2 |
0 |
0 |
0.3 |
7.1 |
3,895 |
3,895 |
0 |
715 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
603 |
1 |
2 |
3.5 |
9.3 |
151,881 |
10,754 |
2,968 |
14,775 |
72,390 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
11,064 |
1 |
59 |
14.8 |
34.7 |
1,750,742 |
35,383 |
28,940 |
93,070 |
869,707 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
10,122 |
3 |
61 |
21.6 |
39.7 |
2,705,279 |
37,456 |
66,329 |
119,739 |
1,291,802 |
1,293,738 |
32,527 |
42 |
132,658 |
1 |
| configure.ocaml |
no-host |
3,227 |
1 |
2 |
2.8 |
28.8 |
149,681 |
12,647 |
6,562 |
9,207 |
70,290 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
38 |
0 |
0 |
1.4 |
26.4 |
30,530 |
30,530 |
0 |
1,674 |
14,467 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,400 |
1 |
2 |
2.7 |
33.1 |
143,443 |
11,459 |
6,615 |
7,160 |
70,503 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
18 |
1 |
2 |
3.0 |
10.0 |
117,212 |
65,788 |
41,998 |
4,969 |
54,592 |
57,651 |
277 |
3 |
83,996 |
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 |
13 |
9 |
4 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
7 |
4 |
3 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
17 |
9 |
8 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
18 |
12 |
7 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
16 |
14 |
2 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
434 |
269 |
194 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
298 |
220 |
80 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
584 |
308 |
290 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
603 |
330 |
283 |
9.3 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
478 |
294 |
195 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
11,383 |
7,500 |
4,170 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
11,260 |
7,390 |
4,169 |
34.3 |
dash |
| 18 |
no-host |
configure.cpython |
11,236 |
7,018 |
4,419 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
11,064 |
7,008 |
4,257 |
34.7 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
10,706 |
6,964 |
3,915 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,202 |
1,445 |
780 |
28.8 |
bash |
| 12 |
no-host |
configure.ocaml |
3,160 |
1,449 |
720 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
3,267 |
1,477 |
814 |
28.6 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,227 |
1,443 |
810 |
28.8 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,203 |
1,474 |
746 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
38 |
22 |
16 |
26.0 |
bash |
| 13 |
no-host |
configure.tcc |
34 |
23 |
11 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
38 |
20 |
18 |
26.0 |
osh-native |
| 29 |
no-host |
configure.tcc |
38 |
29 |
10 |
26.4 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
36 |
24 |
12 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
10,010 |
6,476 |
3,891 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
10,479 |
6,462 |
4,390 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
10,198 |
6,035 |
4,312 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
10,122 |
6,068 |
4,204 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
9,796 |
6,018 |
3,918 |
39.9 |
osh-static |
| 6 |
no-host |
configure.yash |
1,394 |
921 |
475 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,340 |
880 |
457 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,409 |
923 |
485 |
33.1 |
osh-native |
| 30 |
no-host |
configure.yash |
1,400 |
931 |
468 |
33.1 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,376 |
903 |
472 |
33.3 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
0 |
0 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
2 |
1 |
1 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
2 |
1 |
1 |
7.1 |
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,380 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,177 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,295 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,419 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,808 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
101,867 |
0 |
0 |
0 |
8 |
0 |
1,998 |
53 |
bash |
| 9 |
no-host |
bin-true |
49,843 |
0 |
0 |
0 |
8 |
0 |
3,000 |
34 |
dash |
| 17 |
no-host |
bin-true |
130,799 |
0 |
0 |
0 |
16 |
0 |
1,997 |
55 |
osh-native |
| 25 |
no-host |
bin-true |
135,393 |
0 |
0 |
0 |
16 |
0 |
1,999 |
63 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,492 |
0 |
0 |
0 |
8 |
0 |
1,999 |
64 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,633,304 |
0 |
0 |
0 |
25,272 |
0 |
14,092 |
913 |
bash |
| 10 |
no-host |
configure.cpython |
1,645,669 |
0 |
0 |
0 |
25,272 |
0 |
14,097 |
924 |
dash |
| 18 |
no-host |
configure.cpython |
1,602,529 |
1 |
0 |
0 |
25,280 |
0 |
11,325 |
793 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,598,526 |
1 |
0 |
0 |
25,280 |
0 |
11,342 |
800 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,527,710 |
0 |
0 |
0 |
25,272 |
0 |
11,326 |
811 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,975 |
0 |
0 |
0 |
4,432 |
0 |
2,023 |
185 |
bash |
| 12 |
no-host |
configure.ocaml |
281,437 |
0 |
0 |
0 |
4,432 |
0 |
2,115 |
235 |
dash |
| 20 |
no-host |
configure.ocaml |
306,570 |
0 |
0 |
0 |
4,440 |
0 |
2,006 |
181 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,080 |
0 |
0 |
0 |
4,440 |
0 |
2,007 |
173 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
301,547 |
0 |
0 |
0 |
4,432 |
0 |
2,001 |
182 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,257 |
0 |
0 |
0 |
80 |
0 |
48 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,230 |
0 |
0 |
0 |
88 |
0 |
51 |
4 |
dash |
| 21 |
no-host |
configure.tcc |
5,644 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,733 |
0 |
0 |
0 |
96 |
0 |
45 |
5 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,157 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,547,354 |
1 |
0 |
232 |
35,944 |
0 |
18,861 |
967 |
bash |
| 11 |
no-host |
configure.util-linux |
1,712,393 |
0 |
0 |
0 |
35,936 |
0 |
16,992 |
1,096 |
dash |
| 19 |
no-host |
configure.util-linux |
1,495,485 |
2 |
0 |
0 |
35,960 |
0 |
16,169 |
838 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,522,705 |
1 |
0 |
0 |
35,944 |
0 |
16,226 |
872 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,462,248 |
2 |
0 |
0 |
35,936 |
0 |
16,191 |
845 |
osh-static |
| 6 |
no-host |
configure.yash |
173,913 |
0 |
0 |
0 |
3,616 |
0 |
878 |
97 |
bash |
| 14 |
no-host |
configure.yash |
159,911 |
0 |
0 |
0 |
3,616 |
0 |
1,002 |
86 |
dash |
| 22 |
no-host |
configure.yash |
176,947 |
0 |
0 |
0 |
3,624 |
0 |
857 |
92 |
osh-native |
| 30 |
no-host |
configure.yash |
177,538 |
0 |
0 |
0 |
3,624 |
0 |
862 |
89 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,402 |
0 |
0 |
0 |
3,616 |
0 |
857 |
89 |
osh-static |
| 0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
bash |
| 8 |
no-host |
hello-world |
84 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
393 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
| 24 |
no-host |
hello-world |
397 |
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