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 |
9 |
465 |
22 |
21 |
23.83 |
1.13 |
| bin-true |
no-host |
678 |
548 |
2,293 |
812 |
810 |
3.38 |
1.20 |
| configure.cpython |
no-host |
15,141 |
15,265 |
28,901 |
15,339 |
15,382 |
1.91 |
1.01 |
| configure.ocaml |
no-host |
3,825 |
3,746 |
4,669 |
3,848 |
3,812 |
1.22 |
1.01 |
| configure.tcc |
no-host |
49 |
43 |
201 |
49 |
49 |
4.10 |
1.00 |
| configure.util-linux |
no-host |
14,073 |
14,981 |
31,432 |
14,411 |
14,351 |
2.23 |
1.02 |
| configure.yash |
no-host |
1,823 |
1,819 |
2,495 |
1,837 |
1,843 |
1.37 |
1.01 |
| hello-world |
no-host |
2 |
1 |
57 |
3 |
3 |
37.06 |
1.96 |
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,570 |
1,098 |
23,810 |
3,197 |
3,105 |
9.26 |
1.24 |
| bin-true |
no-host |
106,323 |
66,459 |
769,558 |
127,246 |
125,284 |
7.24 |
1.20 |
| configure.cpython |
no-host |
2,220,270 |
2,247,093 |
6,244,680 |
2,212,131 |
2,209,475 |
2.81 |
1.00 |
| configure.ocaml |
no-host |
410,383 |
391,015 |
647,755 |
413,134 |
412,255 |
1.58 |
1.01 |
| configure.tcc |
no-host |
6,543 |
5,481 |
24,155 |
6,976 |
6,921 |
3.69 |
1.07 |
| configure.util-linux |
no-host |
2,092,239 |
2,261,178 |
5,397,934 |
2,002,719 |
1,993,589 |
2.58 |
0.96 |
| configure.yash |
no-host |
256,014 |
244,184 |
388,464 |
257,756 |
257,601 |
1.52 |
1.01 |
| hello-world |
no-host |
156 |
78 |
3,962 |
346 |
336 |
25.40 |
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,783 |
3,783 |
0 |
694 |
1,859 |
1,230 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
812 |
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,339 |
1 |
63 |
14.9 |
27.3 |
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,411 |
3 |
61 |
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,848 |
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,837 |
1 |
2 |
2.5 |
24.4 |
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.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 |
810 |
1 |
2 |
2.6 |
7.9 |
153,746 |
12,112 |
2,826 |
8,744 |
76,323 |
68,679 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,382 |
1 |
61 |
14.9 |
27.5 |
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,351 |
3 |
62 |
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,812 |
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 |
49 |
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,843 |
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.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 |
20 |
11 |
9 |
4.5 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
8 |
1 |
3.4 |
dash |
| 23 |
no-host |
abuild-print-help |
465 |
427 |
41 |
22.8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
20 |
3 |
9.2 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
17 |
5 |
8.7 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
678 |
499 |
211 |
2.9 |
bash |
| 9 |
no-host |
bin-true |
548 |
418 |
139 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,293 |
1,484 |
1,068 |
18.4 |
osh-cpython |
| 25 |
no-host |
bin-true |
812 |
591 |
236 |
8.0 |
osh-native |
| 33 |
no-host |
bin-true |
810 |
565 |
260 |
7.9 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
15,141 |
9,054 |
6,488 |
27.3 |
bash |
| 10 |
no-host |
configure.cpython |
15,265 |
8,996 |
6,696 |
27.5 |
dash |
| 18 |
no-host |
configure.cpython |
28,901 |
17,534 |
13,234 |
27.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,339 |
8,963 |
6,643 |
27.3 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,382 |
9,058 |
6,471 |
27.5 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,825 |
1,684 |
1,170 |
20.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,746 |
1,580 |
1,188 |
20.6 |
dash |
| 20 |
no-host |
configure.ocaml |
4,669 |
2,293 |
1,587 |
20.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,848 |
1,629 |
1,258 |
20.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,812 |
1,676 |
1,174 |
20.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
49 |
27 |
23 |
19.3 |
bash |
| 13 |
no-host |
configure.tcc |
43 |
31 |
12 |
19.3 |
dash |
| 21 |
no-host |
configure.tcc |
201 |
134 |
71 |
19.3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
37 |
13 |
19.3 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
34 |
16 |
19.4 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
14,073 |
8,819 |
5,732 |
30.0 |
bash |
| 11 |
no-host |
configure.util-linux |
14,981 |
9,118 |
6,367 |
30.3 |
dash |
| 19 |
no-host |
configure.util-linux |
31,432 |
21,259 |
11,257 |
30.0 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,411 |
8,619 |
5,989 |
30.1 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,351 |
8,824 |
5,723 |
30.1 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,823 |
1,134 |
697 |
24.2 |
bash |
| 14 |
no-host |
configure.yash |
1,819 |
1,073 |
748 |
24.5 |
dash |
| 22 |
no-host |
configure.yash |
2,495 |
1,654 |
884 |
24.2 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,837 |
1,085 |
757 |
24.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,843 |
1,049 |
796 |
24.2 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
57 |
38 |
18 |
18.2 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
3 |
0 |
6.3 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
0 |
3 |
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,570 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
| 15 |
no-host |
abuild-print-help |
1,098 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
23,810 |
0 |
0 |
0 |
8 |
0 |
45 |
12 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,197 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,105 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
106,323 |
0 |
0 |
0 |
8 |
0 |
1,995 |
59 |
bash |
| 9 |
no-host |
bin-true |
66,459 |
0 |
0 |
0 |
8 |
0 |
1,996 |
69 |
dash |
| 17 |
no-host |
bin-true |
769,558 |
0 |
0 |
0 |
8 |
0 |
1,995 |
100 |
osh-cpython |
| 25 |
no-host |
bin-true |
127,246 |
0 |
0 |
0 |
16 |
0 |
1,996 |
131 |
osh-native |
| 33 |
no-host |
bin-true |
125,284 |
0 |
0 |
0 |
16 |
0 |
1,993 |
56 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
2,220,270 |
0 |
0 |
0 |
32,928 |
0 |
14,543 |
1,163 |
bash |
| 10 |
no-host |
configure.cpython |
2,247,093 |
0 |
0 |
0 |
32,992 |
0 |
14,703 |
1,279 |
dash |
| 18 |
no-host |
configure.cpython |
6,244,680 |
0 |
0 |
0 |
27,512 |
0 |
13,301 |
1,136 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,212,131 |
0 |
0 |
0 |
27,520 |
0 |
13,254 |
1,017 |
osh-native |
| 34 |
no-host |
configure.cpython |
2,209,475 |
0 |
0 |
0 |
27,520 |
0 |
13,286 |
1,035 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
410,383 |
0 |
0 |
0 |
5,120 |
0 |
1,968 |
142 |
bash |
| 12 |
no-host |
configure.ocaml |
391,015 |
0 |
0 |
0 |
5,112 |
0 |
1,939 |
148 |
dash |
| 20 |
no-host |
configure.ocaml |
647,755 |
1 |
0 |
0 |
5,112 |
0 |
1,856 |
175 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
413,134 |
0 |
0 |
0 |
5,120 |
0 |
1,940 |
176 |
osh-native |
| 36 |
no-host |
configure.ocaml |
412,255 |
0 |
0 |
0 |
5,120 |
0 |
1,929 |
163 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,543 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
5,481 |
0 |
0 |
0 |
96 |
0 |
47 |
11 |
dash |
| 21 |
no-host |
configure.tcc |
24,155 |
0 |
0 |
0 |
96 |
0 |
53 |
9 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,976 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,921 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
2,092,239 |
1 |
0 |
0 |
42,408 |
0 |
18,704 |
968 |
bash |
| 11 |
no-host |
configure.util-linux |
2,261,178 |
0 |
0 |
0 |
42,592 |
0 |
17,427 |
1,003 |
dash |
| 19 |
no-host |
configure.util-linux |
5,397,934 |
3 |
0 |
0 |
39,112 |
0 |
16,933 |
1,198 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
2,002,719 |
0 |
0 |
0 |
39,128 |
0 |
16,885 |
987 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,993,589 |
3 |
0 |
0 |
39,136 |
0 |
16,954 |
1,067 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
256,014 |
0 |
0 |
0 |
4,120 |
0 |
872 |
90 |
bash |
| 14 |
no-host |
configure.yash |
244,184 |
0 |
0 |
0 |
3,720 |
0 |
866 |
91 |
dash |
| 22 |
no-host |
configure.yash |
388,464 |
0 |
0 |
0 |
3,728 |
0 |
855 |
83 |
osh-cpython |
| 30 |
no-host |
configure.yash |
257,756 |
0 |
0 |
0 |
3,736 |
0 |
851 |
88 |
osh-native |
| 38 |
no-host |
configure.yash |
257,601 |
0 |
0 |
0 |
3,736 |
0 |
847 |
95 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
156 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
78 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,962 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
| 24 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
| 32 |
no-host |
hello-world |
336 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native-souffle |
Shell and Host