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 |
19 |
10 |
473 |
23 |
21 |
24.41 |
1.17 |
| bin-true |
no-host |
684 |
548 |
2,330 |
813 |
812 |
3.40 |
1.19 |
| configure.cpython |
no-host |
15,271 |
15,250 |
29,262 |
15,550 |
15,906 |
1.92 |
1.02 |
| configure.ocaml |
no-host |
3,861 |
3,788 |
4,712 |
3,859 |
3,873 |
1.22 |
1.00 |
| configure.tcc |
no-host |
48 |
42 |
204 |
48 |
49 |
4.23 |
1.00 |
| configure.util-linux |
no-host |
14,151 |
15,114 |
32,026 |
14,766 |
14,560 |
2.26 |
1.04 |
| configure.yash |
no-host |
1,849 |
1,785 |
2,516 |
1,867 |
1,854 |
1.36 |
1.01 |
| hello-world |
no-host |
2 |
1 |
59 |
3 |
3 |
33.59 |
1.60 |
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,561 |
1,121 |
23,682 |
3,172 |
3,105 |
9.25 |
1.24 |
| bin-true |
no-host |
107,375 |
66,456 |
769,294 |
126,292 |
125,257 |
7.16 |
1.18 |
| configure.cpython |
no-host |
2,219,674 |
2,245,750 |
6,223,947 |
2,220,340 |
2,218,272 |
2.80 |
1.00 |
| configure.ocaml |
no-host |
410,720 |
390,464 |
646,374 |
412,739 |
412,818 |
1.57 |
1.00 |
| configure.tcc |
no-host |
6,557 |
5,468 |
24,091 |
6,952 |
6,871 |
3.67 |
1.06 |
| configure.util-linux |
no-host |
2,094,342 |
2,258,823 |
5,389,822 |
1,996,362 |
1,987,039 |
2.57 |
0.95 |
| configure.yash |
no-host |
256,067 |
244,978 |
389,265 |
258,481 |
257,143 |
1.52 |
1.01 |
| hello-world |
no-host |
152 |
83 |
3,934 |
345 |
336 |
25.88 |
2.27 |
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.3 |
3,783 |
3,783 |
0 |
694 |
1,859 |
1,230 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
813 |
1 |
2 |
2.6 |
8.0 |
153,747 |
12,268 |
2,888 |
8,743 |
76,323 |
68,681 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,550 |
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,766 |
3 |
64 |
21.2 |
30.3 |
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,859 |
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 |
48 |
0 |
0 |
1.3 |
19.4 |
30,587 |
30,587 |
0 |
1,518 |
14,642 |
14,427 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,867 |
1 |
2 |
2.5 |
24.2 |
139,413 |
8,025 |
6,687 |
5,989 |
67,943 |
65,481 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
23 |
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.8 |
3,782 |
3,782 |
0 |
695 |
1,859 |
1,228 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
812 |
1 |
2 |
2.6 |
7.5 |
153,746 |
12,112 |
2,826 |
8,744 |
76,323 |
68,679 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,906 |
1 |
66 |
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,560 |
3 |
62 |
21.2 |
30.1 |
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,873 |
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,854 |
1 |
2 |
2.5 |
24.4 |
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.5 |
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 |
19 |
12 |
8 |
4.5 |
bash |
| 15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.5 |
dash |
| 23 |
no-host |
abuild-print-help |
473 |
424 |
53 |
22.6 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
23 |
14 |
10 |
9.0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
11 |
10 |
8.5 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
684 |
505 |
213 |
2.9 |
bash |
| 9 |
no-host |
bin-true |
548 |
428 |
128 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,330 |
1,573 |
1,018 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
813 |
578 |
250 |
8.0 |
osh-native |
| 33 |
no-host |
bin-true |
812 |
585 |
243 |
7.5 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
15,271 |
9,140 |
6,542 |
27.4 |
bash |
| 10 |
no-host |
configure.cpython |
15,250 |
9,243 |
6,419 |
27.5 |
dash |
| 18 |
no-host |
configure.cpython |
29,262 |
17,851 |
13,318 |
27.3 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,550 |
9,172 |
6,653 |
27.4 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,906 |
9,099 |
6,895 |
27.4 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,861 |
1,625 |
1,276 |
20.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,788 |
1,620 |
1,187 |
20.9 |
dash |
| 20 |
no-host |
configure.ocaml |
4,712 |
2,210 |
1,717 |
20.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,859 |
1,725 |
1,174 |
20.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,873 |
1,672 |
1,238 |
20.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
48 |
26 |
22 |
19.4 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
28 |
14 |
19.3 |
dash |
| 21 |
no-host |
configure.tcc |
204 |
152 |
55 |
19.4 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
48 |
40 |
8 |
19.4 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
36 |
14 |
19.4 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
14,151 |
8,931 |
5,696 |
30.3 |
bash |
| 11 |
no-host |
configure.util-linux |
15,114 |
9,239 |
6,372 |
30.3 |
dash |
| 19 |
no-host |
configure.util-linux |
32,026 |
21,293 |
11,850 |
30.0 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,766 |
8,826 |
6,125 |
30.3 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,560 |
8,798 |
5,967 |
30.1 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,849 |
1,099 |
759 |
24.2 |
bash |
| 14 |
no-host |
configure.yash |
1,785 |
1,057 |
731 |
24.2 |
dash |
| 22 |
no-host |
configure.yash |
2,516 |
1,493 |
1,066 |
24.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,867 |
1,074 |
795 |
24.2 |
osh-native |
| 38 |
no-host |
configure.yash |
1,854 |
1,083 |
775 |
24.4 |
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 |
36 |
23 |
18.2 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
6.3 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
3 |
0 |
5.8 |
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,561 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,121 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
23,682 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,172 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,105 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
107,375 |
0 |
0 |
0 |
8 |
0 |
1,990 |
61 |
bash |
| 9 |
no-host |
bin-true |
66,456 |
0 |
0 |
0 |
8 |
0 |
1,989 |
61 |
dash |
| 17 |
no-host |
bin-true |
769,294 |
0 |
0 |
0 |
8 |
0 |
1,996 |
276 |
osh-cpython |
| 25 |
no-host |
bin-true |
126,292 |
0 |
0 |
0 |
16 |
0 |
1,987 |
49 |
osh-native |
| 33 |
no-host |
bin-true |
125,257 |
0 |
0 |
0 |
16 |
0 |
1,992 |
51 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
2,219,674 |
0 |
0 |
0 |
32,928 |
0 |
14,538 |
927 |
bash |
| 10 |
no-host |
configure.cpython |
2,245,750 |
1 |
0 |
0 |
32,992 |
0 |
14,556 |
1,011 |
dash |
| 18 |
no-host |
configure.cpython |
6,223,947 |
1 |
0 |
0 |
27,512 |
0 |
13,215 |
1,066 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,220,340 |
0 |
0 |
0 |
27,520 |
0 |
13,301 |
953 |
osh-native |
| 34 |
no-host |
configure.cpython |
2,218,272 |
0 |
0 |
0 |
27,520 |
0 |
13,231 |
980 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
410,720 |
0 |
0 |
0 |
5,120 |
0 |
1,942 |
157 |
bash |
| 12 |
no-host |
configure.ocaml |
390,464 |
0 |
0 |
0 |
5,112 |
0 |
1,882 |
153 |
dash |
| 20 |
no-host |
configure.ocaml |
646,374 |
0 |
0 |
0 |
5,112 |
0 |
1,852 |
163 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
412,739 |
0 |
0 |
0 |
5,120 |
0 |
1,929 |
166 |
osh-native |
| 36 |
no-host |
configure.ocaml |
412,818 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
165 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,557 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
5,468 |
0 |
0 |
0 |
96 |
0 |
46 |
4 |
dash |
| 21 |
no-host |
configure.tcc |
24,091 |
0 |
0 |
0 |
96 |
0 |
53 |
9 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,952 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,871 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
2,094,342 |
0 |
0 |
0 |
42,400 |
0 |
18,465 |
1,101 |
bash |
| 11 |
no-host |
configure.util-linux |
2,258,823 |
1 |
0 |
0 |
42,592 |
0 |
17,478 |
1,130 |
dash |
| 19 |
no-host |
configure.util-linux |
5,389,822 |
13 |
0 |
0 |
39,136 |
0 |
17,102 |
1,307 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,996,362 |
3 |
0 |
0 |
39,120 |
0 |
16,985 |
988 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,987,039 |
2 |
0 |
0 |
39,136 |
0 |
16,914 |
974 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
256,067 |
0 |
0 |
0 |
4,120 |
0 |
872 |
91 |
bash |
| 14 |
no-host |
configure.yash |
244,978 |
0 |
0 |
0 |
3,720 |
0 |
868 |
87 |
dash |
| 22 |
no-host |
configure.yash |
389,265 |
0 |
0 |
0 |
3,728 |
0 |
849 |
93 |
osh-cpython |
| 30 |
no-host |
configure.yash |
258,481 |
0 |
0 |
0 |
3,736 |
0 |
848 |
270 |
osh-native |
| 38 |
no-host |
configure.yash |
257,143 |
0 |
0 |
0 |
3,736 |
0 |
853 |
84 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
152 |
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,934 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
| 24 |
no-host |
hello-world |
345 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
336 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host