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 |
15 |
9 |
21 |
22 |
18 |
1.34 |
1.19 |
| bin-true |
no-host |
622 |
442 |
808 |
805 |
657 |
1.30 |
1.06 |
| configure.cpython |
no-host |
13,752 |
13,848 |
13,366 |
13,464 |
12,853 |
0.97 |
0.93 |
| configure.ocaml |
no-host |
3,656 |
3,583 |
3,690 |
3,681 |
3,639 |
1.01 |
1.00 |
| configure.tcc |
no-host |
46 |
41 |
47 |
47 |
43 |
1.01 |
0.92 |
| configure.util-linux |
no-host |
12,541 |
13,440 |
12,433 |
12,521 |
12,088 |
0.99 |
0.96 |
| configure.yash |
no-host |
1,690 |
1,654 |
1,703 |
1,709 |
1,662 |
1.01 |
0.98 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.38 |
1.04 |
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,372 |
1,178 |
3,282 |
3,432 |
2,834 |
1.38 |
1.19 |
| bin-true |
no-host |
101,450 |
49,435 |
133,249 |
133,033 |
112,078 |
1.31 |
1.10 |
| configure.cpython |
no-host |
1,625,546 |
1,638,829 |
1,590,143 |
1,611,496 |
1,518,392 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
298,777 |
280,879 |
306,859 |
306,492 |
299,922 |
1.03 |
1.00 |
| configure.tcc |
no-host |
5,205 |
4,225 |
5,601 |
5,661 |
5,123 |
1.08 |
0.98 |
| configure.util-linux |
no-host |
1,537,711 |
1,694,322 |
1,510,009 |
1,519,624 |
1,479,470 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,292 |
159,534 |
176,908 |
177,353 |
172,783 |
1.02 |
1.00 |
| hello-world |
no-host |
153 |
87 |
395 |
402 |
182 |
2.58 |
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.6 |
3,920 |
3,920 |
0 |
726 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
808 |
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,366 |
1 |
66 |
14.8 |
34.7 |
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,433 |
3 |
65 |
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,690 |
1 |
2 |
2.8 |
28.6 |
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.2 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,703 |
1 |
2 |
2.7 |
33.4 |
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 |
805 |
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,464 |
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,521 |
3 |
65 |
21.6 |
39.6 |
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,681 |
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 |
47 |
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,709 |
1 |
2 |
2.7 |
33.4 |
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 |
15 |
11 |
5 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
11 |
10 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
13 |
9 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
14 |
5 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
622 |
308 |
353 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
442 |
274 |
175 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
808 |
307 |
519 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
805 |
304 |
518 |
9.3 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
657 |
323 |
352 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,752 |
7,552 |
6,590 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
13,848 |
7,544 |
6,697 |
34.3 |
dash |
| 18 |
no-host |
configure.cpython |
13,366 |
7,134 |
6,513 |
34.7 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,464 |
7,133 |
6,622 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,853 |
7,184 |
5,905 |
34.4 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,656 |
1,471 |
1,225 |
28.5 |
bash |
| 12 |
no-host |
configure.ocaml |
3,583 |
1,520 |
1,087 |
28.8 |
dash |
| 20 |
no-host |
configure.ocaml |
3,690 |
1,454 |
1,271 |
28.6 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,681 |
1,464 |
1,257 |
28.5 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,639 |
1,463 |
1,207 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
22 |
25 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
25 |
17 |
26.4 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
24 |
23 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
25 |
23 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
26 |
18 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,541 |
6,528 |
6,463 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,440 |
6,522 |
7,414 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,433 |
6,130 |
6,528 |
39.5 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,521 |
6,151 |
6,597 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,088 |
6,077 |
6,233 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,690 |
937 |
757 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,654 |
955 |
701 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,703 |
967 |
738 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,709 |
952 |
760 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,662 |
971 |
694 |
33.3 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
2 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
7.1 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
1 |
1 |
3.3 |
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,372 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,178 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,282 |
0 |
0 |
0 |
16 |
0 |
40 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,432 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,834 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
101,450 |
0 |
0 |
0 |
8 |
0 |
2,000 |
46 |
bash |
| 9 |
no-host |
bin-true |
49,435 |
0 |
0 |
0 |
8 |
0 |
2,995 |
50 |
dash |
| 17 |
no-host |
bin-true |
133,249 |
0 |
0 |
0 |
16 |
0 |
1,998 |
77 |
osh-native |
| 25 |
no-host |
bin-true |
133,033 |
0 |
0 |
0 |
16 |
0 |
1,995 |
79 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,078 |
0 |
0 |
0 |
8 |
0 |
2,000 |
73 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,625,546 |
0 |
0 |
0 |
25,272 |
0 |
14,085 |
1,008 |
bash |
| 10 |
no-host |
configure.cpython |
1,638,829 |
0 |
0 |
0 |
25,272 |
0 |
14,128 |
991 |
dash |
| 18 |
no-host |
configure.cpython |
1,590,143 |
0 |
0 |
0 |
25,280 |
0 |
11,299 |
826 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,611,496 |
0 |
0 |
0 |
25,280 |
0 |
11,292 |
862 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,518,392 |
1 |
0 |
0 |
25,272 |
0 |
11,302 |
846 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,777 |
0 |
0 |
0 |
4,432 |
0 |
2,018 |
189 |
bash |
| 12 |
no-host |
configure.ocaml |
280,879 |
0 |
0 |
0 |
4,432 |
0 |
2,102 |
199 |
dash |
| 20 |
no-host |
configure.ocaml |
306,859 |
0 |
0 |
0 |
4,440 |
0 |
2,006 |
204 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,492 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
238 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
299,922 |
0 |
0 |
0 |
4,432 |
0 |
1,996 |
247 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,205 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,225 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,601 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,661 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,123 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,537,711 |
0 |
0 |
0 |
35,936 |
0 |
18,947 |
1,012 |
bash |
| 11 |
no-host |
configure.util-linux |
1,694,322 |
0 |
0 |
0 |
35,936 |
0 |
17,094 |
1,273 |
dash |
| 19 |
no-host |
configure.util-linux |
1,510,009 |
0 |
0 |
0 |
35,952 |
0 |
16,141 |
956 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,519,624 |
1 |
0 |
0 |
35,944 |
0 |
16,199 |
930 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,479,470 |
0 |
0 |
0 |
35,936 |
0 |
16,214 |
908 |
osh-static |
| 6 |
no-host |
configure.yash |
173,292 |
0 |
0 |
0 |
3,616 |
0 |
880 |
94 |
bash |
| 14 |
no-host |
configure.yash |
159,534 |
0 |
0 |
0 |
3,616 |
0 |
1,002 |
105 |
dash |
| 22 |
no-host |
configure.yash |
176,908 |
0 |
0 |
0 |
3,624 |
0 |
857 |
94 |
osh-native |
| 30 |
no-host |
configure.yash |
177,353 |
0 |
0 |
0 |
3,624 |
0 |
858 |
108 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,783 |
0 |
0 |
0 |
3,616 |
0 |
855 |
102 |
osh-static |
| 0 |
no-host |
hello-world |
153 |
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 |
395 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
402 |
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