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 |
18 |
1.32 |
1.14 |
| bin-true |
no-host |
619 |
441 |
804 |
803 |
656 |
1.30 |
1.06 |
| configure.cpython |
no-host |
13,772 |
13,890 |
13,735 |
13,755 |
13,086 |
1.00 |
0.95 |
| configure.ocaml |
no-host |
3,675 |
3,677 |
3,755 |
3,716 |
3,656 |
1.02 |
0.99 |
| configure.tcc |
no-host |
45 |
41 |
47 |
46 |
43 |
1.04 |
0.94 |
| configure.util-linux |
no-host |
12,746 |
13,359 |
12,627 |
12,946 |
12,375 |
0.99 |
0.97 |
| configure.yash |
no-host |
1,684 |
1,667 |
1,700 |
1,714 |
1,678 |
1.01 |
1.00 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.42 |
1.01 |
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,396 |
1,157 |
3,308 |
3,398 |
2,852 |
1.38 |
1.19 |
| bin-true |
no-host |
100,428 |
49,369 |
132,007 |
134,368 |
111,682 |
1.31 |
1.11 |
| configure.cpython |
no-host |
1,620,589 |
1,639,430 |
1,579,900 |
1,609,218 |
1,518,137 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
298,527 |
280,986 |
305,963 |
306,739 |
300,100 |
1.02 |
1.01 |
| configure.tcc |
no-host |
5,251 |
4,218 |
5,641 |
5,646 |
5,128 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,537,236 |
1,694,733 |
1,524,161 |
1,525,122 |
1,478,467 |
0.99 |
0.96 |
| configure.yash |
no-host |
173,316 |
159,609 |
176,958 |
176,743 |
172,889 |
1.02 |
1.00 |
| hello-world |
no-host |
151 |
85 |
392 |
400 |
182 |
2.60 |
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.6 |
3,915 |
3,915 |
0 |
723 |
1,921 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
804 |
1 |
2 |
3.5 |
8.8 |
151,900 |
10,763 |
2,977 |
14,782 |
72,395 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,735 |
1 |
70 |
14.8 |
34.4 |
1,750,827 |
35,398 |
28,953 |
93,078 |
869,762 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,627 |
3 |
68 |
21.6 |
39.6 |
2,705,393 |
37,470 |
66,341 |
119,746 |
1,291,872 |
1,293,775 |
32,527 |
42 |
132,682 |
1 |
| configure.ocaml |
no-host |
3,755 |
1 |
2 |
2.8 |
28.7 |
149,700 |
12,655 |
6,570 |
9,214 |
70,295 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.4 |
26.2 |
30,551 |
30,551 |
0 |
1,681 |
14,473 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,700 |
1 |
2 |
2.7 |
33.1 |
143,476 |
11,507 |
6,624 |
7,168 |
70,525 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
9.6 |
117,234 |
65,800 |
42,007 |
4,977 |
54,599 |
57,658 |
277 |
3 |
84,014 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
7.1 |
3,914 |
3,914 |
0 |
722 |
1,921 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
803 |
1 |
2 |
3.5 |
9.2 |
151,900 |
10,767 |
2,981 |
14,782 |
72,395 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,755 |
1 |
67 |
14.8 |
34.5 |
1,750,826 |
36,457 |
28,958 |
93,077 |
869,762 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,946 |
3 |
68 |
21.6 |
39.7 |
2,705,393 |
37,476 |
66,347 |
119,746 |
1,291,872 |
1,293,775 |
32,527 |
42 |
132,694 |
1 |
| configure.ocaml |
no-host |
3,716 |
1 |
2 |
2.8 |
28.5 |
149,700 |
12,660 |
6,575 |
9,214 |
70,295 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
0 |
0 |
1.4 |
26.1 |
30,551 |
30,551 |
0 |
1,681 |
14,473 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,714 |
1 |
2 |
2.7 |
33.3 |
143,476 |
11,511 |
6,628 |
7,168 |
70,525 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
10.0 |
117,234 |
65,804 |
42,011 |
4,977 |
54,599 |
57,658 |
277 |
3 |
84,022 |
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 |
5 |
11 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
2 |
7 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
13 |
8 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
14 |
8 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
12 |
6 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
619 |
317 |
340 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
441 |
280 |
166 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
804 |
305 |
515 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
803 |
318 |
501 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
656 |
324 |
348 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,772 |
7,545 |
6,613 |
34.6 |
bash |
| 10 |
no-host |
configure.cpython |
13,890 |
7,649 |
6,640 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,735 |
7,307 |
6,701 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,755 |
7,322 |
6,726 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,086 |
7,309 |
6,009 |
34.7 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,675 |
1,446 |
1,269 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,677 |
1,489 |
1,211 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,755 |
1,502 |
1,291 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,716 |
1,490 |
1,266 |
28.5 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,656 |
1,487 |
1,200 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
22 |
24 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
19 |
23 |
26.0 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
25 |
22 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
46 |
26 |
21 |
26.1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
24 |
19 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,746 |
6,737 |
6,479 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,359 |
6,622 |
7,217 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,627 |
6,299 |
6,545 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,946 |
6,442 |
6,731 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,375 |
6,280 |
6,310 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,684 |
938 |
754 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,667 |
957 |
710 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,700 |
958 |
744 |
33.1 |
osh-native |
| 30 |
no-host |
configure.yash |
1,714 |
955 |
761 |
33.3 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,678 |
984 |
697 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
2 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
7.1 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
1 |
0 |
3.3 |
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,396 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,157 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,308 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,398 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,852 |
0 |
0 |
0 |
8 |
0 |
38 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
100,428 |
0 |
0 |
0 |
8 |
0 |
1,998 |
57 |
bash |
| 9 |
no-host |
bin-true |
49,369 |
0 |
0 |
0 |
8 |
0 |
2,997 |
53 |
dash |
| 17 |
no-host |
bin-true |
132,007 |
0 |
0 |
0 |
16 |
0 |
1,997 |
72 |
osh-native |
| 25 |
no-host |
bin-true |
134,368 |
0 |
0 |
0 |
16 |
0 |
1,999 |
86 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,682 |
0 |
0 |
0 |
8 |
0 |
2,000 |
93 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,620,589 |
0 |
0 |
0 |
25,272 |
0 |
14,075 |
985 |
bash |
| 10 |
no-host |
configure.cpython |
1,639,430 |
0 |
0 |
0 |
25,272 |
0 |
14,126 |
1,052 |
dash |
| 18 |
no-host |
configure.cpython |
1,579,900 |
0 |
0 |
0 |
25,280 |
0 |
11,288 |
793 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,609,218 |
0 |
0 |
0 |
25,280 |
0 |
11,311 |
861 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,518,137 |
0 |
0 |
0 |
25,272 |
0 |
11,311 |
892 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,527 |
0 |
0 |
0 |
4,432 |
0 |
2,015 |
183 |
bash |
| 12 |
no-host |
configure.ocaml |
280,986 |
0 |
0 |
0 |
4,432 |
0 |
2,056 |
178 |
dash |
| 20 |
no-host |
configure.ocaml |
305,963 |
0 |
0 |
0 |
4,440 |
0 |
2,002 |
216 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,739 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
183 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,100 |
0 |
0 |
0 |
4,432 |
0 |
1,997 |
199 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,251 |
0 |
0 |
0 |
80 |
0 |
49 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,218 |
0 |
0 |
0 |
88 |
0 |
53 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,641 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,646 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,128 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,537,236 |
1 |
0 |
0 |
35,944 |
0 |
19,037 |
1,094 |
bash |
| 11 |
no-host |
configure.util-linux |
1,694,733 |
1 |
0 |
336 |
35,936 |
0 |
17,151 |
1,231 |
dash |
| 19 |
no-host |
configure.util-linux |
1,524,161 |
1 |
0 |
0 |
35,952 |
0 |
16,131 |
1,039 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,525,122 |
1 |
0 |
0 |
35,944 |
0 |
16,196 |
951 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,478,467 |
1 |
0 |
0 |
35,936 |
0 |
16,181 |
950 |
osh-static |
| 6 |
no-host |
configure.yash |
173,316 |
0 |
0 |
0 |
3,616 |
0 |
876 |
102 |
bash |
| 14 |
no-host |
configure.yash |
159,609 |
0 |
0 |
0 |
3,616 |
0 |
1,004 |
100 |
dash |
| 22 |
no-host |
configure.yash |
176,958 |
0 |
0 |
0 |
3,624 |
0 |
858 |
101 |
osh-native |
| 30 |
no-host |
configure.yash |
176,743 |
0 |
0 |
0 |
3,624 |
0 |
857 |
103 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,889 |
0 |
0 |
0 |
3,624 |
0 |
856 |
102 |
osh-static |
| 0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
85 |
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 |
400 |
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