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.31 |
1.18 |
| bin-true |
no-host |
622 |
444 |
812 |
804 |
662 |
1.31 |
1.06 |
| configure.cpython |
no-host |
14,147 |
14,183 |
13,807 |
13,888 |
13,314 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,778 |
3,678 |
3,767 |
3,796 |
3,767 |
1.00 |
1.00 |
| configure.tcc |
no-host |
47 |
42 |
48 |
49 |
44 |
1.02 |
0.93 |
| configure.util-linux |
no-host |
12,767 |
13,600 |
12,850 |
12,919 |
12,560 |
1.01 |
0.98 |
| configure.yash |
no-host |
1,776 |
1,693 |
1,746 |
1,754 |
1,732 |
0.98 |
0.97 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.29 |
0.96 |
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,364 |
1,162 |
3,313 |
3,361 |
2,812 |
1.40 |
1.19 |
| bin-true |
no-host |
103,394 |
49,360 |
133,681 |
129,971 |
111,008 |
1.29 |
1.07 |
| configure.cpython |
no-host |
1,625,976 |
1,640,753 |
1,585,466 |
1,598,044 |
1,522,036 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
298,541 |
280,671 |
305,819 |
306,604 |
300,369 |
1.02 |
1.01 |
| configure.tcc |
no-host |
5,219 |
4,224 |
5,590 |
5,668 |
5,130 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,539,756 |
1,699,485 |
1,501,212 |
1,520,872 |
1,466,169 |
0.97 |
0.95 |
| configure.yash |
no-host |
173,278 |
159,482 |
176,810 |
177,336 |
173,138 |
1.02 |
1.00 |
| hello-world |
no-host |
152 |
86 |
391 |
400 |
182 |
2.57 |
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,898 |
3,898 |
0 |
716 |
1,918 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
812 |
1 |
2 |
3.5 |
8.7 |
151,883 |
10,752 |
2,966 |
14,775 |
72,392 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,807 |
1 |
69 |
14.8 |
34.4 |
1,750,745 |
35,380 |
28,937 |
93,071 |
869,709 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,850 |
3 |
69 |
21.6 |
39.9 |
2,705,281 |
37,452 |
66,325 |
119,739 |
1,291,804 |
1,293,738 |
32,527 |
42 |
132,650 |
1 |
| configure.ocaml |
no-host |
3,767 |
1 |
2 |
2.8 |
28.6 |
149,683 |
12,644 |
6,559 |
9,207 |
70,292 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.4 |
26.4 |
30,532 |
30,532 |
0 |
1,674 |
14,469 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,746 |
1 |
2 |
2.7 |
33.4 |
143,445 |
11,457 |
6,613 |
7,160 |
70,505 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
1 |
2 |
3.0 |
9.3 |
117,214 |
65,786 |
41,996 |
4,969 |
54,594 |
57,651 |
277 |
3 |
83,992 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.9 |
3,897 |
3,897 |
0 |
715 |
1,918 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
804 |
1 |
2 |
3.5 |
9.0 |
151,883 |
10,756 |
2,970 |
14,775 |
72,392 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,888 |
1 |
69 |
14.8 |
34.5 |
1,750,744 |
35,385 |
28,942 |
93,070 |
869,709 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,919 |
3 |
68 |
21.6 |
39.6 |
2,705,281 |
37,458 |
66,331 |
119,739 |
1,291,804 |
1,293,738 |
32,527 |
42 |
132,662 |
1 |
| configure.ocaml |
no-host |
3,796 |
1 |
2 |
2.8 |
28.9 |
149,683 |
12,649 |
6,564 |
9,207 |
70,292 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.4 |
26.2 |
30,532 |
30,532 |
0 |
1,674 |
14,469 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,754 |
1 |
2 |
2.7 |
33.3 |
143,445 |
11,461 |
6,617 |
7,160 |
70,505 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
10.0 |
117,214 |
65,790 |
42,000 |
4,969 |
54,594 |
57,651 |
277 |
3 |
84,000 |
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 |
6 |
10 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
4 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
12 |
9 |
9.3 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
13 |
10 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
13 |
7 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
622 |
315 |
348 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
444 |
277 |
173 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
812 |
318 |
514 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
804 |
312 |
511 |
9.0 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
662 |
338 |
343 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,147 |
7,692 |
6,854 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
14,183 |
7,725 |
6,877 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
13,807 |
7,288 |
6,805 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,888 |
7,358 |
6,820 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,314 |
7,436 |
6,127 |
34.7 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,778 |
1,546 |
1,273 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,678 |
1,473 |
1,229 |
28.8 |
dash |
| 20 |
no-host |
configure.ocaml |
3,767 |
1,519 |
1,289 |
28.6 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,796 |
1,518 |
1,319 |
28.9 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,767 |
1,540 |
1,259 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
47 |
25 |
23 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
22 |
20 |
26.0 |
dash |
| 21 |
no-host |
configure.tcc |
48 |
31 |
18 |
26.4 |
osh-native |
| 29 |
no-host |
configure.tcc |
49 |
27 |
22 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
24 |
21 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,767 |
6,695 |
6,553 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,600 |
6,586 |
7,521 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,850 |
6,305 |
6,773 |
39.9 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,919 |
6,400 |
6,754 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,560 |
6,373 |
6,409 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,776 |
1,025 |
760 |
33.2 |
bash |
| 14 |
no-host |
configure.yash |
1,693 |
964 |
731 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,746 |
979 |
770 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,754 |
946 |
811 |
33.3 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,732 |
975 |
761 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
2 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
6.9 |
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,364 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,162 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,313 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,361 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,812 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
103,394 |
0 |
0 |
0 |
8 |
0 |
1,992 |
58 |
bash |
| 9 |
no-host |
bin-true |
49,360 |
0 |
0 |
0 |
8 |
0 |
2,996 |
52 |
dash |
| 17 |
no-host |
bin-true |
133,681 |
0 |
0 |
0 |
16 |
0 |
1,997 |
52 |
osh-native |
| 25 |
no-host |
bin-true |
129,971 |
0 |
0 |
0 |
16 |
0 |
2,000 |
81 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,008 |
0 |
0 |
0 |
8 |
0 |
1,999 |
86 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,625,976 |
0 |
0 |
0 |
25,272 |
0 |
14,076 |
1,041 |
bash |
| 10 |
no-host |
configure.cpython |
1,640,753 |
0 |
0 |
0 |
25,272 |
0 |
14,124 |
986 |
dash |
| 18 |
no-host |
configure.cpython |
1,585,466 |
0 |
0 |
0 |
25,280 |
0 |
11,299 |
826 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,598,044 |
0 |
0 |
0 |
25,280 |
0 |
11,296 |
952 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,522,036 |
0 |
0 |
0 |
25,272 |
0 |
11,304 |
848 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,541 |
0 |
0 |
0 |
4,432 |
0 |
2,014 |
186 |
bash |
| 12 |
no-host |
configure.ocaml |
280,671 |
0 |
0 |
0 |
4,432 |
0 |
2,107 |
206 |
dash |
| 20 |
no-host |
configure.ocaml |
305,819 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
225 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,604 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
198 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,369 |
0 |
0 |
0 |
4,432 |
0 |
2,000 |
242 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,219 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,224 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,590 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,668 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,130 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,539,756 |
2 |
0 |
232 |
35,944 |
0 |
18,987 |
1,038 |
bash |
| 11 |
no-host |
configure.util-linux |
1,699,485 |
0 |
0 |
0 |
35,936 |
0 |
17,153 |
1,314 |
dash |
| 19 |
no-host |
configure.util-linux |
1,501,212 |
0 |
0 |
0 |
35,952 |
0 |
16,189 |
959 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,520,872 |
0 |
0 |
0 |
35,944 |
0 |
16,213 |
944 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,466,169 |
1 |
0 |
0 |
35,936 |
0 |
16,127 |
955 |
osh-static |
| 6 |
no-host |
configure.yash |
173,278 |
0 |
0 |
0 |
3,616 |
0 |
883 |
103 |
bash |
| 14 |
no-host |
configure.yash |
159,482 |
0 |
0 |
0 |
3,616 |
0 |
1,001 |
112 |
dash |
| 22 |
no-host |
configure.yash |
176,810 |
0 |
0 |
0 |
3,624 |
0 |
855 |
101 |
osh-native |
| 30 |
no-host |
configure.yash |
177,336 |
0 |
0 |
0 |
3,632 |
0 |
855 |
107 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,138 |
0 |
0 |
0 |
3,616 |
0 |
857 |
89 |
osh-static |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
86 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
391 |
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