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 |
22 |
19 |
1.32 |
1.17 |
| bin-true |
no-host |
630 |
445 |
823 |
818 |
666 |
1.31 |
1.06 |
| configure.cpython |
no-host |
14,330 |
14,312 |
14,050 |
14,077 |
13,458 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,689 |
3,714 |
3,822 |
3,785 |
3,780 |
1.04 |
1.02 |
| configure.tcc |
no-host |
46 |
44 |
49 |
48 |
45 |
1.05 |
0.97 |
| configure.util-linux |
no-host |
12,879 |
13,649 |
12,918 |
12,921 |
12,634 |
1.00 |
0.98 |
| configure.yash |
no-host |
1,717 |
1,712 |
1,770 |
1,764 |
1,755 |
1.03 |
1.02 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.38 |
1.02 |
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,162 |
3,282 |
3,372 |
2,851 |
1.36 |
1.18 |
| bin-true |
no-host |
100,451 |
49,440 |
134,965 |
133,325 |
112,713 |
1.34 |
1.12 |
| configure.cpython |
no-host |
1,626,704 |
1,631,605 |
1,596,056 |
1,591,526 |
1,525,541 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
298,939 |
280,428 |
305,918 |
306,568 |
300,281 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,218 |
4,221 |
5,571 |
5,693 |
5,120 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,540,679 |
1,708,793 |
1,487,216 |
1,518,145 |
1,452,424 |
0.97 |
0.94 |
| configure.yash |
no-host |
173,338 |
159,500 |
177,081 |
177,168 |
172,968 |
1.02 |
1.00 |
| hello-world |
no-host |
151 |
86 |
392 |
399 |
181 |
2.60 |
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 |
823 |
1 |
2 |
3.5 |
9.0 |
151,892 |
10,755 |
2,969 |
14,781 |
72,395 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,050 |
1 |
72 |
14.8 |
34.7 |
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,918 |
3 |
70 |
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,822 |
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 |
49 |
0 |
0 |
1.4 |
26.0 |
30,541 |
30,541 |
0 |
1,680 |
14,472 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,770 |
1 |
2 |
2.7 |
33.4 |
143,454 |
11,460 |
6,616 |
7,166 |
70,508 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
9.4 |
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 |
818 |
1 |
2 |
3.5 |
9.3 |
151,892 |
10,759 |
2,973 |
14,781 |
72,395 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,077 |
1 |
71 |
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,921 |
3 |
69 |
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,785 |
1 |
2 |
2.8 |
28.7 |
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.1 |
30,541 |
30,541 |
0 |
1,680 |
14,472 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,764 |
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 |
5.0 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
7 |
3 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
15 |
7 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
11 |
11 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
16 |
4 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
630 |
318 |
349 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
445 |
288 |
162 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
823 |
301 |
540 |
9.0 |
osh-native |
| 25 |
no-host |
bin-true |
818 |
301 |
535 |
9.3 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
666 |
310 |
372 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,330 |
7,733 |
6,998 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,312 |
7,829 |
6,889 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
14,050 |
7,479 |
6,856 |
34.7 |
osh-native |
| 26 |
no-host |
configure.cpython |
14,077 |
7,510 |
6,862 |
34.7 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,458 |
7,394 |
6,311 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,689 |
1,491 |
1,239 |
28.5 |
bash |
| 12 |
no-host |
configure.ocaml |
3,714 |
1,522 |
1,217 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,822 |
1,526 |
1,335 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,785 |
1,559 |
1,268 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,780 |
1,514 |
1,299 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
27 |
20 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
44 |
22 |
22 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
49 |
28 |
21 |
26.0 |
osh-native |
| 29 |
no-host |
configure.tcc |
48 |
21 |
27 |
26.1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
45 |
19 |
26 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,879 |
6,828 |
6,521 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,649 |
6,654 |
7,495 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,918 |
6,291 |
6,860 |
39.5 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,921 |
6,263 |
6,886 |
39.5 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,634 |
6,394 |
6,453 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,717 |
981 |
744 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,712 |
991 |
721 |
33.2 |
dash |
| 22 |
no-host |
configure.yash |
1,770 |
999 |
774 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,764 |
957 |
809 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,755 |
995 |
763 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
2 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
6.9 |
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,162 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,282 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,372 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,851 |
0 |
0 |
0 |
8 |
0 |
38 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
100,451 |
0 |
0 |
0 |
8 |
0 |
1,996 |
58 |
bash |
| 9 |
no-host |
bin-true |
49,440 |
0 |
0 |
0 |
8 |
0 |
2,997 |
52 |
dash |
| 17 |
no-host |
bin-true |
134,965 |
0 |
0 |
0 |
16 |
0 |
1,997 |
85 |
osh-native |
| 25 |
no-host |
bin-true |
133,325 |
0 |
0 |
0 |
16 |
0 |
1,999 |
70 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,713 |
0 |
0 |
0 |
8 |
0 |
2,000 |
89 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,626,704 |
0 |
0 |
0 |
25,272 |
0 |
14,088 |
1,034 |
bash |
| 10 |
no-host |
configure.cpython |
1,631,605 |
0 |
0 |
0 |
25,272 |
0 |
14,132 |
1,080 |
dash |
| 18 |
no-host |
configure.cpython |
1,596,056 |
0 |
0 |
0 |
25,280 |
0 |
11,284 |
874 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,591,526 |
0 |
0 |
0 |
25,280 |
0 |
11,309 |
808 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,525,541 |
1 |
0 |
0 |
25,272 |
0 |
11,304 |
819 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,939 |
0 |
0 |
0 |
4,432 |
0 |
2,017 |
175 |
bash |
| 12 |
no-host |
configure.ocaml |
280,428 |
0 |
0 |
0 |
4,432 |
0 |
2,092 |
201 |
dash |
| 20 |
no-host |
configure.ocaml |
305,918 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
190 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,568 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
183 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,281 |
0 |
0 |
0 |
4,432 |
0 |
2,001 |
237 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,218 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,221 |
0 |
0 |
0 |
88 |
0 |
52 |
39 |
dash |
| 21 |
no-host |
configure.tcc |
5,571 |
0 |
0 |
0 |
96 |
0 |
44 |
1 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,693 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,120 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,540,679 |
0 |
0 |
232 |
35,944 |
0 |
18,920 |
1,067 |
bash |
| 11 |
no-host |
configure.util-linux |
1,708,793 |
0 |
0 |
0 |
35,936 |
0 |
17,123 |
1,242 |
dash |
| 19 |
no-host |
configure.util-linux |
1,487,216 |
0 |
0 |
0 |
35,952 |
0 |
16,197 |
865 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,518,145 |
0 |
0 |
0 |
35,944 |
0 |
16,174 |
1,006 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,452,424 |
1 |
0 |
0 |
35,936 |
0 |
16,126 |
881 |
osh-static |
| 6 |
no-host |
configure.yash |
173,338 |
0 |
0 |
0 |
3,616 |
0 |
878 |
113 |
bash |
| 14 |
no-host |
configure.yash |
159,500 |
0 |
0 |
0 |
3,624 |
0 |
1,003 |
103 |
dash |
| 22 |
no-host |
configure.yash |
177,081 |
0 |
0 |
0 |
3,624 |
0 |
858 |
103 |
osh-native |
| 30 |
no-host |
configure.yash |
177,168 |
0 |
0 |
0 |
3,624 |
0 |
854 |
100 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,968 |
0 |
0 |
0 |
3,616 |
0 |
859 |
105 |
osh-static |
| 0 |
no-host |
hello-world |
151 |
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 |
399 |
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