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 |
466 |
23 |
23 |
22.91 |
1.11 |
| bin-true |
no-host |
703 |
559 |
2,378 |
855 |
862 |
3.38 |
1.22 |
| configure.cpython |
no-host |
15,723 |
15,848 |
29,640 |
15,987 |
15,969 |
1.89 |
1.02 |
| configure.ocaml |
no-host |
3,956 |
3,827 |
4,788 |
3,940 |
3,918 |
1.21 |
1.00 |
| configure.tcc |
no-host |
49 |
42 |
210 |
53 |
50 |
4.26 |
1.07 |
| configure.util-linux |
no-host |
14,530 |
15,441 |
32,215 |
14,883 |
15,214 |
2.22 |
1.02 |
| configure.yash |
no-host |
1,898 |
1,814 |
2,529 |
1,893 |
1,901 |
1.33 |
1.00 |
| hello-world |
no-host |
2 |
1 |
57 |
3 |
3 |
37.76 |
1.85 |
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,542 |
1,114 |
23,669 |
3,201 |
3,061 |
9.31 |
1.26 |
| bin-true |
no-host |
106,336 |
66,467 |
773,323 |
125,311 |
125,264 |
7.27 |
1.18 |
| configure.cpython |
no-host |
2,214,038 |
2,242,692 |
6,235,500 |
2,215,226 |
2,218,403 |
2.82 |
1.00 |
| configure.ocaml |
no-host |
410,537 |
390,943 |
647,645 |
412,951 |
412,029 |
1.58 |
1.01 |
| configure.tcc |
no-host |
6,575 |
5,474 |
24,179 |
6,997 |
6,910 |
3.68 |
1.06 |
| configure.util-linux |
no-host |
2,091,780 |
2,264,568 |
5,410,992 |
1,991,061 |
1,996,150 |
2.59 |
0.95 |
| configure.yash |
no-host |
256,582 |
245,033 |
388,508 |
258,377 |
257,873 |
1.51 |
1.01 |
| hello-world |
no-host |
152 |
79 |
3,943 |
343 |
338 |
25.94 |
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 |
855 |
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,987 |
2 |
71 |
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,883 |
3 |
66 |
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,940 |
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 |
53 |
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,893 |
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.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 |
862 |
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,969 |
2 |
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 |
15,214 |
3 |
63 |
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,918 |
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 |
50 |
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,901 |
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.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 |
20 |
16 |
4 |
4.5 |
bash |
| 15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.5 |
dash |
| 23 |
no-host |
abuild-print-help |
466 |
421 |
48 |
22.6 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
23 |
15 |
8 |
9.2 |
osh-native |
| 39 |
no-host |
abuild-print-help |
23 |
15 |
9 |
8.5 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
703 |
517 |
218 |
3.0 |
bash |
| 9 |
no-host |
bin-true |
559 |
424 |
146 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,378 |
1,569 |
1,074 |
18.4 |
osh-cpython |
| 25 |
no-host |
bin-true |
855 |
594 |
275 |
8.0 |
osh-native |
| 33 |
no-host |
bin-true |
862 |
587 |
288 |
7.5 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
15,723 |
9,505 |
6,647 |
27.4 |
bash |
| 10 |
no-host |
configure.cpython |
15,848 |
9,508 |
6,794 |
27.4 |
dash |
| 18 |
no-host |
configure.cpython |
29,640 |
17,634 |
13,931 |
27.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,987 |
9,619 |
6,661 |
27.4 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,969 |
9,531 |
6,603 |
27.4 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,956 |
1,692 |
1,284 |
20.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,827 |
1,668 |
1,180 |
20.6 |
dash |
| 20 |
no-host |
configure.ocaml |
4,788 |
2,364 |
1,645 |
20.4 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,940 |
1,702 |
1,278 |
20.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,918 |
1,683 |
1,274 |
20.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
49 |
32 |
18 |
19.3 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
23 |
19 |
19.4 |
dash |
| 21 |
no-host |
configure.tcc |
210 |
147 |
67 |
19.4 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
53 |
25 |
28 |
19.3 |
osh-native |
| 37 |
no-host |
configure.tcc |
50 |
29 |
22 |
19.4 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
14,530 |
9,352 |
5,677 |
30.3 |
bash |
| 11 |
no-host |
configure.util-linux |
15,441 |
9,540 |
6,422 |
30.0 |
dash |
| 19 |
no-host |
configure.util-linux |
32,215 |
21,471 |
11,867 |
30.3 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,883 |
9,021 |
6,074 |
30.1 |
osh-native |
| 35 |
no-host |
configure.util-linux |
15,214 |
8,994 |
6,160 |
30.1 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,898 |
1,084 |
821 |
24.2 |
bash |
| 14 |
no-host |
configure.yash |
1,814 |
1,095 |
723 |
24.2 |
dash |
| 22 |
no-host |
configure.yash |
2,529 |
1,573 |
998 |
24.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,893 |
1,089 |
809 |
24.2 |
osh-native |
| 38 |
no-host |
configure.yash |
1,901 |
1,047 |
858 |
24.4 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
57 |
45 |
12 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
3 |
0 |
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,542 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
| 15 |
no-host |
abuild-print-help |
1,114 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
23,669 |
0 |
0 |
0 |
8 |
0 |
45 |
10 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,201 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,061 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
106,336 |
0 |
0 |
0 |
8 |
0 |
2,000 |
228 |
bash |
| 9 |
no-host |
bin-true |
66,467 |
0 |
0 |
0 |
8 |
0 |
1,990 |
38 |
dash |
| 17 |
no-host |
bin-true |
773,323 |
0 |
0 |
0 |
8 |
0 |
1,990 |
282 |
osh-cpython |
| 25 |
no-host |
bin-true |
125,311 |
0 |
0 |
0 |
16 |
0 |
1,993 |
64 |
osh-native |
| 33 |
no-host |
bin-true |
125,264 |
0 |
0 |
0 |
16 |
0 |
1,987 |
229 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
2,214,038 |
0 |
0 |
0 |
32,928 |
0 |
14,498 |
1,247 |
bash |
| 10 |
no-host |
configure.cpython |
2,242,692 |
0 |
0 |
0 |
32,992 |
0 |
14,685 |
962 |
dash |
| 18 |
no-host |
configure.cpython |
6,235,500 |
1 |
0 |
0 |
27,512 |
0 |
13,303 |
1,135 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,215,226 |
1 |
0 |
0 |
27,520 |
0 |
13,332 |
1,091 |
osh-native |
| 34 |
no-host |
configure.cpython |
2,218,403 |
0 |
0 |
0 |
27,520 |
0 |
13,295 |
1,034 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
410,537 |
0 |
0 |
0 |
5,120 |
0 |
1,951 |
146 |
bash |
| 12 |
no-host |
configure.ocaml |
390,943 |
0 |
0 |
0 |
5,112 |
0 |
1,913 |
145 |
dash |
| 20 |
no-host |
configure.ocaml |
647,645 |
0 |
0 |
0 |
5,112 |
0 |
1,879 |
188 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
412,951 |
0 |
0 |
0 |
5,120 |
0 |
1,935 |
167 |
osh-native |
| 36 |
no-host |
configure.ocaml |
412,029 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
164 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,575 |
0 |
0 |
0 |
104 |
0 |
48 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
5,474 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
24,179 |
0 |
0 |
0 |
96 |
0 |
53 |
11 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,997 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,910 |
0 |
0 |
0 |
104 |
0 |
47 |
0 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
2,091,780 |
0 |
0 |
0 |
42,408 |
0 |
18,546 |
1,127 |
bash |
| 11 |
no-host |
configure.util-linux |
2,264,568 |
2 |
0 |
0 |
42,592 |
0 |
17,471 |
1,044 |
dash |
| 19 |
no-host |
configure.util-linux |
5,410,992 |
12 |
0 |
0 |
39,136 |
0 |
16,986 |
1,375 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,991,061 |
0 |
0 |
0 |
39,128 |
0 |
16,961 |
981 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,996,150 |
3 |
0 |
0 |
39,136 |
0 |
17,058 |
923 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
256,582 |
0 |
0 |
0 |
4,120 |
0 |
871 |
85 |
bash |
| 14 |
no-host |
configure.yash |
245,033 |
0 |
0 |
0 |
3,720 |
0 |
866 |
88 |
dash |
| 22 |
no-host |
configure.yash |
388,508 |
0 |
0 |
0 |
3,728 |
0 |
856 |
77 |
osh-cpython |
| 30 |
no-host |
configure.yash |
258,377 |
0 |
0 |
0 |
3,736 |
0 |
849 |
80 |
osh-native |
| 38 |
no-host |
configure.yash |
257,873 |
0 |
0 |
0 |
3,736 |
0 |
850 |
94 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
79 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,943 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
| 24 |
no-host |
hello-world |
343 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
338 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native-souffle |
Shell and Host