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.29 |
1.17 |
| bin-true |
no-host |
620 |
448 |
801 |
799 |
655 |
1.29 |
1.06 |
| configure.cpython |
no-host |
13,839 |
13,905 |
13,551 |
13,669 |
13,105 |
0.98 |
0.95 |
| configure.ocaml |
no-host |
3,673 |
3,637 |
3,709 |
3,708 |
3,666 |
1.01 |
1.00 |
| configure.tcc |
no-host |
46 |
41 |
47 |
54 |
43 |
1.02 |
0.94 |
| configure.util-linux |
no-host |
12,563 |
13,349 |
12,558 |
12,620 |
12,245 |
1.00 |
0.97 |
| configure.yash |
no-host |
1,715 |
1,641 |
1,699 |
1,717 |
1,689 |
0.99 |
0.98 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.30 |
1.00 |
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,391 |
1,190 |
3,308 |
3,413 |
2,835 |
1.38 |
1.19 |
| bin-true |
no-host |
102,492 |
49,379 |
133,281 |
132,056 |
112,097 |
1.30 |
1.09 |
| configure.cpython |
no-host |
1,625,116 |
1,645,185 |
1,590,710 |
1,599,546 |
1,517,960 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
299,100 |
280,875 |
305,718 |
307,400 |
300,126 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,230 |
4,193 |
5,617 |
5,610 |
5,115 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,537,358 |
1,701,255 |
1,512,536 |
1,521,858 |
1,478,126 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,346 |
159,461 |
176,932 |
177,177 |
172,784 |
1.02 |
1.00 |
| hello-world |
no-host |
152 |
89 |
395 |
399 |
183 |
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.8 |
3,920 |
3,920 |
0 |
726 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
801 |
1 |
2 |
3.5 |
8.7 |
151,905 |
10,764 |
2,978 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,551 |
1 |
66 |
14.8 |
34.4 |
1,750,832 |
35,399 |
28,954 |
93,081 |
869,764 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,558 |
3 |
66 |
21.6 |
39.5 |
2,705,398 |
37,471 |
66,342 |
119,749 |
1,291,874 |
1,293,775 |
32,527 |
42 |
132,684 |
1 |
| configure.ocaml |
no-host |
3,709 |
1 |
2 |
2.8 |
28.7 |
149,705 |
12,656 |
6,571 |
9,217 |
70,297 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.4 |
26.0 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,699 |
1 |
2 |
2.7 |
33.2 |
143,481 |
11,508 |
6,625 |
7,171 |
70,527 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
9.6 |
117,239 |
65,801 |
42,008 |
4,980 |
54,601 |
57,658 |
277 |
3 |
84,016 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
7.1 |
3,919 |
3,919 |
0 |
725 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
799 |
1 |
2 |
3.5 |
9.2 |
151,905 |
10,768 |
2,982 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,669 |
1 |
66 |
14.9 |
34.5 |
1,750,831 |
36,458 |
28,959 |
93,080 |
869,764 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,620 |
3 |
66 |
21.6 |
39.9 |
2,705,398 |
37,477 |
66,348 |
119,749 |
1,291,874 |
1,293,775 |
32,527 |
42 |
132,696 |
1 |
| configure.ocaml |
no-host |
3,708 |
1 |
2 |
2.8 |
28.5 |
149,705 |
12,661 |
6,576 |
9,217 |
70,297 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
54 |
0 |
0 |
1.4 |
26.1 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,717 |
1 |
2 |
2.7 |
33.3 |
143,481 |
11,512 |
6,629 |
7,171 |
70,527 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
10.0 |
117,239 |
65,805 |
42,012 |
4,980 |
54,601 |
57,658 |
277 |
3 |
84,024 |
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.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
12 |
9 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
12 |
10 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
13 |
6 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
620 |
306 |
353 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
448 |
287 |
167 |
1.8 |
dash |
| 17 |
no-host |
bin-true |
801 |
325 |
495 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
799 |
310 |
506 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
655 |
324 |
348 |
5.4 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,839 |
7,624 |
6,589 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,905 |
7,672 |
6,632 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
13,551 |
7,219 |
6,597 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,669 |
7,199 |
6,747 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,105 |
7,325 |
5,966 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,673 |
1,538 |
1,176 |
28.5 |
bash |
| 12 |
no-host |
configure.ocaml |
3,637 |
1,474 |
1,187 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,709 |
1,473 |
1,274 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,708 |
1,505 |
1,245 |
28.5 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,666 |
1,494 |
1,203 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
26 |
20 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
26 |
16 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
26 |
22 |
26.0 |
osh-native |
| 29 |
no-host |
configure.tcc |
54 |
30 |
24 |
26.1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
22 |
22 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,563 |
6,597 |
6,425 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,349 |
6,458 |
7,384 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,558 |
6,231 |
6,555 |
39.5 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,620 |
6,285 |
6,560 |
39.9 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,245 |
6,264 |
6,199 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,715 |
964 |
759 |
33.2 |
bash |
| 14 |
no-host |
configure.yash |
1,641 |
916 |
727 |
33.2 |
dash |
| 22 |
no-host |
configure.yash |
1,699 |
940 |
762 |
33.2 |
osh-native |
| 30 |
no-host |
configure.yash |
1,717 |
947 |
772 |
33.3 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,689 |
1,002 |
690 |
33.3 |
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 |
2 |
1 |
6.8 |
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,391 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,190 |
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,413 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,835 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
102,492 |
0 |
0 |
0 |
8 |
0 |
1,999 |
60 |
bash |
| 9 |
no-host |
bin-true |
49,379 |
0 |
0 |
0 |
8 |
0 |
2,988 |
69 |
dash |
| 17 |
no-host |
bin-true |
133,281 |
0 |
0 |
0 |
16 |
0 |
1,998 |
84 |
osh-native |
| 25 |
no-host |
bin-true |
132,056 |
0 |
0 |
0 |
16 |
0 |
1,999 |
72 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,097 |
0 |
0 |
0 |
8 |
0 |
1,997 |
68 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,625,116 |
0 |
0 |
0 |
25,272 |
0 |
14,080 |
1,184 |
bash |
| 10 |
no-host |
configure.cpython |
1,645,185 |
0 |
0 |
0 |
25,272 |
0 |
14,124 |
1,061 |
dash |
| 18 |
no-host |
configure.cpython |
1,590,710 |
0 |
0 |
0 |
25,280 |
0 |
11,312 |
862 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,599,546 |
0 |
0 |
0 |
25,280 |
0 |
11,311 |
804 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,517,960 |
0 |
0 |
0 |
25,272 |
0 |
11,308 |
855 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,100 |
0 |
0 |
0 |
4,432 |
0 |
2,020 |
199 |
bash |
| 12 |
no-host |
configure.ocaml |
280,875 |
0 |
0 |
0 |
4,432 |
0 |
2,104 |
204 |
dash |
| 20 |
no-host |
configure.ocaml |
305,718 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
219 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,400 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
201 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,126 |
0 |
0 |
0 |
4,432 |
0 |
1,999 |
243 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,230 |
0 |
0 |
0 |
80 |
0 |
49 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,193 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,617 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,610 |
0 |
0 |
0 |
96 |
0 |
45 |
6 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,115 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,537,358 |
1 |
0 |
0 |
35,936 |
0 |
18,973 |
1,066 |
bash |
| 11 |
no-host |
configure.util-linux |
1,701,255 |
1 |
0 |
0 |
35,936 |
0 |
17,100 |
1,152 |
dash |
| 19 |
no-host |
configure.util-linux |
1,512,536 |
0 |
0 |
0 |
35,952 |
0 |
16,222 |
893 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,521,858 |
1 |
0 |
0 |
35,944 |
0 |
16,213 |
906 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,478,126 |
1 |
0 |
496 |
35,936 |
0 |
16,110 |
903 |
osh-static |
| 6 |
no-host |
configure.yash |
173,346 |
0 |
0 |
0 |
3,616 |
0 |
880 |
105 |
bash |
| 14 |
no-host |
configure.yash |
159,461 |
0 |
0 |
0 |
3,616 |
0 |
998 |
100 |
dash |
| 22 |
no-host |
configure.yash |
176,932 |
0 |
0 |
0 |
3,632 |
0 |
854 |
107 |
osh-native |
| 30 |
no-host |
configure.yash |
177,177 |
0 |
0 |
0 |
3,624 |
0 |
856 |
115 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,784 |
0 |
0 |
0 |
3,616 |
0 |
856 |
110 |
osh-static |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
89 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
395 |
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 |
183 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host