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 |
21 |
18 |
1.34 |
1.18 |
| bin-true |
no-host |
612 |
439 |
801 |
799 |
647 |
1.31 |
1.06 |
| configure.cpython |
no-host |
13,743 |
13,787 |
13,481 |
13,465 |
12,906 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,659 |
3,592 |
3,724 |
3,689 |
3,687 |
1.02 |
1.01 |
| configure.tcc |
no-host |
46 |
41 |
46 |
46 |
44 |
1.01 |
0.96 |
| configure.util-linux |
no-host |
12,540 |
13,251 |
12,534 |
12,588 |
12,112 |
1.00 |
0.97 |
| configure.yash |
no-host |
1,678 |
1,629 |
1,683 |
1,686 |
1,692 |
1.00 |
1.01 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.49 |
1.09 |
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,378 |
1,158 |
3,320 |
3,438 |
2,851 |
1.40 |
1.20 |
| bin-true |
no-host |
100,436 |
49,390 |
132,004 |
132,359 |
110,702 |
1.31 |
1.10 |
| configure.cpython |
no-host |
1,630,712 |
1,633,236 |
1,583,654 |
1,605,990 |
1,518,288 |
0.97 |
0.93 |
| configure.ocaml |
no-host |
299,128 |
280,725 |
306,529 |
306,921 |
300,033 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,236 |
4,235 |
5,608 |
5,704 |
5,135 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,541,379 |
1,698,037 |
1,516,317 |
1,513,496 |
1,477,205 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,357 |
159,542 |
176,340 |
177,175 |
172,767 |
1.02 |
1.00 |
| hello-world |
no-host |
148 |
86 |
392 |
404 |
182 |
2.65 |
1.23 |
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,915 |
3,915 |
0 |
723 |
1,921 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
801 |
1 |
2 |
3.5 |
8.8 |
151,900 |
10,763 |
2,977 |
14,782 |
72,395 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,481 |
2 |
65 |
14.8 |
34.4 |
1,750,827 |
35,398 |
28,953 |
93,078 |
869,762 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,534 |
3 |
64 |
21.6 |
39.7 |
2,705,393 |
37,470 |
66,341 |
119,746 |
1,291,872 |
1,293,775 |
32,527 |
42 |
132,682 |
1 |
| configure.ocaml |
no-host |
3,724 |
1 |
2 |
2.8 |
28.7 |
149,700 |
12,655 |
6,570 |
9,214 |
70,295 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
0 |
0 |
1.4 |
26.2 |
30,551 |
30,551 |
0 |
1,681 |
14,473 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,683 |
1 |
2 |
2.7 |
33.1 |
143,476 |
11,507 |
6,624 |
7,168 |
70,525 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
9.3 |
117,234 |
65,800 |
42,007 |
4,977 |
54,599 |
57,658 |
277 |
3 |
84,014 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
7.2 |
3,914 |
3,914 |
0 |
722 |
1,921 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
799 |
1 |
2 |
3.5 |
9.2 |
151,900 |
10,767 |
2,981 |
14,782 |
72,395 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,465 |
1 |
65 |
14.8 |
34.4 |
1,750,826 |
36,457 |
28,958 |
93,077 |
869,762 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,588 |
3 |
64 |
21.6 |
39.6 |
2,705,393 |
37,476 |
66,347 |
119,746 |
1,291,872 |
1,293,775 |
32,527 |
42 |
132,694 |
1 |
| configure.ocaml |
no-host |
3,689 |
1 |
2 |
2.8 |
28.7 |
149,700 |
12,660 |
6,575 |
9,214 |
70,295 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
0 |
0 |
1.4 |
26.2 |
30,551 |
30,551 |
0 |
1,681 |
14,473 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,686 |
1 |
2 |
2.7 |
33.3 |
143,476 |
11,511 |
6,628 |
7,168 |
70,525 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
10.1 |
117,234 |
65,804 |
42,011 |
4,977 |
54,599 |
57,658 |
277 |
3 |
84,022 |
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 |
9 |
7 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
3 |
6 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
12 |
9 |
9.3 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
9 |
13 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
14 |
5 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
612 |
315 |
334 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
439 |
270 |
175 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
801 |
311 |
507 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
799 |
313 |
506 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
647 |
308 |
354 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,743 |
7,617 |
6,504 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,787 |
7,559 |
6,627 |
34.3 |
dash |
| 18 |
no-host |
configure.cpython |
13,481 |
7,123 |
6,631 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,465 |
7,110 |
6,634 |
34.4 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,906 |
7,142 |
5,987 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,659 |
1,449 |
1,251 |
28.8 |
bash |
| 12 |
no-host |
configure.ocaml |
3,592 |
1,448 |
1,167 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,724 |
1,476 |
1,288 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,689 |
1,487 |
1,242 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,687 |
1,520 |
1,199 |
28.8 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
25 |
22 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
21 |
20 |
25.9 |
dash |
| 21 |
no-host |
configure.tcc |
46 |
21 |
25 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
46 |
23 |
24 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
29 |
15 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,540 |
6,645 |
6,357 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,251 |
6,539 |
7,196 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,534 |
6,194 |
6,559 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,588 |
6,215 |
6,592 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,112 |
6,196 |
6,126 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,678 |
923 |
764 |
33.2 |
bash |
| 14 |
no-host |
configure.yash |
1,629 |
908 |
723 |
33.1 |
dash |
| 22 |
no-host |
configure.yash |
1,683 |
934 |
752 |
33.1 |
osh-native |
| 30 |
no-host |
configure.yash |
1,686 |
936 |
753 |
33.3 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,692 |
984 |
710 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.1 |
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 |
7.2 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
0 |
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,378 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,158 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,320 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,438 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,851 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
100,436 |
0 |
0 |
0 |
8 |
0 |
1,996 |
59 |
bash |
| 9 |
no-host |
bin-true |
49,390 |
0 |
0 |
0 |
8 |
0 |
2,997 |
52 |
dash |
| 17 |
no-host |
bin-true |
132,004 |
0 |
0 |
0 |
16 |
0 |
1,999 |
84 |
osh-native |
| 25 |
no-host |
bin-true |
132,359 |
0 |
0 |
0 |
16 |
0 |
2,000 |
69 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
110,702 |
0 |
0 |
0 |
8 |
0 |
2,001 |
81 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,630,712 |
0 |
0 |
0 |
25,272 |
0 |
14,079 |
1,044 |
bash |
| 10 |
no-host |
configure.cpython |
1,633,236 |
0 |
0 |
0 |
25,272 |
0 |
14,114 |
1,019 |
dash |
| 18 |
no-host |
configure.cpython |
1,583,654 |
0 |
0 |
0 |
25,280 |
0 |
11,294 |
887 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,605,990 |
0 |
0 |
0 |
25,280 |
0 |
11,312 |
834 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,518,288 |
0 |
0 |
0 |
25,272 |
0 |
11,312 |
858 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,128 |
0 |
0 |
0 |
4,432 |
0 |
2,016 |
205 |
bash |
| 12 |
no-host |
configure.ocaml |
280,725 |
0 |
0 |
0 |
4,432 |
0 |
2,103 |
182 |
dash |
| 20 |
no-host |
configure.ocaml |
306,529 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
214 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,921 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
192 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,033 |
0 |
0 |
0 |
4,432 |
0 |
1,998 |
218 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,236 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,235 |
0 |
0 |
0 |
88 |
0 |
52 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
5,608 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,704 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,135 |
0 |
0 |
0 |
88 |
0 |
45 |
3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,541,379 |
1 |
0 |
0 |
35,944 |
0 |
18,941 |
1,037 |
bash |
| 11 |
no-host |
configure.util-linux |
1,698,037 |
3 |
0 |
0 |
35,936 |
0 |
17,071 |
1,159 |
dash |
| 19 |
no-host |
configure.util-linux |
1,516,317 |
0 |
0 |
0 |
35,952 |
0 |
16,116 |
915 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,513,496 |
0 |
0 |
0 |
35,944 |
0 |
16,196 |
924 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,477,205 |
1 |
0 |
0 |
35,936 |
0 |
16,218 |
881 |
osh-static |
| 6 |
no-host |
configure.yash |
173,357 |
0 |
0 |
0 |
3,616 |
0 |
878 |
104 |
bash |
| 14 |
no-host |
configure.yash |
159,542 |
0 |
0 |
0 |
3,624 |
0 |
998 |
92 |
dash |
| 22 |
no-host |
configure.yash |
176,340 |
0 |
0 |
0 |
3,624 |
0 |
856 |
100 |
osh-native |
| 30 |
no-host |
configure.yash |
177,175 |
0 |
0 |
0 |
3,624 |
0 |
857 |
95 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,767 |
0 |
0 |
0 |
3,616 |
0 |
860 |
108 |
osh-static |
| 0 |
no-host |
hello-world |
148 |
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 |
392 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
404 |
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