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 |
18 |
1.31 |
1.16 |
| bin-true |
no-host |
631 |
441 |
805 |
804 |
654 |
1.28 |
1.04 |
| configure.cpython |
no-host |
13,683 |
13,822 |
13,401 |
13,409 |
12,907 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,659 |
3,593 |
3,700 |
3,692 |
3,662 |
1.01 |
1.00 |
| configure.tcc |
no-host |
46 |
41 |
47 |
47 |
43 |
1.03 |
0.94 |
| configure.util-linux |
no-host |
12,424 |
13,194 |
12,444 |
12,517 |
12,072 |
1.00 |
0.97 |
| configure.yash |
no-host |
1,700 |
1,628 |
1,694 |
1,687 |
1,660 |
1.00 |
0.98 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.47 |
1.03 |
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,414 |
1,193 |
3,307 |
3,420 |
2,856 |
1.37 |
1.18 |
| bin-true |
no-host |
103,449 |
49,378 |
134,334 |
132,321 |
112,722 |
1.30 |
1.09 |
| configure.cpython |
no-host |
1,621,930 |
1,639,501 |
1,582,476 |
1,600,429 |
1,523,892 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
298,716 |
280,709 |
305,533 |
307,698 |
300,098 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,212 |
4,201 |
5,569 |
5,631 |
5,143 |
1.07 |
0.99 |
| configure.util-linux |
no-host |
1,536,227 |
1,703,976 |
1,489,250 |
1,514,717 |
1,452,591 |
0.97 |
0.95 |
| configure.yash |
no-host |
173,473 |
159,486 |
176,770 |
177,100 |
173,055 |
1.02 |
1.00 |
| hello-world |
no-host |
151 |
83 |
390 |
401 |
182 |
2.58 |
1.21 |
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,907 |
3,907 |
0 |
722 |
1,921 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
805 |
1 |
2 |
3.5 |
8.8 |
151,892 |
10,755 |
2,969 |
14,781 |
72,395 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,401 |
1 |
68 |
14.8 |
34.4 |
1,750,784 |
35,383 |
28,940 |
93,077 |
869,742 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,444 |
3 |
66 |
21.6 |
39.6 |
2,705,320 |
37,455 |
66,328 |
119,745 |
1,291,837 |
1,293,738 |
32,527 |
42 |
132,656 |
1 |
| configure.ocaml |
no-host |
3,700 |
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.2 |
30,541 |
30,541 |
0 |
1,680 |
14,472 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,694 |
1 |
2 |
2.7 |
33.4 |
143,452 |
11,458 |
6,614 |
7,164 |
70,516 |
65,772 |
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 |
7.1 |
3,906 |
3,906 |
0 |
721 |
1,921 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
804 |
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,409 |
1 |
65 |
14.8 |
34.7 |
1,750,783 |
35,388 |
28,945 |
93,076 |
869,742 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,517 |
4 |
66 |
21.6 |
39.7 |
2,705,320 |
37,461 |
66,334 |
119,745 |
1,291,837 |
1,293,738 |
32,527 |
42 |
132,668 |
1 |
| configure.ocaml |
no-host |
3,692 |
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 |
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,687 |
1 |
2 |
2.7 |
33.4 |
143,452 |
11,462 |
6,618 |
7,164 |
70,516 |
65,772 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
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.6 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
3 |
6 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
14 |
7 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
11 |
11 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
9 |
10 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
631 |
315 |
352 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
441 |
268 |
178 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
805 |
309 |
514 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
804 |
314 |
506 |
9.0 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
654 |
315 |
357 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,683 |
7,591 |
6,473 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
13,822 |
7,596 |
6,627 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,401 |
7,127 |
6,536 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,409 |
7,124 |
6,570 |
34.7 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,907 |
7,147 |
5,978 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,659 |
1,445 |
1,253 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,593 |
1,457 |
1,159 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
3,700 |
1,471 |
1,267 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,692 |
1,467 |
1,266 |
28.6 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,662 |
1,476 |
1,214 |
28.5 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
25 |
21 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
22 |
20 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
30 |
17 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
27 |
21 |
26.1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
23 |
21 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,424 |
6,657 |
6,228 |
39.5 |
bash |
| 11 |
no-host |
configure.util-linux |
13,194 |
6,409 |
7,248 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,444 |
6,219 |
6,439 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,517 |
6,347 |
6,395 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,072 |
6,143 |
6,135 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,700 |
945 |
762 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,628 |
957 |
673 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,694 |
930 |
767 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,687 |
948 |
742 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,660 |
952 |
710 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
3 |
2 |
1 |
6.4 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
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,414 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,193 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,307 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,420 |
0 |
0 |
0 |
16 |
0 |
38 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,856 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
103,449 |
0 |
0 |
0 |
8 |
0 |
1,998 |
75 |
bash |
| 9 |
no-host |
bin-true |
49,378 |
0 |
0 |
0 |
8 |
0 |
2,992 |
58 |
dash |
| 17 |
no-host |
bin-true |
134,334 |
0 |
0 |
0 |
16 |
0 |
2,000 |
66 |
osh-native |
| 25 |
no-host |
bin-true |
132,321 |
0 |
0 |
0 |
16 |
0 |
1,999 |
78 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,722 |
0 |
0 |
0 |
8 |
0 |
2,000 |
49 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,621,930 |
0 |
0 |
0 |
25,272 |
0 |
14,083 |
1,031 |
bash |
| 10 |
no-host |
configure.cpython |
1,639,501 |
0 |
0 |
0 |
25,272 |
0 |
14,118 |
995 |
dash |
| 18 |
no-host |
configure.cpython |
1,582,476 |
0 |
0 |
0 |
25,280 |
0 |
11,304 |
881 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,600,429 |
0 |
0 |
0 |
25,280 |
0 |
11,306 |
848 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,523,892 |
0 |
0 |
0 |
25,272 |
0 |
11,304 |
1,044 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,716 |
0 |
0 |
0 |
4,432 |
0 |
2,022 |
183 |
bash |
| 12 |
no-host |
configure.ocaml |
280,709 |
0 |
0 |
0 |
4,432 |
0 |
2,099 |
178 |
dash |
| 20 |
no-host |
configure.ocaml |
305,533 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
198 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,698 |
0 |
0 |
0 |
4,440 |
0 |
2,003 |
182 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,098 |
0 |
0 |
0 |
4,432 |
0 |
2,000 |
227 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,212 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,201 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,569 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,631 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,143 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,536,227 |
0 |
0 |
0 |
35,944 |
0 |
18,997 |
1,031 |
bash |
| 11 |
no-host |
configure.util-linux |
1,703,976 |
1 |
0 |
336 |
35,936 |
0 |
17,114 |
1,234 |
dash |
| 19 |
no-host |
configure.util-linux |
1,489,250 |
0 |
0 |
0 |
35,952 |
0 |
16,216 |
954 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,514,717 |
0 |
0 |
0 |
35,944 |
0 |
16,216 |
866 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,452,591 |
1 |
0 |
0 |
35,936 |
0 |
16,210 |
919 |
osh-static |
| 6 |
no-host |
configure.yash |
173,473 |
0 |
0 |
0 |
3,616 |
0 |
879 |
100 |
bash |
| 14 |
no-host |
configure.yash |
159,486 |
0 |
0 |
0 |
3,624 |
0 |
1,004 |
97 |
dash |
| 22 |
no-host |
configure.yash |
176,770 |
0 |
0 |
0 |
3,624 |
0 |
858 |
103 |
osh-native |
| 30 |
no-host |
configure.yash |
177,100 |
0 |
0 |
0 |
3,624 |
0 |
858 |
101 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,055 |
0 |
0 |
0 |
3,616 |
0 |
858 |
102 |
osh-static |
| 0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
83 |
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 |
401 |
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