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 |
472 |
22 |
21 |
24.28 |
1.15 |
| bin-true |
no-host |
682 |
546 |
2,327 |
829 |
814 |
3.41 |
1.21 |
| configure.cpython |
no-host |
15,308 |
15,355 |
29,351 |
15,537 |
15,614 |
1.92 |
1.01 |
| configure.ocaml |
no-host |
3,893 |
3,807 |
4,732 |
3,889 |
3,893 |
1.22 |
1.00 |
| configure.tcc |
no-host |
48 |
43 |
209 |
50 |
48 |
4.39 |
1.04 |
| configure.util-linux |
no-host |
14,268 |
15,131 |
32,287 |
14,760 |
14,640 |
2.26 |
1.03 |
| configure.yash |
no-host |
1,856 |
1,802 |
2,523 |
1,852 |
1,870 |
1.36 |
1.00 |
| hello-world |
no-host |
2 |
1 |
57 |
3 |
3 |
36.81 |
1.91 |
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,530 |
1,136 |
23,795 |
3,187 |
3,082 |
9.41 |
1.26 |
| bin-true |
no-host |
106,315 |
65,500 |
773,238 |
128,336 |
124,244 |
7.27 |
1.21 |
| configure.cpython |
no-host |
2,221,452 |
2,251,365 |
6,244,414 |
2,213,075 |
2,210,418 |
2.81 |
1.00 |
| configure.ocaml |
no-host |
410,586 |
390,936 |
647,605 |
413,366 |
412,401 |
1.58 |
1.01 |
| configure.tcc |
no-host |
6,563 |
5,486 |
24,113 |
6,966 |
6,891 |
3.67 |
1.06 |
| configure.util-linux |
no-host |
2,093,853 |
2,263,296 |
5,396,507 |
2,005,021 |
1,994,279 |
2.58 |
0.96 |
| configure.yash |
no-host |
256,055 |
244,584 |
389,516 |
257,901 |
257,629 |
1.52 |
1.01 |
| hello-world |
no-host |
154 |
81 |
3,938 |
344 |
338 |
25.57 |
2.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.2 |
6.3 |
3,783 |
3,783 |
0 |
694 |
1,859 |
1,230 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
829 |
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,537 |
1 |
63 |
14.9 |
27.5 |
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,760 |
3 |
62 |
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,889 |
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 |
50 |
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,852 |
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.2 |
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 |
814 |
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,614 |
1 |
62 |
14.9 |
27.3 |
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,640 |
5 |
65 |
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,893 |
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 |
48 |
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,870 |
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 |
10 |
10 |
4.3 |
bash |
| 15 |
no-host |
abuild-print-help |
10 |
5 |
5 |
3.5 |
dash |
| 23 |
no-host |
abuild-print-help |
472 |
415 |
60 |
22.8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
18 |
5 |
9.2 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
15 |
6 |
8.5 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
682 |
514 |
199 |
3.0 |
bash |
| 9 |
no-host |
bin-true |
546 |
434 |
121 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,327 |
1,468 |
1,122 |
18.4 |
osh-cpython |
| 25 |
no-host |
bin-true |
829 |
592 |
248 |
8.1 |
osh-native |
| 33 |
no-host |
bin-true |
814 |
586 |
242 |
7.6 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
15,308 |
9,205 |
6,508 |
27.4 |
bash |
| 10 |
no-host |
configure.cpython |
15,355 |
9,272 |
6,503 |
27.5 |
dash |
| 18 |
no-host |
configure.cpython |
29,351 |
17,855 |
13,413 |
27.3 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,537 |
9,221 |
6,588 |
27.5 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,614 |
9,087 |
6,640 |
27.3 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,893 |
1,677 |
1,223 |
20.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,807 |
1,574 |
1,251 |
20.6 |
dash |
| 20 |
no-host |
configure.ocaml |
4,732 |
2,246 |
1,700 |
20.4 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,889 |
1,650 |
1,279 |
20.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,893 |
1,605 |
1,319 |
20.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
48 |
34 |
14 |
19.3 |
bash |
| 13 |
no-host |
configure.tcc |
43 |
26 |
17 |
19.4 |
dash |
| 21 |
no-host |
configure.tcc |
209 |
146 |
65 |
19.1 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
50 |
27 |
23 |
19.4 |
osh-native |
| 37 |
no-host |
configure.tcc |
48 |
31 |
18 |
19.4 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
14,268 |
9,035 |
5,705 |
30.3 |
bash |
| 11 |
no-host |
configure.util-linux |
15,131 |
9,183 |
6,436 |
30.1 |
dash |
| 19 |
no-host |
configure.util-linux |
32,287 |
21,316 |
12,093 |
30.1 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,760 |
8,796 |
6,102 |
30.3 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,640 |
8,752 |
6,045 |
30.1 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,856 |
1,135 |
729 |
24.4 |
bash |
| 14 |
no-host |
configure.yash |
1,802 |
994 |
810 |
24.4 |
dash |
| 22 |
no-host |
configure.yash |
2,523 |
1,591 |
976 |
24.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,852 |
1,094 |
762 |
24.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,870 |
1,059 |
803 |
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 |
57 |
41 |
16 |
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.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,530 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,136 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
23,795 |
0 |
0 |
0 |
8 |
0 |
45 |
13 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,187 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,082 |
0 |
0 |
0 |
16 |
0 |
38 |
4 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
106,315 |
0 |
0 |
0 |
8 |
0 |
1,991 |
120 |
bash |
| 9 |
no-host |
bin-true |
65,500 |
0 |
0 |
0 |
8 |
0 |
1,988 |
43 |
dash |
| 17 |
no-host |
bin-true |
773,238 |
0 |
0 |
0 |
8 |
0 |
1,996 |
230 |
osh-cpython |
| 25 |
no-host |
bin-true |
128,336 |
0 |
0 |
0 |
16 |
0 |
1,993 |
106 |
osh-native |
| 33 |
no-host |
bin-true |
124,244 |
0 |
0 |
0 |
16 |
0 |
1,988 |
80 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
2,221,452 |
0 |
0 |
0 |
32,928 |
0 |
14,528 |
1,117 |
bash |
| 10 |
no-host |
configure.cpython |
2,251,365 |
0 |
0 |
0 |
32,992 |
0 |
14,575 |
919 |
dash |
| 18 |
no-host |
configure.cpython |
6,244,414 |
1 |
0 |
0 |
27,512 |
0 |
13,233 |
1,099 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,213,075 |
0 |
0 |
0 |
27,520 |
0 |
13,264 |
1,008 |
osh-native |
| 34 |
no-host |
configure.cpython |
2,210,418 |
0 |
0 |
0 |
27,520 |
0 |
13,309 |
1,016 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
410,586 |
0 |
0 |
0 |
5,120 |
0 |
1,951 |
178 |
bash |
| 12 |
no-host |
configure.ocaml |
390,936 |
0 |
0 |
0 |
5,112 |
0 |
1,896 |
135 |
dash |
| 20 |
no-host |
configure.ocaml |
647,605 |
0 |
0 |
0 |
5,112 |
0 |
1,852 |
203 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
413,366 |
0 |
0 |
0 |
5,120 |
0 |
1,925 |
165 |
osh-native |
| 36 |
no-host |
configure.ocaml |
412,401 |
0 |
0 |
0 |
5,120 |
0 |
1,932 |
167 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,563 |
0 |
0 |
0 |
104 |
0 |
48 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
5,486 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
dash |
| 21 |
no-host |
configure.tcc |
24,113 |
0 |
0 |
0 |
96 |
0 |
54 |
15 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,966 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,891 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
2,093,853 |
0 |
0 |
0 |
42,400 |
0 |
18,717 |
1,033 |
bash |
| 11 |
no-host |
configure.util-linux |
2,263,296 |
0 |
0 |
0 |
42,584 |
0 |
17,499 |
1,212 |
dash |
| 19 |
no-host |
configure.util-linux |
5,396,507 |
9 |
0 |
0 |
39,144 |
0 |
17,000 |
1,317 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
2,005,021 |
1 |
0 |
0 |
39,128 |
0 |
16,977 |
1,022 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,994,279 |
0 |
0 |
0 |
39,136 |
0 |
16,982 |
960 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
256,055 |
0 |
0 |
0 |
4,120 |
0 |
873 |
74 |
bash |
| 14 |
no-host |
configure.yash |
244,584 |
0 |
0 |
0 |
3,720 |
0 |
869 |
84 |
dash |
| 22 |
no-host |
configure.yash |
389,516 |
0 |
0 |
0 |
3,728 |
0 |
854 |
77 |
osh-cpython |
| 30 |
no-host |
configure.yash |
257,901 |
0 |
0 |
0 |
3,736 |
0 |
850 |
67 |
osh-native |
| 38 |
no-host |
configure.yash |
257,629 |
0 |
0 |
0 |
3,736 |
0 |
853 |
83 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
81 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,938 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
| 24 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
| 32 |
no-host |
hello-world |
338 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host