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.31 |
1.12 |
| bin-true |
no-host |
636 |
449 |
815 |
817 |
655 |
1.28 |
1.03 |
| configure.cpython |
no-host |
14,249 |
14,683 |
13,819 |
13,959 |
13,260 |
0.97 |
0.93 |
| configure.ocaml |
no-host |
3,753 |
3,719 |
3,812 |
3,703 |
3,685 |
1.02 |
0.98 |
| configure.tcc |
no-host |
47 |
44 |
51 |
48 |
44 |
1.09 |
0.93 |
| configure.util-linux |
no-host |
12,756 |
13,780 |
13,092 |
12,569 |
12,152 |
1.03 |
0.95 |
| configure.yash |
no-host |
1,739 |
1,687 |
1,754 |
1,716 |
1,698 |
1.01 |
0.98 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.52 |
1.07 |
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,410 |
1,178 |
3,289 |
3,414 |
2,825 |
1.36 |
1.17 |
| bin-true |
no-host |
103,484 |
49,376 |
133,287 |
133,111 |
112,086 |
1.29 |
1.08 |
| configure.cpython |
no-host |
1,628,350 |
1,638,377 |
1,578,436 |
1,596,675 |
1,512,089 |
0.97 |
0.93 |
| configure.ocaml |
no-host |
299,287 |
281,063 |
306,287 |
306,313 |
300,481 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,202 |
4,214 |
5,562 |
5,635 |
5,126 |
1.07 |
0.99 |
| configure.util-linux |
no-host |
1,540,952 |
1,696,726 |
1,498,535 |
1,516,450 |
1,470,178 |
0.97 |
0.95 |
| configure.yash |
no-host |
173,446 |
159,614 |
176,591 |
177,208 |
172,836 |
1.02 |
1.00 |
| hello-world |
no-host |
153 |
86 |
393 |
401 |
182 |
2.57 |
1.19 |
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 |
815 |
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,819 |
1 |
70 |
14.8 |
34.4 |
1,750,907 |
35,429 |
28,954 |
93,081 |
869,789 |
788,037 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,092 |
3 |
72 |
21.6 |
39.7 |
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,812 |
1 |
2 |
2.8 |
28.7 |
149,720 |
12,656 |
6,571 |
9,217 |
70,302 |
70,201 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
51 |
0 |
0 |
1.4 |
26.2 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,754 |
1 |
2 |
2.7 |
33.3 |
143,496 |
11,508 |
6,625 |
7,171 |
70,532 |
65,793 |
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 |
6.9 |
3,919 |
3,919 |
0 |
725 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
817 |
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,959 |
2 |
72 |
14.9 |
34.6 |
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,569 |
3 |
67 |
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,703 |
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 |
48 |
0 |
0 |
1.4 |
26.2 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,716 |
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.1 |
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 |
9 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
3 |
6 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
11 |
11 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
10 |
12 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
11 |
8 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
636 |
311 |
363 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
449 |
278 |
178 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
815 |
325 |
507 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
817 |
306 |
528 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
655 |
309 |
363 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,249 |
7,732 |
6,890 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,683 |
8,009 |
7,082 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,819 |
7,344 |
6,754 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,959 |
7,423 |
6,822 |
34.6 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,260 |
7,274 |
6,233 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,753 |
1,500 |
1,295 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,719 |
1,565 |
1,179 |
28.5 |
dash |
| 20 |
no-host |
configure.ocaml |
3,812 |
1,529 |
1,324 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,703 |
1,469 |
1,276 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,685 |
1,479 |
1,239 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
47 |
24 |
23 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
44 |
25 |
19 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
51 |
26 |
26 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
48 |
25 |
23 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
23 |
22 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,756 |
6,721 |
6,505 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,780 |
6,699 |
7,568 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
13,092 |
6,491 |
6,829 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,569 |
6,215 |
6,581 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,152 |
6,227 |
6,142 |
39.5 |
osh-static |
| 6 |
no-host |
configure.yash |
1,739 |
995 |
752 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,687 |
962 |
726 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,754 |
966 |
790 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,716 |
966 |
752 |
33.1 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,698 |
949 |
752 |
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 |
1 |
2 |
6.4 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
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,410 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,178 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,289 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,414 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,825 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
103,484 |
0 |
0 |
0 |
8 |
0 |
1,995 |
52 |
bash |
| 9 |
no-host |
bin-true |
49,376 |
0 |
0 |
0 |
8 |
0 |
2,994 |
47 |
dash |
| 17 |
no-host |
bin-true |
133,287 |
0 |
0 |
0 |
16 |
0 |
1,996 |
81 |
osh-native |
| 25 |
no-host |
bin-true |
133,111 |
0 |
0 |
0 |
16 |
0 |
1,997 |
101 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,086 |
0 |
0 |
0 |
8 |
0 |
1,998 |
83 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,628,350 |
0 |
0 |
0 |
25,296 |
0 |
14,091 |
1,016 |
bash |
| 10 |
no-host |
configure.cpython |
1,638,377 |
0 |
0 |
0 |
25,272 |
0 |
14,132 |
1,049 |
dash |
| 18 |
no-host |
configure.cpython |
1,578,436 |
0 |
0 |
0 |
25,280 |
0 |
11,289 |
840 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,596,675 |
0 |
0 |
0 |
25,280 |
0 |
11,295 |
963 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,512,089 |
0 |
0 |
0 |
25,272 |
0 |
11,295 |
841 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,287 |
0 |
0 |
0 |
4,432 |
0 |
2,016 |
203 |
bash |
| 12 |
no-host |
configure.ocaml |
281,063 |
0 |
0 |
0 |
4,432 |
0 |
2,100 |
203 |
dash |
| 20 |
no-host |
configure.ocaml |
306,287 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
229 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,313 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
181 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,481 |
0 |
0 |
0 |
4,432 |
0 |
1,998 |
209 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,202 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,214 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,562 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,635 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,126 |
0 |
0 |
0 |
88 |
0 |
45 |
3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,540,952 |
0 |
0 |
0 |
35,936 |
0 |
19,014 |
1,135 |
bash |
| 11 |
no-host |
configure.util-linux |
1,696,726 |
0 |
0 |
0 |
35,936 |
0 |
17,124 |
1,364 |
dash |
| 19 |
no-host |
configure.util-linux |
1,498,535 |
0 |
0 |
0 |
35,952 |
0 |
16,138 |
973 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,516,450 |
1 |
0 |
0 |
35,944 |
0 |
15,992 |
947 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,470,178 |
0 |
0 |
0 |
35,944 |
0 |
16,140 |
905 |
osh-static |
| 6 |
no-host |
configure.yash |
173,446 |
0 |
0 |
0 |
3,616 |
0 |
877 |
91 |
bash |
| 14 |
no-host |
configure.yash |
159,614 |
0 |
0 |
0 |
3,616 |
0 |
1,000 |
98 |
dash |
| 22 |
no-host |
configure.yash |
176,591 |
0 |
0 |
0 |
3,624 |
0 |
858 |
100 |
osh-native |
| 30 |
no-host |
configure.yash |
177,208 |
0 |
0 |
0 |
3,624 |
0 |
859 |
104 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,836 |
0 |
0 |
0 |
3,624 |
0 |
858 |
105 |
osh-static |
| 0 |
no-host |
hello-world |
153 |
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 |
393 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
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