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 |
17 |
9 |
21 |
22 |
18 |
1.21 |
1.06 |
| bin-true |
no-host |
622 |
444 |
790 |
799 |
658 |
1.27 |
1.06 |
| configure.cpython |
no-host |
13,826 |
13,720 |
13,522 |
13,699 |
13,159 |
0.98 |
0.95 |
| configure.ocaml |
no-host |
3,645 |
3,617 |
3,728 |
3,730 |
3,659 |
1.02 |
1.00 |
| configure.tcc |
no-host |
46 |
41 |
47 |
48 |
43 |
1.02 |
0.94 |
| configure.util-linux |
no-host |
12,597 |
13,283 |
12,580 |
12,600 |
12,190 |
1.00 |
0.97 |
| configure.yash |
no-host |
1,671 |
1,647 |
1,719 |
1,725 |
1,662 |
1.03 |
0.99 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.42 |
1.06 |
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,420 |
1,158 |
3,344 |
3,434 |
2,854 |
1.38 |
1.18 |
| bin-true |
no-host |
102,542 |
49,436 |
131,016 |
131,343 |
111,721 |
1.28 |
1.09 |
| configure.cpython |
no-host |
1,627,745 |
1,634,881 |
1,591,135 |
1,605,715 |
1,525,306 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
299,276 |
280,582 |
306,088 |
306,723 |
300,172 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,194 |
4,217 |
5,584 |
5,695 |
5,142 |
1.08 |
0.99 |
| configure.util-linux |
no-host |
1,541,742 |
1,704,615 |
1,492,849 |
1,514,874 |
1,451,956 |
0.97 |
0.94 |
| configure.yash |
no-host |
173,462 |
159,542 |
177,020 |
177,194 |
172,991 |
1.02 |
1.00 |
| hello-world |
no-host |
152 |
88 |
393 |
401 |
182 |
2.59 |
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 |
790 |
1 |
2 |
3.5 |
8.5 |
151,892 |
10,755 |
2,969 |
14,781 |
72,395 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,522 |
2 |
69 |
14.8 |
34.4 |
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,580 |
3 |
68 |
21.6 |
39.7 |
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,728 |
1 |
2 |
2.8 |
28.6 |
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.3 |
30,541 |
30,541 |
0 |
1,680 |
14,472 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,719 |
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.6 |
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 |
799 |
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,699 |
1 |
69 |
14.8 |
34.5 |
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,600 |
3 |
68 |
21.6 |
39.9 |
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,730 |
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.2 |
30,541 |
30,541 |
0 |
1,680 |
14,472 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,725 |
1 |
2 |
2.7 |
33.3 |
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 |
17 |
10 |
8 |
5.0 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
5 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
14 |
8 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
11 |
11 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
11 |
8 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
622 |
306 |
353 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
444 |
268 |
176 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
790 |
314 |
490 |
8.5 |
osh-native |
| 25 |
no-host |
bin-true |
799 |
297 |
516 |
9.0 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
658 |
337 |
340 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,826 |
7,642 |
6,565 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,720 |
7,582 |
6,538 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,522 |
7,269 |
6,527 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,699 |
7,248 |
6,739 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,159 |
7,263 |
6,136 |
34.6 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,645 |
1,467 |
1,218 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,617 |
1,431 |
1,210 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,728 |
1,502 |
1,266 |
28.6 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,730 |
1,479 |
1,291 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,659 |
1,501 |
1,190 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
22 |
25 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
23 |
18 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
26 |
22 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
48 |
22 |
27 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
26 |
18 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,597 |
6,580 |
6,482 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,283 |
6,499 |
7,271 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,580 |
6,298 |
6,500 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,600 |
6,125 |
6,700 |
39.9 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,190 |
6,146 |
6,223 |
39.5 |
osh-static |
| 6 |
no-host |
configure.yash |
1,671 |
959 |
720 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,647 |
946 |
703 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,719 |
974 |
748 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,725 |
988 |
740 |
33.3 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,662 |
946 |
719 |
33.1 |
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 |
0 |
3 |
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.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,420 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,158 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,344 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,434 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,854 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
102,542 |
0 |
0 |
0 |
8 |
0 |
1,998 |
58 |
bash |
| 9 |
no-host |
bin-true |
49,436 |
0 |
0 |
0 |
8 |
0 |
2,999 |
88 |
dash |
| 17 |
no-host |
bin-true |
131,016 |
0 |
0 |
0 |
16 |
0 |
1,997 |
92 |
osh-native |
| 25 |
no-host |
bin-true |
131,343 |
0 |
0 |
0 |
16 |
0 |
1,997 |
99 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,721 |
0 |
0 |
0 |
8 |
0 |
1,997 |
57 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,627,745 |
0 |
0 |
0 |
25,272 |
0 |
14,085 |
1,010 |
bash |
| 10 |
no-host |
configure.cpython |
1,634,881 |
0 |
0 |
0 |
25,280 |
0 |
14,124 |
1,026 |
dash |
| 18 |
no-host |
configure.cpython |
1,591,135 |
0 |
0 |
0 |
25,280 |
0 |
11,298 |
844 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,605,715 |
0 |
0 |
0 |
25,280 |
0 |
11,307 |
879 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,525,306 |
0 |
0 |
0 |
25,272 |
0 |
11,304 |
876 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,276 |
0 |
0 |
0 |
4,432 |
0 |
2,014 |
198 |
bash |
| 12 |
no-host |
configure.ocaml |
280,582 |
0 |
0 |
0 |
4,432 |
0 |
2,112 |
195 |
dash |
| 20 |
no-host |
configure.ocaml |
306,088 |
0 |
0 |
0 |
4,440 |
0 |
1,994 |
218 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,723 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
212 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,172 |
0 |
0 |
0 |
4,432 |
0 |
1,999 |
214 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,194 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,217 |
0 |
0 |
0 |
88 |
0 |
52 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
5,584 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,695 |
0 |
0 |
0 |
96 |
0 |
45 |
0 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,142 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,541,742 |
0 |
0 |
232 |
35,944 |
0 |
18,956 |
1,014 |
bash |
| 11 |
no-host |
configure.util-linux |
1,704,615 |
2 |
0 |
0 |
35,936 |
0 |
17,114 |
1,187 |
dash |
| 19 |
no-host |
configure.util-linux |
1,492,849 |
1 |
0 |
0 |
35,952 |
0 |
16,212 |
940 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,514,874 |
0 |
0 |
0 |
35,944 |
0 |
16,215 |
911 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,451,956 |
1 |
0 |
0 |
35,944 |
0 |
16,220 |
933 |
osh-static |
| 6 |
no-host |
configure.yash |
173,462 |
0 |
0 |
0 |
3,616 |
0 |
878 |
104 |
bash |
| 14 |
no-host |
configure.yash |
159,542 |
0 |
0 |
0 |
3,624 |
0 |
1,001 |
109 |
dash |
| 22 |
no-host |
configure.yash |
177,020 |
0 |
0 |
0 |
3,624 |
0 |
857 |
101 |
osh-native |
| 30 |
no-host |
configure.yash |
177,194 |
0 |
0 |
0 |
3,632 |
0 |
857 |
97 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,991 |
0 |
0 |
0 |
3,624 |
0 |
858 |
104 |
osh-static |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
bash |
| 8 |
no-host |
hello-world |
88 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
393 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
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