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 |
463 |
22 |
20 |
24.31 |
1.16 |
| bin-true |
no-host |
671 |
539 |
2,287 |
801 |
804 |
3.41 |
1.19 |
| configure.cpython |
no-host |
14,752 |
14,849 |
28,515 |
14,999 |
15,124 |
1.93 |
1.02 |
| configure.ocaml |
no-host |
3,757 |
3,696 |
4,625 |
3,775 |
3,775 |
1.23 |
1.00 |
| configure.tcc |
no-host |
47 |
41 |
202 |
48 |
48 |
4.26 |
1.01 |
| configure.util-linux |
no-host |
13,794 |
14,680 |
30,973 |
14,142 |
14,108 |
2.25 |
1.03 |
| configure.yash |
no-host |
1,791 |
1,738 |
2,435 |
1,793 |
1,790 |
1.36 |
1.00 |
| hello-world |
no-host |
1 |
1 |
55 |
3 |
3 |
37.44 |
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,544 |
1,117 |
23,667 |
3,191 |
3,079 |
9.30 |
1.25 |
| bin-true |
no-host |
105,359 |
66,394 |
769,079 |
125,302 |
125,212 |
7.30 |
1.19 |
| configure.cpython |
no-host |
2,220,456 |
2,244,510 |
6,244,764 |
2,222,396 |
2,218,346 |
2.81 |
1.00 |
| configure.ocaml |
no-host |
410,956 |
391,114 |
647,497 |
413,216 |
412,549 |
1.58 |
1.01 |
| configure.tcc |
no-host |
6,567 |
5,479 |
24,128 |
6,943 |
6,919 |
3.67 |
1.06 |
| configure.util-linux |
no-host |
2,094,548 |
2,261,232 |
5,410,675 |
1,995,975 |
1,989,578 |
2.58 |
0.95 |
| configure.yash |
no-host |
256,263 |
245,072 |
388,099 |
256,655 |
257,860 |
1.51 |
1.00 |
| hello-world |
no-host |
153 |
83 |
3,951 |
347 |
335 |
25.82 |
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 |
801 |
1 |
2 |
2.6 |
7.9 |
153,747 |
12,268 |
2,888 |
8,743 |
76,323 |
68,681 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,999 |
1 |
59 |
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,142 |
2 |
58 |
21.2 |
30.1 |
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,775 |
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 |
48 |
0 |
0 |
1.3 |
19.4 |
30,587 |
30,587 |
0 |
1,518 |
14,642 |
14,427 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,793 |
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 |
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 |
6.0 |
3,782 |
3,782 |
0 |
695 |
1,859 |
1,228 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
804 |
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 |
15,124 |
1 |
57 |
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 |
14,108 |
2 |
57 |
21.2 |
30.1 |
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,775 |
0 |
2 |
2.6 |
20.3 |
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,790 |
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 |
20 |
1 |
2 |
2.8 |
8.7 |
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 |
18 |
2 |
4.5 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
8 |
1 |
3.5 |
dash |
| 23 |
no-host |
abuild-print-help |
463 |
417 |
50 |
22.8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
15 |
7 |
9.0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
20 |
14 |
7 |
8.7 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
671 |
495 |
205 |
3.0 |
bash |
| 9 |
no-host |
bin-true |
539 |
424 |
124 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,287 |
1,453 |
1,093 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
801 |
570 |
245 |
7.9 |
osh-native |
| 33 |
no-host |
bin-true |
804 |
573 |
246 |
7.7 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,752 |
8,788 |
6,362 |
27.4 |
bash |
| 10 |
no-host |
configure.cpython |
14,849 |
9,217 |
6,047 |
27.4 |
dash |
| 18 |
no-host |
configure.cpython |
28,515 |
17,248 |
13,102 |
27.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,999 |
8,737 |
6,521 |
27.4 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,124 |
8,740 |
6,490 |
27.4 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,757 |
1,648 |
1,150 |
20.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,696 |
1,572 |
1,142 |
20.6 |
dash |
| 20 |
no-host |
configure.ocaml |
4,625 |
2,207 |
1,629 |
20.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,775 |
1,515 |
1,300 |
20.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,775 |
1,572 |
1,238 |
20.3 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
47 |
27 |
21 |
19.3 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
25 |
17 |
19.4 |
dash |
| 21 |
no-host |
configure.tcc |
202 |
152 |
53 |
19.3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
48 |
32 |
16 |
19.4 |
osh-native |
| 37 |
no-host |
configure.tcc |
48 |
28 |
21 |
19.4 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
13,794 |
8,696 |
5,572 |
30.1 |
bash |
| 11 |
no-host |
configure.util-linux |
14,680 |
9,071 |
6,100 |
30.1 |
dash |
| 19 |
no-host |
configure.util-linux |
30,973 |
20,902 |
11,149 |
30.0 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,142 |
8,522 |
5,810 |
30.1 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,108 |
8,602 |
5,700 |
30.1 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,791 |
983 |
816 |
24.5 |
bash |
| 14 |
no-host |
configure.yash |
1,738 |
1,131 |
610 |
24.4 |
dash |
| 22 |
no-host |
configure.yash |
2,435 |
1,543 |
933 |
24.2 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,793 |
1,106 |
691 |
24.2 |
osh-native |
| 38 |
no-host |
configure.yash |
1,790 |
1,024 |
770 |
24.2 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
2.8 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
55 |
43 |
12 |
18.2 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
6.3 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
3 |
0 |
6.0 |
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,544 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
| 15 |
no-host |
abuild-print-help |
1,117 |
0 |
0 |
0 |
8 |
0 |
39 |
5 |
dash |
| 23 |
no-host |
abuild-print-help |
23,667 |
0 |
0 |
0 |
8 |
0 |
45 |
8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,191 |
0 |
0 |
0 |
16 |
0 |
39 |
4 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,079 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
105,359 |
0 |
0 |
0 |
8 |
0 |
1,986 |
57 |
bash |
| 9 |
no-host |
bin-true |
66,394 |
0 |
0 |
0 |
8 |
0 |
1,988 |
105 |
dash |
| 17 |
no-host |
bin-true |
769,079 |
0 |
0 |
0 |
8 |
0 |
2,004 |
305 |
osh-cpython |
| 25 |
no-host |
bin-true |
125,302 |
0 |
0 |
0 |
16 |
0 |
1,990 |
57 |
osh-native |
| 33 |
no-host |
bin-true |
125,212 |
0 |
0 |
0 |
16 |
0 |
1,989 |
52 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
2,220,456 |
0 |
0 |
0 |
32,928 |
0 |
14,493 |
993 |
bash |
| 10 |
no-host |
configure.cpython |
2,244,510 |
0 |
0 |
0 |
32,992 |
0 |
14,591 |
1,088 |
dash |
| 18 |
no-host |
configure.cpython |
6,244,764 |
0 |
0 |
0 |
27,512 |
0 |
13,193 |
1,210 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,222,396 |
0 |
0 |
0 |
27,520 |
0 |
13,253 |
1,154 |
osh-native |
| 34 |
no-host |
configure.cpython |
2,218,346 |
0 |
0 |
0 |
27,520 |
0 |
13,201 |
972 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
410,956 |
0 |
0 |
0 |
5,120 |
0 |
1,949 |
132 |
bash |
| 12 |
no-host |
configure.ocaml |
391,114 |
0 |
0 |
0 |
5,112 |
0 |
1,884 |
157 |
dash |
| 20 |
no-host |
configure.ocaml |
647,497 |
0 |
0 |
0 |
5,112 |
0 |
1,855 |
242 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
413,216 |
0 |
0 |
0 |
5,120 |
0 |
1,932 |
139 |
osh-native |
| 36 |
no-host |
configure.ocaml |
412,549 |
0 |
0 |
0 |
5,120 |
0 |
1,937 |
147 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,567 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
5,479 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
dash |
| 21 |
no-host |
configure.tcc |
24,128 |
0 |
0 |
0 |
96 |
0 |
53 |
12 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,943 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,919 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
2,094,548 |
1 |
0 |
0 |
42,400 |
0 |
18,648 |
979 |
bash |
| 11 |
no-host |
configure.util-linux |
2,261,232 |
1 |
0 |
0 |
42,584 |
0 |
17,439 |
1,149 |
dash |
| 19 |
no-host |
configure.util-linux |
5,410,675 |
9 |
0 |
0 |
39,120 |
0 |
17,007 |
1,105 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,995,975 |
3 |
0 |
0 |
39,120 |
0 |
16,978 |
970 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,989,578 |
1 |
0 |
0 |
39,128 |
0 |
16,975 |
882 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
256,263 |
0 |
0 |
0 |
4,120 |
0 |
871 |
72 |
bash |
| 14 |
no-host |
configure.yash |
245,072 |
0 |
0 |
0 |
3,720 |
0 |
870 |
80 |
dash |
| 22 |
no-host |
configure.yash |
388,099 |
0 |
0 |
0 |
3,728 |
0 |
856 |
87 |
osh-cpython |
| 30 |
no-host |
configure.yash |
256,655 |
0 |
0 |
0 |
3,736 |
0 |
850 |
78 |
osh-native |
| 38 |
no-host |
configure.yash |
257,860 |
0 |
0 |
0 |
3,736 |
0 |
848 |
93 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
153 |
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,951 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
| 24 |
no-host |
hello-world |
347 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
335 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host