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 |
474 |
22 |
23 |
24.36 |
1.14 |
| bin-true |
no-host |
688 |
556 |
2,359 |
821 |
815 |
3.43 |
1.19 |
| configure.cpython |
no-host |
15,575 |
15,728 |
30,203 |
15,958 |
16,063 |
1.94 |
1.02 |
| configure.ocaml |
no-host |
3,930 |
3,850 |
4,829 |
3,957 |
3,942 |
1.23 |
1.01 |
| configure.tcc |
no-host |
49 |
43 |
214 |
50 |
49 |
4.35 |
1.02 |
| configure.util-linux |
no-host |
14,588 |
15,486 |
32,987 |
15,046 |
14,905 |
2.26 |
1.03 |
| configure.yash |
no-host |
1,885 |
1,837 |
2,576 |
1,901 |
1,905 |
1.37 |
1.01 |
| hello-world |
no-host |
2 |
1 |
61 |
3 |
3 |
37.85 |
1.81 |
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,120 |
23,834 |
3,192 |
3,137 |
9.42 |
1.26 |
| bin-true |
no-host |
105,313 |
66,464 |
777,716 |
124,155 |
125,227 |
7.38 |
1.18 |
| configure.cpython |
no-host |
2,222,086 |
2,245,224 |
6,258,925 |
2,221,418 |
2,220,452 |
2.82 |
1.00 |
| configure.ocaml |
no-host |
410,862 |
391,356 |
647,855 |
413,254 |
412,268 |
1.58 |
1.01 |
| configure.tcc |
no-host |
6,550 |
5,479 |
24,086 |
6,935 |
6,906 |
3.68 |
1.06 |
| configure.util-linux |
no-host |
2,093,734 |
2,266,180 |
5,385,803 |
1,991,095 |
1,990,865 |
2.57 |
0.95 |
| configure.yash |
no-host |
256,643 |
244,512 |
389,059 |
257,956 |
258,109 |
1.52 |
1.01 |
| hello-world |
no-host |
152 |
85 |
3,940 |
344 |
337 |
25.92 |
2.26 |
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 |
821 |
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,958 |
1 |
68 |
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 |
15,046 |
3 |
66 |
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,957 |
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.3 |
30,587 |
30,587 |
0 |
1,518 |
14,642 |
14,427 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,901 |
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.7 |
153,746 |
12,112 |
2,826 |
8,744 |
76,323 |
68,679 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
16,063 |
1 |
66 |
14.9 |
27.5 |
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,905 |
3 |
64 |
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,942 |
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.3 |
30,587 |
30,587 |
0 |
1,520 |
14,642 |
14,425 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,905 |
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 |
23 |
1 |
2 |
2.8 |
8.3 |
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 |
13 |
7 |
4.5 |
bash |
| 15 |
no-host |
abuild-print-help |
10 |
10 |
0 |
3.4 |
dash |
| 23 |
no-host |
abuild-print-help |
474 |
416 |
60 |
22.8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
11 |
12 |
9.0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
23 |
15 |
8 |
8.3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
688 |
531 |
188 |
2.9 |
bash |
| 9 |
no-host |
bin-true |
556 |
416 |
146 |
1.3 |
dash |
| 17 |
no-host |
bin-true |
2,359 |
1,491 |
1,141 |
18.4 |
osh-cpython |
| 25 |
no-host |
bin-true |
821 |
592 |
245 |
8.1 |
osh-native |
| 33 |
no-host |
bin-true |
815 |
577 |
256 |
7.7 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
15,575 |
9,404 |
6,583 |
27.4 |
bash |
| 10 |
no-host |
configure.cpython |
15,728 |
9,320 |
6,831 |
27.4 |
dash |
| 18 |
no-host |
configure.cpython |
30,203 |
18,072 |
14,129 |
27.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,958 |
9,516 |
6,724 |
27.4 |
osh-native |
| 34 |
no-host |
configure.cpython |
16,063 |
9,164 |
7,031 |
27.5 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,930 |
1,674 |
1,295 |
20.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,850 |
1,670 |
1,198 |
20.6 |
dash |
| 20 |
no-host |
configure.ocaml |
4,829 |
2,337 |
1,712 |
20.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,957 |
1,664 |
1,331 |
20.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,942 |
1,621 |
1,357 |
20.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
49 |
28 |
21 |
19.3 |
bash |
| 13 |
no-host |
configure.tcc |
43 |
26 |
17 |
19.4 |
dash |
| 21 |
no-host |
configure.tcc |
214 |
146 |
72 |
19.4 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
50 |
30 |
20 |
19.3 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
20 |
30 |
19.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
14,588 |
9,042 |
6,026 |
30.1 |
bash |
| 11 |
no-host |
configure.util-linux |
15,486 |
9,434 |
6,548 |
30.0 |
dash |
| 19 |
no-host |
configure.util-linux |
32,987 |
21,803 |
12,344 |
30.1 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
15,046 |
8,989 |
6,254 |
30.3 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,905 |
8,889 |
6,213 |
30.1 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,885 |
1,112 |
782 |
24.4 |
bash |
| 14 |
no-host |
configure.yash |
1,837 |
1,095 |
745 |
24.2 |
dash |
| 22 |
no-host |
configure.yash |
2,576 |
1,660 |
961 |
24.5 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,901 |
1,112 |
793 |
24.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,905 |
1,069 |
840 |
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.6 |
dash |
| 16 |
no-host |
hello-world |
61 |
30 |
30 |
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 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,120 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
23,834 |
0 |
0 |
0 |
8 |
0 |
45 |
12 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,192 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,137 |
0 |
0 |
0 |
16 |
0 |
39 |
4 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
105,313 |
0 |
0 |
0 |
8 |
0 |
1,989 |
60 |
bash |
| 9 |
no-host |
bin-true |
66,464 |
0 |
0 |
0 |
8 |
0 |
1,982 |
58 |
dash |
| 17 |
no-host |
bin-true |
777,716 |
0 |
0 |
0 |
8 |
0 |
1,999 |
307 |
osh-cpython |
| 25 |
no-host |
bin-true |
124,155 |
0 |
0 |
0 |
16 |
0 |
1,988 |
58 |
osh-native |
| 33 |
no-host |
bin-true |
125,227 |
0 |
0 |
0 |
16 |
0 |
1,990 |
89 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
2,222,086 |
0 |
0 |
0 |
32,928 |
0 |
14,541 |
926 |
bash |
| 10 |
no-host |
configure.cpython |
2,245,224 |
0 |
0 |
0 |
32,992 |
0 |
14,529 |
973 |
dash |
| 18 |
no-host |
configure.cpython |
6,258,925 |
0 |
0 |
0 |
27,512 |
0 |
13,274 |
1,233 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,221,418 |
0 |
0 |
0 |
27,520 |
0 |
13,272 |
1,135 |
osh-native |
| 34 |
no-host |
configure.cpython |
2,220,452 |
1 |
0 |
0 |
27,520 |
0 |
13,171 |
871 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
410,862 |
0 |
0 |
0 |
5,120 |
0 |
1,949 |
163 |
bash |
| 12 |
no-host |
configure.ocaml |
391,356 |
0 |
0 |
0 |
5,112 |
0 |
1,883 |
136 |
dash |
| 20 |
no-host |
configure.ocaml |
647,855 |
0 |
0 |
0 |
5,112 |
0 |
1,854 |
161 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
413,254 |
0 |
0 |
0 |
5,120 |
0 |
1,922 |
166 |
osh-native |
| 36 |
no-host |
configure.ocaml |
412,268 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
139 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,550 |
0 |
0 |
0 |
104 |
0 |
49 |
4 |
bash |
| 13 |
no-host |
configure.tcc |
5,479 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
24,086 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,935 |
0 |
0 |
0 |
104 |
0 |
46 |
5 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,906 |
0 |
0 |
0 |
104 |
0 |
46 |
2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
2,093,734 |
1 |
0 |
0 |
42,408 |
0 |
18,578 |
1,012 |
bash |
| 11 |
no-host |
configure.util-linux |
2,266,180 |
0 |
0 |
0 |
42,592 |
0 |
17,446 |
982 |
dash |
| 19 |
no-host |
configure.util-linux |
5,385,803 |
10 |
0 |
0 |
39,144 |
0 |
17,012 |
1,132 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,991,095 |
2 |
0 |
0 |
39,128 |
0 |
16,988 |
962 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,990,865 |
0 |
0 |
0 |
39,136 |
0 |
16,937 |
1,093 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
256,643 |
0 |
0 |
0 |
4,120 |
0 |
869 |
82 |
bash |
| 14 |
no-host |
configure.yash |
244,512 |
0 |
0 |
0 |
3,720 |
0 |
870 |
69 |
dash |
| 22 |
no-host |
configure.yash |
389,059 |
0 |
0 |
0 |
3,728 |
0 |
849 |
97 |
osh-cpython |
| 30 |
no-host |
configure.yash |
257,956 |
0 |
0 |
0 |
3,736 |
0 |
847 |
70 |
osh-native |
| 38 |
no-host |
configure.yash |
258,109 |
0 |
0 |
0 |
3,736 |
0 |
850 |
80 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
85 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,940 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
| 24 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
337 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native-souffle |
Shell and Host