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 |
9 |
464 |
23 |
21 |
24.01 |
1.18 |
| bin-true |
no-host |
678 |
541 |
2,282 |
811 |
811 |
3.36 |
1.20 |
| configure.cpython |
no-host |
15,016 |
15,163 |
29,060 |
15,277 |
15,446 |
1.94 |
1.02 |
| configure.ocaml |
no-host |
3,848 |
3,742 |
4,754 |
3,828 |
3,850 |
1.24 |
0.99 |
| configure.tcc |
no-host |
48 |
41 |
205 |
49 |
48 |
4.25 |
1.02 |
| configure.util-linux |
no-host |
14,078 |
14,896 |
31,978 |
14,421 |
14,467 |
2.27 |
1.02 |
| configure.yash |
no-host |
1,840 |
1,782 |
2,494 |
1,860 |
1,847 |
1.36 |
1.01 |
| hello-world |
no-host |
1 |
1 |
57 |
3 |
3 |
37.89 |
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,576 |
1,099 |
23,674 |
3,171 |
3,105 |
9.19 |
1.23 |
| bin-true |
no-host |
106,344 |
65,347 |
765,526 |
125,245 |
123,269 |
7.20 |
1.18 |
| configure.cpython |
no-host |
2,218,909 |
2,235,972 |
6,231,836 |
2,211,764 |
2,214,232 |
2.81 |
1.00 |
| configure.ocaml |
no-host |
410,887 |
391,174 |
647,576 |
413,519 |
412,253 |
1.58 |
1.01 |
| configure.tcc |
no-host |
6,550 |
5,466 |
24,130 |
6,969 |
6,894 |
3.68 |
1.06 |
| configure.util-linux |
no-host |
2,098,894 |
2,257,680 |
5,405,480 |
2,001,492 |
1,994,362 |
2.58 |
0.95 |
| configure.yash |
no-host |
255,395 |
244,682 |
388,829 |
257,453 |
257,352 |
1.52 |
1.01 |
| hello-world |
no-host |
152 |
82 |
3,948 |
345 |
333 |
25.97 |
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 |
811 |
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,277 |
1 |
63 |
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,421 |
3 |
62 |
21.2 |
30.0 |
2,702,514 |
45,898 |
65,712 |
108,691 |
1,290,641 |
1,303,182 |
32,239 |
41 |
131,424 |
1 |
| configure.ocaml |
no-host |
3,828 |
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,860 |
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 |
8.9 |
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 |
811 |
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,446 |
1 |
61 |
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,467 |
3 |
62 |
21.2 |
30.0 |
2,702,514 |
53,694 |
65,650 |
108,693 |
1,290,641 |
1,303,180 |
32,239 |
41 |
131,300 |
1 |
| configure.ocaml |
no-host |
3,850 |
1 |
2 |
2.6 |
20.4 |
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,847 |
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.4 |
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 |
15 |
5 |
4.5 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
10 |
0 |
3.4 |
dash |
| 23 |
no-host |
abuild-print-help |
464 |
412 |
55 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
23 |
13 |
10 |
8.9 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
19 |
2 |
8.4 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
678 |
502 |
206 |
3.0 |
bash |
| 9 |
no-host |
bin-true |
541 |
414 |
136 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,282 |
1,490 |
1,054 |
18.4 |
osh-cpython |
| 25 |
no-host |
bin-true |
811 |
580 |
246 |
8.1 |
osh-native |
| 33 |
no-host |
bin-true |
811 |
580 |
245 |
7.6 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
15,016 |
9,059 |
6,356 |
27.4 |
bash |
| 10 |
no-host |
configure.cpython |
15,163 |
9,103 |
6,483 |
27.5 |
dash |
| 18 |
no-host |
configure.cpython |
29,060 |
18,090 |
12,847 |
27.5 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,277 |
9,101 |
6,438 |
27.4 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,446 |
8,914 |
6,625 |
27.3 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,848 |
1,613 |
1,275 |
20.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,742 |
1,543 |
1,219 |
20.6 |
dash |
| 20 |
no-host |
configure.ocaml |
4,754 |
2,339 |
1,629 |
20.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,828 |
1,619 |
1,248 |
20.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,850 |
1,687 |
1,198 |
20.4 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
48 |
31 |
18 |
19.3 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
22 |
19 |
19.3 |
dash |
| 21 |
no-host |
configure.tcc |
205 |
133 |
74 |
19.4 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
43 |
7 |
19.3 |
osh-native |
| 37 |
no-host |
configure.tcc |
48 |
27 |
22 |
19.4 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
14,078 |
8,795 |
5,754 |
30.3 |
bash |
| 11 |
no-host |
configure.util-linux |
14,896 |
9,177 |
6,218 |
30.3 |
dash |
| 19 |
no-host |
configure.util-linux |
31,978 |
21,186 |
11,899 |
30.1 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,421 |
8,729 |
5,885 |
30.0 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,467 |
8,782 |
5,884 |
30.0 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,840 |
1,026 |
823 |
24.4 |
bash |
| 14 |
no-host |
configure.yash |
1,782 |
1,037 |
749 |
24.5 |
dash |
| 22 |
no-host |
configure.yash |
2,494 |
1,547 |
990 |
24.2 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,860 |
1,066 |
798 |
24.2 |
osh-native |
| 38 |
no-host |
configure.yash |
1,847 |
1,125 |
726 |
24.2 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
2 |
0 |
2.9 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
57 |
40 |
16 |
18.0 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
3 |
0 |
6.3 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
0 |
3 |
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,576 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,099 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
23,674 |
0 |
0 |
0 |
8 |
0 |
45 |
7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,171 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
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 |
106,344 |
0 |
0 |
0 |
8 |
0 |
1,987 |
48 |
bash |
| 9 |
no-host |
bin-true |
65,347 |
0 |
0 |
0 |
8 |
0 |
1,986 |
36 |
dash |
| 17 |
no-host |
bin-true |
765,526 |
0 |
0 |
0 |
8 |
0 |
1,990 |
174 |
osh-cpython |
| 25 |
no-host |
bin-true |
125,245 |
0 |
0 |
0 |
16 |
0 |
1,990 |
43 |
osh-native |
| 33 |
no-host |
bin-true |
123,269 |
0 |
0 |
0 |
16 |
0 |
1,987 |
140 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
2,218,909 |
0 |
0 |
0 |
32,928 |
0 |
14,484 |
1,069 |
bash |
| 10 |
no-host |
configure.cpython |
2,235,972 |
1 |
0 |
0 |
32,992 |
0 |
14,633 |
898 |
dash |
| 18 |
no-host |
configure.cpython |
6,231,836 |
0 |
0 |
0 |
27,512 |
0 |
13,231 |
1,181 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,211,764 |
0 |
0 |
0 |
27,520 |
0 |
13,306 |
1,269 |
osh-native |
| 34 |
no-host |
configure.cpython |
2,214,232 |
0 |
0 |
0 |
27,520 |
0 |
13,208 |
932 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
410,887 |
0 |
0 |
0 |
5,120 |
0 |
1,946 |
227 |
bash |
| 12 |
no-host |
configure.ocaml |
391,174 |
0 |
0 |
0 |
5,112 |
0 |
1,931 |
135 |
dash |
| 20 |
no-host |
configure.ocaml |
647,576 |
0 |
0 |
0 |
5,112 |
0 |
1,855 |
166 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
413,519 |
0 |
0 |
0 |
5,120 |
0 |
1,929 |
181 |
osh-native |
| 36 |
no-host |
configure.ocaml |
412,253 |
0 |
0 |
0 |
5,120 |
0 |
1,935 |
226 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,550 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
5,466 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
24,130 |
0 |
0 |
0 |
96 |
0 |
53 |
5 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,969 |
0 |
0 |
0 |
104 |
0 |
47 |
0 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,894 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
2,098,894 |
1 |
0 |
0 |
42,400 |
0 |
18,573 |
1,078 |
bash |
| 11 |
no-host |
configure.util-linux |
2,257,680 |
0 |
0 |
0 |
42,584 |
0 |
17,404 |
1,050 |
dash |
| 19 |
no-host |
configure.util-linux |
5,405,480 |
12 |
0 |
0 |
39,152 |
0 |
16,988 |
1,093 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
2,001,492 |
1 |
0 |
0 |
39,120 |
0 |
17,078 |
962 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,994,362 |
0 |
0 |
0 |
39,128 |
0 |
16,951 |
894 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
255,395 |
0 |
0 |
0 |
4,120 |
0 |
870 |
71 |
bash |
| 14 |
no-host |
configure.yash |
244,682 |
0 |
0 |
0 |
3,720 |
0 |
869 |
75 |
dash |
| 22 |
no-host |
configure.yash |
388,829 |
0 |
0 |
0 |
3,728 |
0 |
852 |
99 |
osh-cpython |
| 30 |
no-host |
configure.yash |
257,453 |
0 |
0 |
0 |
3,736 |
0 |
845 |
88 |
osh-native |
| 38 |
no-host |
configure.yash |
257,352 |
0 |
0 |
0 |
3,736 |
0 |
847 |
62 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
82 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,948 |
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 |
333 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host