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 |
16 |
9 |
559 |
23 |
21 |
33.94 |
1.37 |
| bin-true |
no-host |
651 |
467 |
2,544 |
845 |
838 |
3.91 |
1.30 |
| configure.cpython |
no-host |
14,668 |
14,609 |
31,269 |
15,492 |
15,521 |
2.13 |
1.06 |
| configure.ocaml |
no-host |
3,838 |
3,771 |
4,844 |
3,891 |
3,746 |
1.26 |
1.01 |
| configure.tcc |
no-host |
47 |
44 |
236 |
51 |
49 |
5.02 |
1.09 |
| configure.util-linux |
no-host |
13,315 |
14,162 |
34,672 |
14,397 |
13,838 |
2.60 |
1.08 |
| configure.yash |
no-host |
1,791 |
1,736 |
2,569 |
1,817 |
1,727 |
1.43 |
1.01 |
| hello-world |
no-host |
1 |
1 |
62 |
3 |
3 |
44.67 |
2.16 |
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,386 |
1,191 |
24,673 |
3,470 |
3,373 |
10.34 |
1.45 |
| bin-true |
no-host |
100,948 |
49,378 |
830,608 |
138,289 |
135,307 |
8.23 |
1.37 |
| configure.cpython |
no-host |
1,621,245 |
1,642,719 |
5,948,675 |
1,816,179 |
1,777,270 |
3.67 |
1.12 |
| configure.ocaml |
no-host |
298,562 |
280,531 |
554,119 |
316,549 |
316,443 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,245 |
4,184 |
23,719 |
5,993 |
5,903 |
4.52 |
1.14 |
| configure.util-linux |
no-host |
1,538,503 |
1,696,886 |
4,960,756 |
1,719,772 |
1,702,854 |
3.22 |
1.12 |
| configure.yash |
no-host |
173,617 |
159,543 |
315,091 |
179,382 |
179,042 |
1.81 |
1.03 |
| hello-world |
no-host |
154 |
86 |
3,889 |
386 |
380 |
25.25 |
2.51 |
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.3 |
7.1 |
3,825 |
3,825 |
0 |
704 |
1,880 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
845 |
1 |
2 |
2.6 |
8.8 |
156,797 |
15,428 |
2,915 |
8,761 |
77,347 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,492 |
1 |
73 |
15.2 |
34.5 |
1,782,988 |
46,101 |
25,356 |
91,622 |
885,111 |
806,255 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
14,397 |
3 |
67 |
21.4 |
39.7 |
2,707,121 |
126,354 |
66,586 |
113,463 |
1,294,567 |
1,299,091 |
32,539 |
41 |
133,172 |
1 |
| configure.ocaml |
no-host |
3,891 |
1 |
2 |
2.7 |
28.7 |
149,872 |
12,476 |
6,519 |
7,819 |
70,839 |
71,214 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
51 |
0 |
0 |
1.3 |
26.4 |
30,627 |
30,627 |
0 |
1,582 |
14,645 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,817 |
1 |
2 |
2.6 |
33.3 |
140,016 |
8,080 |
6,714 |
6,526 |
68,347 |
65,143 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
9.8 |
116,367 |
64,438 |
42,639 |
4,562 |
54,471 |
57,334 |
277 |
3 |
85,278 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.4 |
3,824 |
3,824 |
0 |
705 |
1,880 |
1,239 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
838 |
1 |
2 |
2.6 |
8.1 |
156,796 |
15,423 |
2,910 |
8,762 |
77,347 |
70,687 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,521 |
2 |
69 |
15.2 |
34.5 |
1,782,987 |
46,087 |
25,352 |
91,623 |
885,111 |
806,253 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,838 |
3 |
61 |
21.4 |
39.5 |
2,707,121 |
126,347 |
66,579 |
113,465 |
1,294,567 |
1,299,089 |
32,539 |
41 |
133,158 |
1 |
| configure.ocaml |
no-host |
3,746 |
1 |
2 |
2.7 |
28.7 |
149,872 |
12,470 |
6,513 |
7,821 |
70,839 |
71,212 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
26.3 |
30,627 |
30,627 |
0 |
1,584 |
14,645 |
14,398 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,727 |
1 |
2 |
2.6 |
33.4 |
140,016 |
8,069 |
6,703 |
6,528 |
68,347 |
65,141 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
9.3 |
116,366 |
64,433 |
42,634 |
4,563 |
54,471 |
57,332 |
277 |
3 |
85,268 |
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 |
16 |
7 |
10 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
2 |
7 |
3.8 |
dash |
| 23 |
no-host |
abuild-print-help |
559 |
513 |
49 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
23 |
10 |
13 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
9 |
12 |
9.3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
651 |
331 |
360 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
467 |
283 |
192 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
2,544 |
909 |
1,913 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
845 |
300 |
564 |
8.8 |
osh-native |
| 33 |
no-host |
bin-true |
838 |
290 |
567 |
8.1 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,668 |
7,818 |
7,225 |
34.6 |
bash |
| 10 |
no-host |
configure.cpython |
14,609 |
7,802 |
7,236 |
34.6 |
dash |
| 18 |
no-host |
configure.cpython |
31,269 |
16,909 |
16,446 |
34.3 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,492 |
7,606 |
8,215 |
34.5 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,521 |
7,688 |
8,031 |
34.5 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,838 |
1,538 |
1,342 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,771 |
1,522 |
1,272 |
28.9 |
dash |
| 20 |
no-host |
configure.ocaml |
4,844 |
2,203 |
1,870 |
28.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,891 |
1,553 |
1,378 |
28.7 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,746 |
1,465 |
1,322 |
28.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
47 |
27 |
21 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
44 |
28 |
17 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
236 |
162 |
78 |
26.2 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
51 |
28 |
24 |
26.4 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
27 |
22 |
26.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
13,315 |
6,687 |
7,119 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
14,162 |
6,783 |
7,859 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
34,672 |
21,569 |
14,251 |
39.7 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,397 |
6,524 |
8,128 |
39.7 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,838 |
6,314 |
7,610 |
39.5 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,791 |
964 |
835 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,736 |
958 |
780 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
2,569 |
1,501 |
1,113 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,817 |
977 |
842 |
33.3 |
osh-native |
| 38 |
no-host |
configure.yash |
1,727 |
901 |
828 |
33.4 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
62 |
45 |
17 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
7.1 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
1 |
1 |
6.4 |
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,386 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,191 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,673 |
0 |
0 |
0 |
8 |
0 |
45 |
5 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,470 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,373 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
100,948 |
0 |
0 |
0 |
8 |
0 |
1,982 |
92 |
bash |
| 9 |
no-host |
bin-true |
49,378 |
0 |
0 |
0 |
8 |
0 |
2,957 |
60 |
dash |
| 17 |
no-host |
bin-true |
830,608 |
0 |
0 |
0 |
8 |
0 |
1,977 |
167 |
osh-cpython |
| 25 |
no-host |
bin-true |
138,289 |
0 |
0 |
0 |
16 |
0 |
1,973 |
89 |
osh-native |
| 33 |
no-host |
bin-true |
135,307 |
0 |
0 |
0 |
16 |
0 |
1,967 |
101 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,621,245 |
0 |
0 |
0 |
25,296 |
0 |
14,049 |
1,162 |
bash |
| 10 |
no-host |
configure.cpython |
1,642,719 |
1 |
0 |
0 |
25,272 |
0 |
14,069 |
1,088 |
dash |
| 18 |
no-host |
configure.cpython |
5,948,675 |
0 |
0 |
0 |
25,272 |
0 |
12,877 |
1,042 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,816,179 |
0 |
0 |
0 |
25,280 |
0 |
12,863 |
1,028 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,777,270 |
1 |
0 |
0 |
25,280 |
0 |
12,866 |
1,029 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,562 |
0 |
0 |
0 |
4,432 |
0 |
2,011 |
193 |
bash |
| 12 |
no-host |
configure.ocaml |
280,531 |
0 |
0 |
0 |
4,432 |
0 |
2,099 |
201 |
dash |
| 20 |
no-host |
configure.ocaml |
554,119 |
0 |
0 |
0 |
4,432 |
0 |
1,908 |
209 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
316,549 |
0 |
0 |
0 |
4,440 |
0 |
1,993 |
204 |
osh-native |
| 36 |
no-host |
configure.ocaml |
316,443 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
209 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,245 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,184 |
0 |
0 |
0 |
88 |
0 |
52 |
5 |
dash |
| 21 |
no-host |
configure.tcc |
23,719 |
0 |
0 |
0 |
88 |
0 |
53 |
7 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,993 |
0 |
0 |
0 |
96 |
0 |
47 |
6 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,903 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,538,503 |
0 |
0 |
0 |
35,944 |
0 |
19,001 |
1,142 |
bash |
| 11 |
no-host |
configure.util-linux |
1,696,886 |
0 |
0 |
0 |
35,936 |
0 |
16,989 |
1,302 |
dash |
| 19 |
no-host |
configure.util-linux |
4,960,756 |
3 |
0 |
0 |
35,960 |
0 |
17,524 |
1,050 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,719,772 |
1 |
0 |
0 |
35,952 |
0 |
17,513 |
1,026 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,702,854 |
3 |
0 |
0 |
35,952 |
0 |
17,522 |
1,081 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,617 |
0 |
0 |
0 |
3,616 |
0 |
876 |
137 |
bash |
| 14 |
no-host |
configure.yash |
159,543 |
0 |
0 |
0 |
3,616 |
0 |
1,002 |
127 |
dash |
| 22 |
no-host |
configure.yash |
315,091 |
0 |
0 |
0 |
3,616 |
0 |
859 |
138 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,382 |
0 |
0 |
0 |
3,624 |
0 |
857 |
150 |
osh-native |
| 38 |
no-host |
configure.yash |
179,042 |
0 |
0 |
0 |
3,624 |
0 |
855 |
134 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
86 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,889 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
386 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
380 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host