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 |
472 |
23 |
21 |
25.20 |
1.20 |
| bin-true |
no-host |
669 |
537 |
2,310 |
809 |
812 |
3.45 |
1.21 |
| configure.cpython |
no-host |
15,254 |
15,064 |
29,255 |
15,350 |
15,727 |
1.92 |
1.01 |
| configure.ocaml |
no-host |
3,838 |
3,792 |
4,643 |
3,873 |
3,841 |
1.21 |
1.01 |
| configure.tcc |
no-host |
48 |
42 |
202 |
50 |
49 |
4.20 |
1.05 |
| configure.util-linux |
no-host |
14,162 |
15,034 |
31,639 |
14,514 |
14,690 |
2.23 |
1.02 |
| configure.yash |
no-host |
1,826 |
1,800 |
2,462 |
1,857 |
1,880 |
1.35 |
1.02 |
| hello-world |
no-host |
1 |
1 |
59 |
3 |
3 |
39.57 |
1.99 |
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,527 |
1,104 |
23,768 |
3,173 |
3,062 |
9.41 |
1.26 |
| bin-true |
no-host |
105,303 |
66,428 |
773,531 |
126,355 |
126,282 |
7.35 |
1.20 |
| configure.cpython |
no-host |
2,227,205 |
2,245,785 |
6,251,956 |
2,222,606 |
2,201,018 |
2.81 |
1.00 |
| configure.ocaml |
no-host |
410,417 |
391,340 |
647,651 |
413,001 |
412,625 |
1.58 |
1.01 |
| configure.tcc |
no-host |
6,539 |
5,470 |
24,125 |
6,995 |
6,907 |
3.69 |
1.07 |
| configure.util-linux |
no-host |
2,094,172 |
2,258,345 |
5,402,433 |
1,988,483 |
1,989,665 |
2.58 |
0.95 |
| configure.yash |
no-host |
255,309 |
244,031 |
389,513 |
258,382 |
257,368 |
1.53 |
1.01 |
| hello-world |
no-host |
152 |
84 |
3,942 |
345 |
337 |
25.93 |
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.4 |
3,782 |
3,782 |
0 |
694 |
1,858 |
1,230 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
809 |
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 |
15,350 |
1 |
62 |
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 |
14,514 |
4 |
66 |
21.2 |
30.1 |
2,702,513 |
53,766 |
65,691 |
108,691 |
1,290,640 |
1,303,182 |
32,239 |
41 |
131,382 |
1 |
| configure.ocaml |
no-host |
3,873 |
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 |
50 |
0 |
0 |
1.3 |
19.3 |
30,586 |
30,586 |
0 |
1,518 |
14,641 |
14,427 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,857 |
1 |
2 |
2.5 |
24.2 |
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 |
9.0 |
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.9 |
3,781 |
3,781 |
0 |
695 |
1,858 |
1,228 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
812 |
1 |
2 |
2.6 |
7.7 |
153,745 |
12,111 |
2,825 |
8,744 |
76,322 |
68,679 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,727 |
1 |
64 |
14.9 |
27.3 |
1,771,746 |
44,577 |
28,450 |
85,416 |
878,115 |
808,215 |
25,733 |
60 |
50,000 |
0 |
| configure.util-linux |
no-host |
14,690 |
3 |
64 |
21.2 |
30.1 |
2,702,513 |
53,693 |
65,629 |
108,693 |
1,290,640 |
1,303,180 |
32,239 |
41 |
131,258 |
1 |
| configure.ocaml |
no-host |
3,841 |
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 |
49 |
0 |
0 |
1.3 |
19.3 |
30,586 |
30,586 |
0 |
1,520 |
14,641 |
14,425 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,880 |
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 |
21 |
1 |
2 |
2.8 |
8.7 |
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 |
19 |
7 |
12 |
4.3 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
8 |
1 |
3.5 |
dash |
| 23 |
no-host |
abuild-print-help |
472 |
433 |
42 |
22.8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
23 |
23 |
0 |
9.0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
10 |
11 |
8.7 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
669 |
501 |
199 |
2.9 |
bash |
| 9 |
no-host |
bin-true |
537 |
411 |
136 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,310 |
1,495 |
1,080 |
18.4 |
osh-cpython |
| 25 |
no-host |
bin-true |
809 |
589 |
236 |
8.0 |
osh-native |
| 33 |
no-host |
bin-true |
812 |
591 |
234 |
7.7 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
15,254 |
9,167 |
6,498 |
27.1 |
bash |
| 10 |
no-host |
configure.cpython |
15,064 |
8,998 |
6,487 |
27.3 |
dash |
| 18 |
no-host |
configure.cpython |
29,255 |
18,337 |
12,827 |
27.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,350 |
9,235 |
6,389 |
27.4 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,727 |
9,283 |
6,520 |
27.3 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,838 |
1,626 |
1,242 |
20.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,792 |
1,691 |
1,121 |
20.4 |
dash |
| 20 |
no-host |
configure.ocaml |
4,643 |
2,260 |
1,592 |
20.4 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,873 |
1,732 |
1,180 |
20.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,841 |
1,566 |
1,312 |
20.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
48 |
35 |
13 |
19.3 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
27 |
15 |
19.3 |
dash |
| 21 |
no-host |
configure.tcc |
202 |
159 |
46 |
19.3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
50 |
35 |
15 |
19.3 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
26 |
23 |
19.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
14,162 |
9,033 |
5,604 |
30.3 |
bash |
| 11 |
no-host |
configure.util-linux |
15,034 |
9,263 |
6,270 |
30.0 |
dash |
| 19 |
no-host |
configure.util-linux |
31,639 |
21,066 |
11,673 |
30.1 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,514 |
8,749 |
5,938 |
30.1 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,690 |
8,831 |
6,057 |
30.1 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,826 |
1,011 |
823 |
24.2 |
bash |
| 14 |
no-host |
configure.yash |
1,800 |
1,076 |
727 |
24.5 |
dash |
| 22 |
no-host |
configure.yash |
2,462 |
1,581 |
924 |
24.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,857 |
1,048 |
813 |
24.2 |
osh-native |
| 38 |
no-host |
configure.yash |
1,880 |
1,079 |
804 |
24.4 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
2.8 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
59 |
39 |
19 |
18.2 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
3 |
0 |
6.4 |
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,527 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,104 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
23,768 |
0 |
0 |
0 |
8 |
0 |
45 |
13 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,173 |
0 |
0 |
0 |
16 |
0 |
40 |
2 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,062 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
105,303 |
0 |
0 |
0 |
8 |
0 |
1,993 |
46 |
bash |
| 9 |
no-host |
bin-true |
66,428 |
0 |
0 |
0 |
8 |
0 |
1,988 |
50 |
dash |
| 17 |
no-host |
bin-true |
773,531 |
0 |
0 |
0 |
8 |
0 |
1,998 |
182 |
osh-cpython |
| 25 |
no-host |
bin-true |
126,355 |
0 |
0 |
0 |
16 |
0 |
1,999 |
191 |
osh-native |
| 33 |
no-host |
bin-true |
126,282 |
0 |
0 |
0 |
16 |
0 |
1,992 |
90 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
2,227,205 |
0 |
0 |
0 |
32,928 |
0 |
14,553 |
1,050 |
bash |
| 10 |
no-host |
configure.cpython |
2,245,785 |
0 |
0 |
0 |
32,992 |
0 |
14,647 |
947 |
dash |
| 18 |
no-host |
configure.cpython |
6,251,956 |
0 |
0 |
0 |
27,512 |
0 |
13,209 |
1,202 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,222,606 |
0 |
0 |
0 |
27,520 |
0 |
13,254 |
1,135 |
osh-native |
| 34 |
no-host |
configure.cpython |
2,201,018 |
1 |
0 |
0 |
27,520 |
0 |
13,216 |
946 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
410,417 |
0 |
0 |
0 |
5,120 |
0 |
1,963 |
157 |
bash |
| 12 |
no-host |
configure.ocaml |
391,340 |
0 |
0 |
0 |
5,112 |
0 |
1,924 |
142 |
dash |
| 20 |
no-host |
configure.ocaml |
647,651 |
0 |
0 |
0 |
5,112 |
0 |
1,857 |
175 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
413,001 |
0 |
0 |
0 |
5,120 |
0 |
1,928 |
176 |
osh-native |
| 36 |
no-host |
configure.ocaml |
412,625 |
0 |
0 |
0 |
5,120 |
0 |
1,934 |
167 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,539 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
5,470 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
24,125 |
0 |
0 |
0 |
96 |
0 |
53 |
4 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,995 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,907 |
0 |
0 |
0 |
104 |
0 |
47 |
0 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
2,094,172 |
0 |
0 |
0 |
42,400 |
0 |
18,602 |
1,135 |
bash |
| 11 |
no-host |
configure.util-linux |
2,258,345 |
0 |
0 |
0 |
42,584 |
0 |
17,490 |
951 |
dash |
| 19 |
no-host |
configure.util-linux |
5,402,433 |
6 |
0 |
0 |
39,112 |
0 |
16,965 |
1,181 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,988,483 |
0 |
0 |
0 |
39,120 |
0 |
17,002 |
943 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,989,665 |
0 |
0 |
0 |
39,128 |
0 |
16,968 |
1,012 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
255,309 |
0 |
0 |
0 |
4,120 |
0 |
870 |
86 |
bash |
| 14 |
no-host |
configure.yash |
244,031 |
0 |
0 |
0 |
3,720 |
0 |
868 |
77 |
dash |
| 22 |
no-host |
configure.yash |
389,513 |
0 |
0 |
0 |
3,728 |
0 |
852 |
82 |
osh-cpython |
| 30 |
no-host |
configure.yash |
258,382 |
0 |
0 |
0 |
3,736 |
0 |
850 |
76 |
osh-native |
| 38 |
no-host |
configure.yash |
257,368 |
0 |
0 |
0 |
3,736 |
0 |
852 |
67 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
84 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,942 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
| 24 |
no-host |
hello-world |
345 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
| 32 |
no-host |
hello-world |
337 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host