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 |
21 |
19 |
1.32 |
1.14 |
| bin-true |
no-host |
634 |
452 |
829 |
820 |
659 |
1.31 |
1.04 |
| configure.cpython |
no-host |
14,195 |
14,389 |
13,713 |
13,647 |
13,304 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
3,725 |
3,719 |
3,719 |
3,749 |
3,694 |
1.00 |
0.99 |
| configure.tcc |
no-host |
48 |
43 |
47 |
49 |
44 |
0.98 |
0.92 |
| configure.util-linux |
no-host |
12,668 |
13,754 |
12,668 |
12,701 |
12,296 |
1.00 |
0.97 |
| configure.yash |
no-host |
1,744 |
1,690 |
1,720 |
1,700 |
1,692 |
0.99 |
0.97 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.26 |
0.94 |
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,383 |
1,167 |
3,346 |
3,383 |
2,803 |
1.40 |
1.18 |
| bin-true |
no-host |
103,435 |
49,424 |
131,562 |
136,853 |
110,997 |
1.27 |
1.07 |
| configure.cpython |
no-host |
1,619,937 |
1,645,497 |
1,585,563 |
1,608,774 |
1,523,296 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
298,875 |
280,739 |
304,989 |
307,341 |
300,128 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,223 |
4,216 |
5,611 |
5,715 |
5,144 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,542,362 |
1,694,534 |
1,500,228 |
1,505,686 |
1,455,803 |
0.97 |
0.94 |
| configure.yash |
no-host |
173,318 |
159,560 |
176,461 |
177,459 |
173,096 |
1.02 |
1.00 |
| hello-world |
no-host |
152 |
85 |
390 |
394 |
181 |
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 |
3 |
0 |
0 |
0.3 |
6.4 |
3,896 |
3,896 |
0 |
716 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
829 |
1 |
2 |
3.5 |
8.5 |
152,882 |
11,691 |
2,964 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,713 |
1 |
67 |
14.8 |
34.5 |
1,753,364 |
36,445 |
28,935 |
93,071 |
872,316 |
787,977 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,668 |
3 |
68 |
21.6 |
39.7 |
2,709,910 |
37,457 |
66,323 |
119,739 |
1,296,433 |
1,293,738 |
32,527 |
42 |
132,646 |
1 |
| configure.ocaml |
no-host |
3,719 |
1 |
2 |
2.8 |
28.6 |
149,932 |
12,652 |
6,557 |
9,207 |
70,540 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.4 |
26.1 |
30,574 |
30,574 |
0 |
1,674 |
14,510 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,720 |
1 |
2 |
2.7 |
33.3 |
143,736 |
11,764 |
6,618 |
7,160 |
70,796 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
9.6 |
117,251 |
65,784 |
41,994 |
4,969 |
54,631 |
57,651 |
277 |
3 |
83,988 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.8 |
3,895 |
3,895 |
0 |
715 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
820 |
1 |
2 |
3.5 |
9.3 |
152,882 |
11,695 |
2,968 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,647 |
1 |
68 |
14.9 |
34.4 |
1,753,363 |
36,450 |
28,940 |
93,070 |
872,316 |
787,977 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,701 |
3 |
68 |
21.6 |
39.7 |
2,709,910 |
37,463 |
66,329 |
119,739 |
1,296,433 |
1,293,738 |
32,527 |
42 |
132,658 |
1 |
| configure.ocaml |
no-host |
3,749 |
1 |
2 |
2.8 |
28.6 |
149,932 |
12,657 |
6,562 |
9,207 |
70,540 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.4 |
26.3 |
30,574 |
30,574 |
0 |
1,674 |
14,510 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,700 |
1 |
2 |
2.7 |
33.4 |
143,736 |
11,768 |
6,622 |
7,160 |
70,796 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
10.0 |
117,251 |
65,788 |
41,998 |
4,969 |
54,631 |
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 |
16 |
9 |
8 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
6 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
18 |
5 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
8 |
14 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
10 |
9 |
6.6 |
osh-static |
| 1 |
no-host |
bin-true |
634 |
313 |
359 |
3.4 |
bash |
| 9 |
no-host |
bin-true |
452 |
285 |
174 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
829 |
299 |
547 |
8.5 |
osh-native |
| 25 |
no-host |
bin-true |
820 |
309 |
527 |
9.3 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
659 |
319 |
357 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,195 |
7,677 |
6,916 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
14,389 |
7,892 |
6,919 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,713 |
7,342 |
6,647 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,647 |
7,223 |
6,715 |
34.4 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,304 |
7,256 |
6,295 |
34.4 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,725 |
1,486 |
1,280 |
28.5 |
bash |
| 12 |
no-host |
configure.ocaml |
3,719 |
1,501 |
1,243 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,719 |
1,490 |
1,269 |
28.6 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,749 |
1,504 |
1,287 |
28.6 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,694 |
1,491 |
1,235 |
28.6 |
osh-static |
| 5 |
no-host |
configure.tcc |
48 |
26 |
23 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
43 |
27 |
16 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
21 |
26 |
26.1 |
osh-native |
| 29 |
no-host |
configure.tcc |
49 |
23 |
26 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
27 |
18 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,668 |
6,580 |
6,559 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,754 |
6,683 |
7,581 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,668 |
6,289 |
6,609 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,701 |
6,295 |
6,644 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,296 |
6,228 |
6,289 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,744 |
1,012 |
739 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,690 |
983 |
709 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,720 |
990 |
732 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,700 |
952 |
750 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,692 |
965 |
730 |
33.3 |
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.4 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
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,383 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,167 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,346 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,383 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,803 |
0 |
0 |
0 |
8 |
0 |
38 |
1 |
osh-static |
| 1 |
no-host |
bin-true |
103,435 |
0 |
0 |
0 |
8 |
0 |
1,998 |
62 |
bash |
| 9 |
no-host |
bin-true |
49,424 |
0 |
0 |
0 |
8 |
0 |
2,991 |
62 |
dash |
| 17 |
no-host |
bin-true |
131,562 |
0 |
0 |
0 |
16 |
0 |
1,996 |
91 |
osh-native |
| 25 |
no-host |
bin-true |
136,853 |
0 |
0 |
0 |
16 |
0 |
1,997 |
77 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
110,997 |
0 |
0 |
0 |
8 |
0 |
2,000 |
69 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,619,937 |
0 |
0 |
0 |
25,272 |
0 |
14,064 |
1,084 |
bash |
| 10 |
no-host |
configure.cpython |
1,645,497 |
0 |
0 |
0 |
25,272 |
0 |
14,123 |
1,020 |
dash |
| 18 |
no-host |
configure.cpython |
1,585,563 |
0 |
0 |
0 |
25,280 |
0 |
11,298 |
821 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,608,774 |
0 |
0 |
0 |
25,280 |
0 |
11,312 |
823 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,523,296 |
0 |
0 |
0 |
25,272 |
0 |
11,307 |
826 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,875 |
0 |
0 |
0 |
4,432 |
0 |
2,020 |
200 |
bash |
| 12 |
no-host |
configure.ocaml |
280,739 |
0 |
0 |
0 |
4,432 |
0 |
2,100 |
205 |
dash |
| 20 |
no-host |
configure.ocaml |
304,989 |
0 |
0 |
8 |
4,440 |
0 |
2,002 |
211 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,341 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
212 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,128 |
0 |
0 |
0 |
4,432 |
0 |
1,998 |
215 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,223 |
0 |
0 |
0 |
80 |
0 |
49 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,216 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,611 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,715 |
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,542,362 |
0 |
0 |
0 |
35,944 |
0 |
18,968 |
1,033 |
bash |
| 11 |
no-host |
configure.util-linux |
1,694,534 |
2 |
0 |
0 |
35,936 |
0 |
17,113 |
1,270 |
dash |
| 19 |
no-host |
configure.util-linux |
1,500,228 |
1 |
0 |
0 |
35,952 |
0 |
16,149 |
939 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,505,686 |
0 |
0 |
0 |
35,944 |
0 |
16,209 |
867 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,455,803 |
1 |
0 |
0 |
35,944 |
0 |
16,199 |
951 |
osh-static |
| 6 |
no-host |
configure.yash |
173,318 |
0 |
0 |
0 |
3,616 |
0 |
876 |
104 |
bash |
| 14 |
no-host |
configure.yash |
159,560 |
0 |
0 |
0 |
3,616 |
0 |
998 |
103 |
dash |
| 22 |
no-host |
configure.yash |
176,461 |
0 |
0 |
0 |
3,624 |
0 |
858 |
91 |
osh-native |
| 30 |
no-host |
configure.yash |
177,459 |
0 |
0 |
0 |
3,624 |
0 |
857 |
107 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,096 |
0 |
0 |
0 |
3,624 |
0 |
856 |
108 |
osh-static |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
bash |
| 8 |
no-host |
hello-world |
85 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
390 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
394 |
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