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 |
21 |
9 |
478 |
23 |
23 |
22.85 |
1.11 |
bin-true |
no-host |
703 |
550 |
2,357 |
829 |
850 |
3.35 |
1.18 |
configure.cpython |
no-host |
15,872 |
16,409 |
31,741 |
16,519 |
16,691 |
2.00 |
1.04 |
configure.ocaml |
no-host |
4,051 |
3,854 |
5,017 |
4,069 |
4,077 |
1.24 |
1.00 |
configure.tcc |
no-host |
53 |
44 |
212 |
53 |
54 |
3.98 |
1.00 |
configure.util-linux |
no-host |
15,266 |
16,048 |
34,359 |
15,713 |
15,540 |
2.25 |
1.03 |
configure.yash |
no-host |
1,966 |
1,813 |
2,592 |
1,970 |
1,984 |
1.32 |
1.00 |
hello-world |
no-host |
2 |
1 |
57 |
3 |
3 |
34.20 |
1.84 |
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,532 |
1,106 |
23,677 |
3,178 |
3,085 |
9.35 |
1.26 |
bin-true |
no-host |
109,282 |
66,449 |
777,696 |
128,205 |
127,182 |
7.12 |
1.17 |
configure.cpython |
no-host |
2,218,853 |
2,247,615 |
6,206,090 |
2,211,376 |
2,204,159 |
2.80 |
1.00 |
configure.ocaml |
no-host |
410,841 |
390,166 |
647,409 |
412,855 |
412,705 |
1.58 |
1.00 |
configure.tcc |
no-host |
6,537 |
5,490 |
24,074 |
6,967 |
6,922 |
3.68 |
1.07 |
configure.util-linux |
no-host |
2,102,976 |
2,264,539 |
5,393,076 |
1,996,947 |
1,990,488 |
2.56 |
0.95 |
configure.yash |
no-host |
256,168 |
244,051 |
389,111 |
258,135 |
257,533 |
1.52 |
1.01 |
hello-world |
no-host |
154 |
83 |
3,945 |
342 |
336 |
25.62 |
2.22 |
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,782 |
3,782 |
0 |
694 |
1,858 |
1,230 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
829 |
1 |
2 |
2.6 |
8.0 |
153,746 |
12,267 |
2,887 |
8,743 |
76,322 |
68,681 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
16,519 |
2 |
76 |
14.9 |
27.4 |
1,771,747 |
49,125 |
28,512 |
85,415 |
878,115 |
808,217 |
25,733 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
15,713 |
3 |
74 |
21.2 |
30.1 |
2,702,622 |
53,766 |
65,691 |
108,721 |
1,290,676 |
1,303,225 |
32,242 |
41 |
131,382 |
1 |
configure.ocaml |
no-host |
4,069 |
1 |
2 |
2.6 |
20.6 |
150,080 |
11,112 |
5,207 |
7,508 |
70,969 |
71,603 |
1,695 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
53 |
0 |
0 |
1.3 |
19.4 |
30,586 |
30,586 |
0 |
1,518 |
14,641 |
14,427 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,970 |
1 |
2 |
2.5 |
24.4 |
139,412 |
8,024 |
6,686 |
5,989 |
67,942 |
65,481 |
2,095 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.9 |
116,292 |
64,403 |
42,613 |
4,532 |
54,436 |
57,324 |
277 |
3 |
85,226 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.8 |
3,781 |
3,781 |
0 |
695 |
1,858 |
1,228 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
850 |
1 |
2 |
2.6 |
7.5 |
153,745 |
12,111 |
2,825 |
8,744 |
76,322 |
68,679 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
16,691 |
2 |
74 |
14.9 |
27.4 |
1,771,746 |
44,577 |
28,450 |
85,416 |
878,115 |
808,215 |
25,733 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
15,540 |
3 |
72 |
21.2 |
30.0 |
2,702,622 |
53,693 |
65,629 |
108,723 |
1,290,676 |
1,303,223 |
32,242 |
41 |
131,258 |
1 |
configure.ocaml |
no-host |
4,077 |
1 |
2 |
2.6 |
20.6 |
150,080 |
11,050 |
5,145 |
7,510 |
70,969 |
71,601 |
1,695 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
54 |
0 |
0 |
1.3 |
19.4 |
30,586 |
30,586 |
0 |
1,520 |
14,641 |
14,425 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,984 |
1 |
2 |
2.5 |
24.4 |
139,412 |
7,962 |
6,624 |
5,991 |
67,942 |
65,479 |
2,095 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.8 |
116,291 |
64,341 |
42,551 |
4,533 |
54,436 |
57,322 |
277 |
3 |
85,102 |
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 |
21 |
20 |
2 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
478 |
429 |
52 |
22.7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
10 |
13 |
8.9 |
osh-native |
39 |
no-host |
abuild-print-help |
23 |
12 |
11 |
8.8 |
osh-native-souffle |
1 |
no-host |
bin-true |
703 |
526 |
209 |
2.9 |
bash |
9 |
no-host |
bin-true |
550 |
420 |
139 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,357 |
1,516 |
1,108 |
18.4 |
osh-cpython |
25 |
no-host |
bin-true |
829 |
560 |
282 |
8.0 |
osh-native |
33 |
no-host |
bin-true |
850 |
611 |
252 |
7.5 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,872 |
9,563 |
6,727 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
16,409 |
9,904 |
6,956 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
31,741 |
18,980 |
14,852 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
16,519 |
9,825 |
6,972 |
27.4 |
osh-native |
34 |
no-host |
configure.cpython |
16,691 |
9,484 |
7,276 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
4,051 |
1,804 |
1,287 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,854 |
1,575 |
1,300 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
5,017 |
2,439 |
1,805 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
4,069 |
1,673 |
1,436 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
4,077 |
1,747 |
1,370 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
53 |
31 |
22 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
44 |
24 |
20 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
212 |
165 |
50 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
53 |
27 |
26 |
19.4 |
osh-native |
37 |
no-host |
configure.tcc |
54 |
25 |
30 |
19.4 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
15,266 |
9,517 |
6,245 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
16,048 |
9,779 |
6,777 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
34,359 |
23,002 |
12,575 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
15,713 |
9,442 |
6,469 |
30.1 |
osh-native |
35 |
no-host |
configure.util-linux |
15,540 |
9,217 |
6,517 |
30.0 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,966 |
1,135 |
838 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,813 |
1,042 |
774 |
24.5 |
dash |
22 |
no-host |
configure.yash |
2,592 |
1,630 |
1,007 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,970 |
1,123 |
851 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,984 |
1,187 |
801 |
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 |
57 |
37 |
20 |
18.2 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
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,532 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,106 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,677 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,178 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
39 |
no-host |
abuild-print-help |
3,085 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native-souffle |
1 |
no-host |
bin-true |
109,282 |
0 |
0 |
0 |
8 |
0 |
1,991 |
48 |
bash |
9 |
no-host |
bin-true |
66,449 |
0 |
0 |
0 |
8 |
0 |
1,985 |
39 |
dash |
17 |
no-host |
bin-true |
777,696 |
0 |
0 |
0 |
8 |
0 |
1,999 |
93 |
osh-cpython |
25 |
no-host |
bin-true |
128,205 |
0 |
0 |
0 |
16 |
0 |
1,988 |
57 |
osh-native |
33 |
no-host |
bin-true |
127,182 |
0 |
0 |
0 |
16 |
0 |
1,988 |
144 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,218,853 |
0 |
0 |
0 |
32,928 |
0 |
14,507 |
937 |
bash |
10 |
no-host |
configure.cpython |
2,247,615 |
0 |
0 |
0 |
32,992 |
0 |
14,607 |
931 |
dash |
18 |
no-host |
configure.cpython |
6,206,090 |
0 |
0 |
0 |
27,528 |
0 |
13,268 |
1,029 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,211,376 |
0 |
0 |
0 |
27,520 |
0 |
13,285 |
845 |
osh-native |
34 |
no-host |
configure.cpython |
2,204,159 |
0 |
0 |
0 |
27,520 |
0 |
13,233 |
873 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,841 |
0 |
0 |
0 |
5,120 |
0 |
1,944 |
146 |
bash |
12 |
no-host |
configure.ocaml |
390,166 |
0 |
0 |
0 |
5,112 |
0 |
1,914 |
135 |
dash |
20 |
no-host |
configure.ocaml |
647,409 |
0 |
0 |
0 |
5,112 |
0 |
1,863 |
171 |
osh-cpython |
28 |
no-host |
configure.ocaml |
412,855 |
0 |
0 |
0 |
5,120 |
0 |
1,929 |
155 |
osh-native |
36 |
no-host |
configure.ocaml |
412,705 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
160 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,537 |
0 |
0 |
0 |
104 |
0 |
48 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,490 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
24,074 |
0 |
0 |
0 |
96 |
0 |
53 |
9 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,967 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
37 |
no-host |
configure.tcc |
6,922 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,102,976 |
1 |
0 |
0 |
42,400 |
0 |
18,654 |
1,026 |
bash |
11 |
no-host |
configure.util-linux |
2,264,539 |
0 |
0 |
0 |
42,592 |
0 |
17,520 |
1,127 |
dash |
19 |
no-host |
configure.util-linux |
5,393,076 |
11 |
0 |
0 |
39,112 |
0 |
16,956 |
1,205 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,996,947 |
0 |
0 |
0 |
39,144 |
0 |
16,994 |
908 |
osh-native |
35 |
no-host |
configure.util-linux |
1,990,488 |
0 |
0 |
0 |
39,152 |
0 |
16,980 |
941 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,168 |
0 |
0 |
0 |
4,120 |
0 |
867 |
72 |
bash |
14 |
no-host |
configure.yash |
244,051 |
0 |
0 |
0 |
3,720 |
0 |
866 |
75 |
dash |
22 |
no-host |
configure.yash |
389,111 |
0 |
0 |
0 |
3,728 |
0 |
852 |
86 |
osh-cpython |
30 |
no-host |
configure.yash |
258,135 |
0 |
0 |
0 |
3,736 |
0 |
850 |
74 |
osh-native |
38 |
no-host |
configure.yash |
257,533 |
0 |
0 |
0 |
3,736 |
0 |
853 |
71 |
osh-native-souffle |
0 |
no-host |
hello-world |
154 |
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,945 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
342 |
0 |
0 |
0 |
16 |
0 |
0 |
1 |
osh-native |
32 |
no-host |
hello-world |
336 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host