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-cpython |
osh-native |
osh-native-souffle |
py bash ratio |
native bash ratio |
| abuild-print-help |
no-host |
20 |
10 |
471 |
22 |
21 |
24.12 |
1.14 |
| bin-true |
no-host |
683 |
545 |
2,321 |
827 |
815 |
3.40 |
1.21 |
| configure.cpython |
no-host |
15,385 |
15,473 |
29,649 |
15,565 |
15,738 |
1.93 |
1.01 |
| configure.ocaml |
no-host |
3,892 |
3,812 |
4,745 |
3,916 |
3,898 |
1.22 |
1.01 |
| configure.tcc |
no-host |
48 |
43 |
208 |
49 |
49 |
4.33 |
1.02 |
| configure.util-linux |
no-host |
14,298 |
15,225 |
32,208 |
14,710 |
14,598 |
2.25 |
1.03 |
| configure.yash |
no-host |
1,856 |
1,819 |
2,535 |
1,871 |
1,860 |
1.37 |
1.01 |
| hello-world |
no-host |
2 |
1 |
59 |
3 |
3 |
38.52 |
1.89 |
Minor Page Faults
| workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
osh-native-souffle |
py bash ratio |
native bash ratio |
| abuild-print-help |
no-host |
2,520 |
1,138 |
23,671 |
3,222 |
3,098 |
9.39 |
1.28 |
| bin-true |
no-host |
108,331 |
67,414 |
771,081 |
125,279 |
126,182 |
7.12 |
1.16 |
| configure.cpython |
no-host |
2,219,750 |
2,242,983 |
6,245,949 |
2,209,092 |
2,213,011 |
2.81 |
1.00 |
| configure.ocaml |
no-host |
410,557 |
390,737 |
647,625 |
413,222 |
412,779 |
1.58 |
1.01 |
| configure.tcc |
no-host |
6,553 |
5,475 |
24,133 |
6,943 |
6,920 |
3.68 |
1.06 |
| configure.util-linux |
no-host |
2,096,582 |
2,260,827 |
5,407,039 |
2,003,222 |
1,988,552 |
2.58 |
0.96 |
| configure.yash |
no-host |
256,383 |
244,924 |
388,090 |
258,185 |
258,147 |
1.51 |
1.01 |
| hello-world |
no-host |
151 |
83 |
3,958 |
344 |
338 |
26.21 |
2.28 |
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.2 |
6.0 |
3,783 |
3,783 |
0 |
694 |
1,859 |
1,230 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
827 |
1 |
2 |
2.6 |
8.1 |
153,747 |
12,268 |
2,888 |
8,743 |
76,323 |
68,681 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,565 |
1 |
66 |
14.9 |
27.4 |
1,771,748 |
49,126 |
28,513 |
85,415 |
878,116 |
808,217 |
25,733 |
60 |
50,000 |
0 |
| configure.util-linux |
no-host |
14,710 |
3 |
63 |
21.2 |
30.1 |
2,702,514 |
53,767 |
65,692 |
108,691 |
1,290,641 |
1,303,182 |
32,239 |
41 |
131,384 |
1 |
| configure.ocaml |
no-host |
3,916 |
1 |
2 |
2.6 |
20.6 |
150,081 |
11,113 |
5,208 |
7,508 |
70,970 |
71,603 |
1,695 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,587 |
30,587 |
0 |
1,518 |
14,642 |
14,427 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,871 |
1 |
2 |
2.5 |
24.4 |
139,413 |
8,025 |
6,687 |
5,989 |
67,943 |
65,481 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,293 |
64,404 |
42,614 |
4,532 |
54,437 |
57,324 |
277 |
3 |
85,228 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.9 |
3,782 |
3,782 |
0 |
695 |
1,859 |
1,228 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
815 |
1 |
2 |
2.6 |
7.6 |
153,746 |
12,112 |
2,826 |
8,744 |
76,323 |
68,679 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,738 |
2 |
64 |
14.9 |
27.4 |
1,771,747 |
49,064 |
28,451 |
85,416 |
878,116 |
808,215 |
25,733 |
60 |
50,000 |
0 |
| configure.util-linux |
no-host |
14,598 |
3 |
62 |
21.2 |
30.3 |
2,702,514 |
53,694 |
65,630 |
108,693 |
1,290,641 |
1,303,180 |
32,239 |
41 |
131,260 |
1 |
| configure.ocaml |
no-host |
3,898 |
1 |
2 |
2.6 |
20.6 |
150,081 |
11,051 |
5,146 |
7,510 |
70,970 |
71,601 |
1,695 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,587 |
30,587 |
0 |
1,520 |
14,642 |
14,425 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,860 |
1 |
2 |
2.5 |
24.2 |
139,413 |
7,963 |
6,625 |
5,991 |
67,943 |
65,479 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.7 |
116,292 |
64,342 |
42,552 |
4,533 |
54,437 |
57,322 |
277 |
3 |
85,104 |
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 |
20 |
11 |
9 |
4.5 |
bash |
| 15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.5 |
dash |
| 23 |
no-host |
abuild-print-help |
471 |
430 |
44 |
22.6 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
14 |
8 |
9.0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
19 |
3 |
8.7 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
683 |
521 |
192 |
3.0 |
bash |
| 9 |
no-host |
bin-true |
545 |
417 |
140 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,321 |
1,507 |
1,078 |
18.5 |
osh-cpython |
| 25 |
no-host |
bin-true |
827 |
575 |
264 |
8.1 |
osh-native |
| 33 |
no-host |
bin-true |
815 |
585 |
247 |
7.6 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
15,385 |
9,303 |
6,490 |
27.5 |
bash |
| 10 |
no-host |
configure.cpython |
15,473 |
9,345 |
6,556 |
27.4 |
dash |
| 18 |
no-host |
configure.cpython |
29,649 |
17,791 |
13,784 |
27.3 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,565 |
9,117 |
6,721 |
27.4 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,738 |
9,266 |
6,598 |
27.4 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,892 |
1,623 |
1,289 |
20.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,812 |
1,638 |
1,194 |
20.6 |
dash |
| 20 |
no-host |
configure.ocaml |
4,745 |
2,288 |
1,669 |
20.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,916 |
1,693 |
1,259 |
20.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,898 |
1,613 |
1,322 |
20.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
48 |
18 |
30 |
19.3 |
bash |
| 13 |
no-host |
configure.tcc |
43 |
33 |
10 |
19.3 |
dash |
| 21 |
no-host |
configure.tcc |
208 |
165 |
46 |
19.3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
26 |
23 |
19.3 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
25 |
24 |
19.4 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
14,298 |
9,046 |
5,717 |
30.3 |
bash |
| 11 |
no-host |
configure.util-linux |
15,225 |
9,388 |
6,328 |
30.0 |
dash |
| 19 |
no-host |
configure.util-linux |
32,208 |
21,399 |
11,917 |
30.3 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,710 |
8,800 |
6,105 |
30.1 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,598 |
8,780 |
5,999 |
30.3 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,856 |
1,096 |
769 |
24.4 |
bash |
| 14 |
no-host |
configure.yash |
1,819 |
1,048 |
772 |
24.4 |
dash |
| 22 |
no-host |
configure.yash |
2,535 |
1,598 |
980 |
24.2 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,871 |
1,036 |
839 |
24.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,860 |
1,042 |
821 |
24.2 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
59 |
21 |
37 |
18.0 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
6.0 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
0 |
3 |
5.9 |
osh-native-souffle |
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,520 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,138 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
23,671 |
0 |
0 |
0 |
8 |
0 |
45 |
8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,222 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,098 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
108,331 |
0 |
0 |
0 |
8 |
0 |
1,989 |
43 |
bash |
| 9 |
no-host |
bin-true |
67,414 |
0 |
0 |
0 |
8 |
0 |
1,985 |
45 |
dash |
| 17 |
no-host |
bin-true |
771,081 |
0 |
0 |
0 |
8 |
0 |
1,998 |
85 |
osh-cpython |
| 25 |
no-host |
bin-true |
125,279 |
0 |
0 |
0 |
16 |
0 |
1,987 |
66 |
osh-native |
| 33 |
no-host |
bin-true |
126,182 |
0 |
0 |
0 |
16 |
0 |
1,987 |
47 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
2,219,750 |
0 |
0 |
0 |
32,928 |
0 |
14,424 |
1,076 |
bash |
| 10 |
no-host |
configure.cpython |
2,242,983 |
0 |
0 |
0 |
32,992 |
0 |
14,565 |
990 |
dash |
| 18 |
no-host |
configure.cpython |
6,245,949 |
0 |
0 |
0 |
27,512 |
0 |
13,257 |
1,105 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,209,092 |
0 |
0 |
0 |
27,520 |
0 |
13,240 |
1,007 |
osh-native |
| 34 |
no-host |
configure.cpython |
2,213,011 |
0 |
0 |
0 |
27,520 |
0 |
13,297 |
890 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
410,557 |
0 |
0 |
0 |
5,120 |
0 |
1,953 |
190 |
bash |
| 12 |
no-host |
configure.ocaml |
390,737 |
0 |
0 |
0 |
5,112 |
0 |
1,880 |
159 |
dash |
| 20 |
no-host |
configure.ocaml |
647,625 |
0 |
0 |
0 |
5,112 |
0 |
1,854 |
188 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
413,222 |
0 |
0 |
0 |
5,120 |
0 |
1,934 |
256 |
osh-native |
| 36 |
no-host |
configure.ocaml |
412,779 |
0 |
0 |
0 |
5,120 |
0 |
1,926 |
152 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,553 |
0 |
0 |
0 |
104 |
0 |
48 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
5,475 |
0 |
0 |
0 |
96 |
0 |
47 |
6 |
dash |
| 21 |
no-host |
configure.tcc |
24,133 |
0 |
0 |
0 |
96 |
0 |
53 |
9 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,943 |
0 |
0 |
0 |
104 |
0 |
47 |
0 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,920 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
2,096,582 |
2 |
0 |
0 |
42,400 |
0 |
18,562 |
1,032 |
bash |
| 11 |
no-host |
configure.util-linux |
2,260,827 |
0 |
0 |
0 |
42,584 |
0 |
17,201 |
1,137 |
dash |
| 19 |
no-host |
configure.util-linux |
5,407,039 |
7 |
0 |
0 |
39,136 |
0 |
16,956 |
1,255 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
2,003,222 |
0 |
0 |
0 |
39,128 |
0 |
16,964 |
959 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,988,552 |
1 |
0 |
0 |
39,136 |
0 |
16,979 |
892 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
256,383 |
0 |
0 |
0 |
4,120 |
0 |
869 |
82 |
bash |
| 14 |
no-host |
configure.yash |
244,924 |
0 |
0 |
0 |
3,720 |
0 |
870 |
97 |
dash |
| 22 |
no-host |
configure.yash |
388,090 |
0 |
0 |
0 |
3,728 |
0 |
852 |
81 |
osh-cpython |
| 30 |
no-host |
configure.yash |
258,185 |
0 |
0 |
0 |
3,736 |
0 |
849 |
78 |
osh-native |
| 38 |
no-host |
configure.yash |
258,147 |
0 |
0 |
0 |
3,736 |
0 |
850 |
71 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
83 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,958 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
| 24 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
338 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host