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 |
20 |
22 |
18 |
1.29 |
1.16 |
| bin-true |
no-host |
607 |
437 |
800 |
797 |
644 |
1.32 |
1.06 |
| configure.cpython |
no-host |
13,565 |
13,631 |
13,296 |
13,286 |
12,749 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,607 |
3,573 |
3,654 |
3,668 |
3,692 |
1.01 |
1.02 |
| configure.tcc |
no-host |
45 |
41 |
46 |
47 |
43 |
1.01 |
0.95 |
| configure.util-linux |
no-host |
12,352 |
13,102 |
12,319 |
12,365 |
11,991 |
1.00 |
0.97 |
| configure.yash |
no-host |
1,665 |
1,618 |
1,674 |
1,669 |
1,646 |
1.01 |
0.99 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.38 |
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,421 |
1,171 |
3,311 |
3,437 |
2,827 |
1.37 |
1.17 |
| bin-true |
no-host |
100,463 |
49,393 |
133,308 |
134,018 |
111,003 |
1.33 |
1.10 |
| configure.cpython |
no-host |
1,619,497 |
1,640,640 |
1,590,236 |
1,607,894 |
1,513,765 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
298,524 |
280,428 |
306,460 |
307,144 |
300,084 |
1.03 |
1.01 |
| configure.tcc |
no-host |
5,227 |
4,213 |
5,592 |
5,680 |
5,119 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,529,971 |
1,691,825 |
1,501,742 |
1,519,651 |
1,470,295 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,441 |
159,460 |
176,921 |
177,040 |
172,756 |
1.02 |
1.00 |
| hello-world |
no-host |
152 |
87 |
394 |
399 |
183 |
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.4 |
3,920 |
3,920 |
0 |
726 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
800 |
1 |
2 |
3.5 |
8.8 |
151,905 |
10,764 |
2,978 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,296 |
1 |
65 |
14.8 |
34.6 |
1,750,907 |
35,429 |
28,954 |
93,081 |
869,789 |
788,037 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,319 |
3 |
64 |
21.6 |
39.6 |
2,705,473 |
37,501 |
66,342 |
119,749 |
1,291,899 |
1,293,825 |
32,527 |
42 |
132,684 |
1 |
| configure.ocaml |
no-host |
3,654 |
1 |
2 |
2.8 |
28.6 |
149,720 |
12,656 |
6,571 |
9,217 |
70,302 |
70,201 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
0 |
0 |
1.4 |
26.3 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,674 |
1 |
2 |
2.7 |
33.4 |
143,496 |
11,508 |
6,625 |
7,171 |
70,532 |
65,793 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
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 |
797 |
1 |
2 |
3.5 |
9.3 |
151,905 |
10,768 |
2,982 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,286 |
1 |
64 |
14.9 |
34.5 |
1,750,906 |
36,488 |
28,959 |
93,080 |
869,789 |
788,037 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,365 |
3 |
64 |
21.6 |
39.6 |
2,705,473 |
37,507 |
66,348 |
119,749 |
1,291,899 |
1,293,825 |
32,527 |
42 |
132,696 |
1 |
| configure.ocaml |
no-host |
3,668 |
1 |
2 |
2.8 |
28.7 |
149,720 |
12,661 |
6,576 |
9,217 |
70,302 |
70,201 |
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,669 |
1 |
2 |
2.7 |
33.1 |
143,496 |
11,512 |
6,629 |
7,171 |
70,532 |
65,793 |
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 |
5.0 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
7 |
2 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
13 |
8 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
12 |
11 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
12 |
7 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
607 |
311 |
334 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
437 |
270 |
173 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
800 |
291 |
525 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
797 |
308 |
505 |
9.3 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
644 |
306 |
353 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,565 |
7,475 |
6,472 |
34.6 |
bash |
| 10 |
no-host |
configure.cpython |
13,631 |
7,539 |
6,490 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,296 |
7,081 |
6,489 |
34.6 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,286 |
7,084 |
6,490 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,749 |
7,173 |
5,812 |
34.4 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,607 |
1,471 |
1,175 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,573 |
1,419 |
1,178 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
3,654 |
1,480 |
1,213 |
28.6 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,668 |
1,466 |
1,242 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,692 |
1,474 |
1,221 |
28.8 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
26 |
20 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
22 |
19 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
46 |
24 |
22 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
22 |
26 |
26.0 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
23 |
20 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,352 |
6,491 |
6,323 |
39.5 |
bash |
| 11 |
no-host |
configure.util-linux |
13,102 |
6,404 |
7,185 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
12,319 |
6,068 |
6,474 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,365 |
6,146 |
6,444 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
11,991 |
6,146 |
6,063 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,665 |
933 |
741 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,618 |
930 |
690 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,674 |
903 |
774 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,669 |
919 |
753 |
33.1 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,646 |
963 |
687 |
33.3 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.7 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
1 |
6.4 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
7.1 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
0 |
1 |
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,421 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,171 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,311 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,437 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,827 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
100,463 |
0 |
0 |
0 |
8 |
0 |
1,998 |
48 |
bash |
| 9 |
no-host |
bin-true |
49,393 |
0 |
0 |
0 |
8 |
0 |
2,998 |
45 |
dash |
| 17 |
no-host |
bin-true |
133,308 |
0 |
0 |
0 |
16 |
0 |
1,997 |
89 |
osh-native |
| 25 |
no-host |
bin-true |
134,018 |
0 |
0 |
0 |
16 |
0 |
1,999 |
81 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,003 |
0 |
0 |
0 |
8 |
0 |
2,000 |
92 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,619,497 |
0 |
0 |
0 |
25,272 |
0 |
14,089 |
974 |
bash |
| 10 |
no-host |
configure.cpython |
1,640,640 |
0 |
0 |
0 |
25,272 |
0 |
14,115 |
956 |
dash |
| 18 |
no-host |
configure.cpython |
1,590,236 |
0 |
0 |
0 |
25,280 |
0 |
11,304 |
838 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,607,894 |
0 |
0 |
0 |
25,280 |
0 |
11,311 |
782 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,513,765 |
0 |
0 |
0 |
25,272 |
0 |
11,299 |
977 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,524 |
0 |
0 |
0 |
4,432 |
0 |
2,019 |
195 |
bash |
| 12 |
no-host |
configure.ocaml |
280,428 |
0 |
0 |
0 |
4,432 |
0 |
2,110 |
184 |
dash |
| 20 |
no-host |
configure.ocaml |
306,460 |
0 |
0 |
0 |
4,440 |
0 |
2,005 |
227 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,144 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
198 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,084 |
0 |
0 |
0 |
4,432 |
0 |
2,003 |
205 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,227 |
0 |
0 |
0 |
80 |
0 |
48 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,213 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,592 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,680 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,119 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,529,971 |
0 |
0 |
0 |
35,936 |
0 |
18,967 |
1,135 |
bash |
| 11 |
no-host |
configure.util-linux |
1,691,825 |
1 |
0 |
0 |
35,936 |
0 |
17,075 |
1,186 |
dash |
| 19 |
no-host |
configure.util-linux |
1,501,742 |
1 |
0 |
8 |
35,952 |
0 |
16,220 |
884 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,519,651 |
1 |
0 |
0 |
35,944 |
0 |
16,165 |
909 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,470,295 |
0 |
0 |
0 |
35,936 |
0 |
16,111 |
834 |
osh-static |
| 6 |
no-host |
configure.yash |
173,441 |
0 |
0 |
0 |
3,616 |
0 |
879 |
95 |
bash |
| 14 |
no-host |
configure.yash |
159,460 |
0 |
0 |
0 |
3,624 |
0 |
1,002 |
100 |
dash |
| 22 |
no-host |
configure.yash |
176,921 |
0 |
0 |
0 |
3,632 |
0 |
855 |
84 |
osh-native |
| 30 |
no-host |
configure.yash |
177,040 |
0 |
0 |
0 |
3,624 |
0 |
857 |
97 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,756 |
0 |
0 |
0 |
3,616 |
0 |
857 |
92 |
osh-static |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
87 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
394 |
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