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 |
18 |
19 |
16 |
1.37 |
1.22 |
| bin-true |
no-host |
452 |
308 |
598 |
617 |
480 |
1.32 |
1.06 |
| configure.cpython |
no-host |
12,178 |
12,228 |
11,623 |
11,890 |
11,335 |
0.95 |
0.93 |
| configure.ocaml |
no-host |
3,398 |
3,318 |
3,391 |
3,387 |
3,317 |
1.00 |
0.98 |
| configure.tcc |
no-host |
40 |
35 |
39 |
40 |
37 |
0.97 |
0.92 |
| configure.util-linux |
no-host |
10,836 |
11,458 |
10,740 |
10,892 |
10,410 |
0.99 |
0.96 |
| configure.yash |
no-host |
1,559 |
1,405 |
1,474 |
1,484 |
1,436 |
0.95 |
0.92 |
| hello-world |
no-host |
1 |
1 |
2 |
2 |
1 |
1.99 |
0.92 |
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,412 |
1,177 |
3,373 |
3,488 |
2,807 |
1.40 |
1.16 |
| bin-true |
no-host |
102,905 |
49,909 |
133,961 |
135,025 |
111,784 |
1.30 |
1.09 |
| configure.cpython |
no-host |
1,630,943 |
1,647,608 |
1,587,476 |
1,614,837 |
1,526,640 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
300,533 |
281,485 |
307,479 |
308,486 |
300,513 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,269 |
4,228 |
5,621 |
5,722 |
5,126 |
1.07 |
0.97 |
| configure.util-linux |
no-host |
1,541,639 |
1,704,275 |
1,500,297 |
1,517,441 |
1,455,050 |
0.97 |
0.94 |
| configure.yash |
no-host |
173,594 |
159,923 |
176,998 |
177,589 |
173,004 |
1.02 |
1.00 |
| hello-world |
no-host |
154 |
86 |
391 |
400 |
181 |
2.54 |
1.18 |
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 |
598 |
1 |
2 |
3.5 |
8.7 |
152,882 |
11,691 |
2,964 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
11,623 |
1 |
61 |
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 |
10,740 |
3 |
64 |
21.6 |
39.4 |
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,391 |
1 |
2 |
2.8 |
28.8 |
149,932 |
12,652 |
6,557 |
9,207 |
70,540 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
39 |
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,474 |
1 |
2 |
2.7 |
33.4 |
143,754 |
11,764 |
6,618 |
7,160 |
70,813 |
65,781 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
18 |
1 |
2 |
3.0 |
9.6 |
117,252 |
65,784 |
41,994 |
4,969 |
54,632 |
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 |
617 |
1 |
2 |
3.5 |
9.0 |
152,882 |
11,695 |
2,968 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
11,890 |
1 |
63 |
14.9 |
34.6 |
1,753,363 |
36,450 |
28,940 |
93,070 |
872,316 |
787,977 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
10,892 |
3 |
65 |
21.6 |
39.9 |
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,387 |
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 |
40 |
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,484 |
1 |
2 |
2.7 |
33.4 |
143,754 |
11,768 |
6,622 |
7,160 |
70,813 |
65,781 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
19 |
1 |
2 |
3.0 |
10.0 |
117,252 |
65,788 |
41,998 |
4,969 |
54,632 |
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 |
5 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
7 |
6 |
1 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
18 |
10 |
9 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
19 |
10 |
9 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
16 |
10 |
7 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
452 |
274 |
211 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
308 |
224 |
84 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
598 |
314 |
297 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
617 |
323 |
309 |
9.0 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
480 |
304 |
191 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
12,178 |
7,734 |
4,769 |
34.6 |
bash |
| 10 |
no-host |
configure.cpython |
12,228 |
7,753 |
4,815 |
34.8 |
dash |
| 18 |
no-host |
configure.cpython |
11,623 |
7,200 |
4,626 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
11,890 |
7,247 |
4,859 |
34.6 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
11,335 |
7,268 |
4,246 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,398 |
1,496 |
924 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,318 |
1,506 |
818 |
28.8 |
dash |
| 20 |
no-host |
configure.ocaml |
3,391 |
1,507 |
905 |
28.8 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,387 |
1,512 |
898 |
28.6 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,317 |
1,493 |
838 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
40 |
25 |
15 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
35 |
21 |
14 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
39 |
21 |
18 |
26.1 |
osh-native |
| 29 |
no-host |
configure.tcc |
40 |
26 |
15 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
37 |
25 |
12 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
10,836 |
6,770 |
4,454 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
11,458 |
6,707 |
5,168 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
10,740 |
6,239 |
4,651 |
39.4 |
osh-native |
| 27 |
no-host |
configure.util-linux |
10,892 |
6,311 |
4,740 |
39.9 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
10,410 |
6,306 |
4,251 |
39.9 |
osh-static |
| 6 |
no-host |
configure.yash |
1,559 |
973 |
522 |
33.5 |
bash |
| 14 |
no-host |
configure.yash |
1,405 |
953 |
446 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,474 |
932 |
539 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,484 |
946 |
534 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,436 |
944 |
487 |
33.1 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
2 |
2 |
0 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
2 |
1 |
1 |
7.1 |
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,412 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,177 |
0 |
0 |
0 |
8 |
0 |
40 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
3,373 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,488 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,807 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
102,905 |
0 |
0 |
0 |
8 |
0 |
1,998 |
53 |
bash |
| 9 |
no-host |
bin-true |
49,909 |
0 |
0 |
0 |
8 |
0 |
2,998 |
48 |
dash |
| 17 |
no-host |
bin-true |
133,961 |
0 |
0 |
0 |
16 |
0 |
1,998 |
67 |
osh-native |
| 25 |
no-host |
bin-true |
135,025 |
0 |
0 |
0 |
16 |
0 |
1,999 |
61 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,784 |
0 |
0 |
0 |
8 |
0 |
1,997 |
60 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,630,943 |
0 |
0 |
0 |
25,272 |
0 |
14,035 |
977 |
bash |
| 10 |
no-host |
configure.cpython |
1,647,608 |
0 |
0 |
0 |
25,280 |
0 |
14,065 |
974 |
dash |
| 18 |
no-host |
configure.cpython |
1,587,476 |
1 |
0 |
0 |
25,280 |
0 |
11,312 |
780 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,614,837 |
0 |
0 |
0 |
25,280 |
0 |
11,319 |
830 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,526,640 |
0 |
0 |
0 |
25,272 |
0 |
11,302 |
834 |
osh-static |
| 4 |
no-host |
configure.ocaml |
300,533 |
0 |
0 |
0 |
4,432 |
0 |
2,021 |
157 |
bash |
| 12 |
no-host |
configure.ocaml |
281,485 |
0 |
0 |
0 |
4,432 |
0 |
2,111 |
177 |
dash |
| 20 |
no-host |
configure.ocaml |
307,479 |
0 |
0 |
0 |
4,440 |
0 |
2,006 |
180 |
osh-native |
| 28 |
no-host |
configure.ocaml |
308,486 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
177 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,513 |
0 |
0 |
0 |
4,432 |
0 |
2,005 |
198 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,269 |
0 |
0 |
0 |
80 |
0 |
48 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,228 |
0 |
0 |
0 |
88 |
0 |
52 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
5,621 |
0 |
0 |
0 |
96 |
0 |
44 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,722 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,126 |
0 |
0 |
0 |
88 |
0 |
45 |
4 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,541,639 |
0 |
0 |
0 |
35,944 |
0 |
18,796 |
980 |
bash |
| 11 |
no-host |
configure.util-linux |
1,704,275 |
0 |
0 |
0 |
35,936 |
0 |
16,892 |
1,103 |
dash |
| 19 |
no-host |
configure.util-linux |
1,500,297 |
1 |
0 |
0 |
35,952 |
0 |
16,182 |
894 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,517,441 |
2 |
0 |
0 |
35,952 |
0 |
16,157 |
873 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,455,050 |
0 |
0 |
0 |
35,936 |
0 |
16,247 |
850 |
osh-static |
| 6 |
no-host |
configure.yash |
173,594 |
0 |
0 |
0 |
3,616 |
0 |
877 |
94 |
bash |
| 14 |
no-host |
configure.yash |
159,923 |
0 |
0 |
0 |
3,616 |
0 |
1,003 |
101 |
dash |
| 22 |
no-host |
configure.yash |
176,998 |
0 |
0 |
0 |
3,624 |
0 |
858 |
94 |
osh-native |
| 30 |
no-host |
configure.yash |
177,589 |
0 |
0 |
0 |
3,624 |
0 |
859 |
96 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,004 |
0 |
0 |
0 |
3,616 |
0 |
859 |
95 |
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 |
0 |
dash |
| 16 |
no-host |
hello-world |
391 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
400 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
181 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
osh-static |
Shell and Host