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 |
15 |
9 |
521 |
21 |
21 |
33.73 |
1.37 |
| bin-true |
no-host |
612 |
431 |
2,481 |
797 |
793 |
4.05 |
1.30 |
| configure.cpython |
no-host |
13,671 |
13,808 |
29,274 |
14,489 |
14,481 |
2.14 |
1.06 |
| configure.ocaml |
no-host |
3,636 |
3,642 |
4,633 |
3,691 |
3,745 |
1.27 |
1.02 |
| configure.tcc |
no-host |
45 |
41 |
219 |
49 |
49 |
4.85 |
1.07 |
| configure.util-linux |
no-host |
12,437 |
13,336 |
31,909 |
13,506 |
13,759 |
2.57 |
1.09 |
| configure.yash |
no-host |
1,680 |
1,664 |
2,408 |
1,701 |
1,737 |
1.43 |
1.01 |
| hello-world |
no-host |
1 |
1 |
59 |
3 |
3 |
49.45 |
2.39 |
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,408 |
1,175 |
24,665 |
3,405 |
3,372 |
10.24 |
1.41 |
| bin-true |
no-host |
101,953 |
49,401 |
834,640 |
137,290 |
133,267 |
8.19 |
1.35 |
| configure.cpython |
no-host |
1,621,293 |
1,643,589 |
5,992,605 |
1,806,184 |
1,772,115 |
3.70 |
1.11 |
| configure.ocaml |
no-host |
298,855 |
280,564 |
556,384 |
317,621 |
316,240 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,219 |
4,205 |
23,888 |
5,932 |
5,858 |
4.58 |
1.14 |
| configure.util-linux |
no-host |
1,529,403 |
1,694,211 |
4,982,934 |
1,720,857 |
1,712,779 |
3.26 |
1.13 |
| configure.yash |
no-host |
173,642 |
159,560 |
316,392 |
179,042 |
178,933 |
1.82 |
1.03 |
| hello-world |
no-host |
153 |
86 |
3,899 |
385 |
377 |
25.48 |
2.52 |
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 |
6.9 |
3,826 |
3,826 |
0 |
703 |
1,880 |
1,243 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
797 |
1 |
2 |
2.6 |
8.8 |
156,798 |
15,428 |
2,915 |
8,760 |
77,347 |
70,691 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,489 |
1 |
64 |
15.2 |
34.5 |
1,782,989 |
46,101 |
25,356 |
91,621 |
885,111 |
806,257 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,506 |
3 |
59 |
21.4 |
39.7 |
2,707,122 |
126,354 |
66,586 |
113,462 |
1,294,567 |
1,299,093 |
32,539 |
41 |
133,172 |
1 |
| configure.ocaml |
no-host |
3,691 |
1 |
2 |
2.7 |
28.8 |
149,873 |
12,476 |
6,519 |
7,818 |
70,839 |
71,216 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
26.1 |
30,628 |
30,628 |
0 |
1,581 |
14,645 |
14,402 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,701 |
1 |
2 |
2.6 |
33.3 |
140,017 |
8,080 |
6,714 |
6,525 |
68,347 |
65,145 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
9.7 |
116,368 |
64,438 |
42,639 |
4,561 |
54,471 |
57,336 |
277 |
3 |
85,278 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.4 |
3,825 |
3,825 |
0 |
704 |
1,880 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
793 |
1 |
2 |
2.6 |
8.3 |
156,797 |
15,423 |
2,910 |
8,761 |
77,347 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,481 |
1 |
64 |
15.2 |
34.3 |
1,782,988 |
46,087 |
25,352 |
91,622 |
885,111 |
806,255 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,759 |
3 |
61 |
21.4 |
39.7 |
2,707,122 |
126,347 |
66,579 |
113,464 |
1,294,567 |
1,299,091 |
32,539 |
41 |
133,158 |
1 |
| configure.ocaml |
no-host |
3,745 |
1 |
2 |
2.7 |
28.6 |
149,873 |
12,470 |
6,513 |
7,820 |
70,839 |
71,214 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
26.3 |
30,628 |
30,628 |
0 |
1,583 |
14,645 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,737 |
1 |
2 |
2.6 |
33.1 |
140,017 |
8,069 |
6,703 |
6,527 |
68,347 |
65,143 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
9.3 |
116,367 |
64,433 |
42,634 |
4,562 |
54,471 |
57,334 |
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 |
15 |
8 |
8 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.8 |
dash |
| 23 |
no-host |
abuild-print-help |
521 |
470 |
55 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
21 |
8 |
13 |
9.7 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
10 |
12 |
9.3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
612 |
304 |
346 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
431 |
267 |
171 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,481 |
906 |
1,843 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
797 |
302 |
511 |
8.8 |
osh-native |
| 33 |
no-host |
bin-true |
793 |
306 |
501 |
8.3 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,671 |
7,444 |
6,599 |
34.6 |
bash |
| 10 |
no-host |
configure.cpython |
13,808 |
7,504 |
6,689 |
34.2 |
dash |
| 18 |
no-host |
configure.cpython |
29,274 |
16,014 |
15,229 |
34.3 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,489 |
7,296 |
7,481 |
34.5 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,481 |
7,238 |
7,404 |
34.3 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,636 |
1,411 |
1,262 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,642 |
1,465 |
1,198 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
4,633 |
2,084 |
1,771 |
28.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,691 |
1,498 |
1,234 |
28.8 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,745 |
1,465 |
1,319 |
28.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
45 |
24 |
22 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
21 |
21 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
219 |
154 |
69 |
26.1 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
24 |
25 |
26.1 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
27 |
23 |
26.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,437 |
6,494 |
6,392 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,336 |
6,468 |
7,349 |
39.8 |
dash |
| 19 |
no-host |
configure.util-linux |
31,909 |
20,077 |
12,904 |
39.9 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,506 |
6,227 |
7,499 |
39.7 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,759 |
6,335 |
7,495 |
39.7 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,680 |
925 |
761 |
33.2 |
bash |
| 14 |
no-host |
configure.yash |
1,664 |
923 |
742 |
33.2 |
dash |
| 22 |
no-host |
configure.yash |
2,408 |
1,416 |
1,034 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,701 |
949 |
755 |
33.3 |
osh-native |
| 38 |
no-host |
configure.yash |
1,737 |
950 |
789 |
33.1 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
59 |
48 |
12 |
17.9 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
6.9 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
2 |
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,408 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,175 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,665 |
0 |
0 |
0 |
8 |
0 |
45 |
6 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,405 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,372 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
101,953 |
0 |
0 |
0 |
8 |
0 |
1,976 |
72 |
bash |
| 9 |
no-host |
bin-true |
49,401 |
0 |
0 |
0 |
8 |
0 |
2,971 |
39 |
dash |
| 17 |
no-host |
bin-true |
834,640 |
0 |
0 |
0 |
8 |
0 |
1,984 |
134 |
osh-cpython |
| 25 |
no-host |
bin-true |
137,290 |
0 |
0 |
0 |
16 |
0 |
1,978 |
66 |
osh-native |
| 33 |
no-host |
bin-true |
133,267 |
0 |
0 |
0 |
16 |
0 |
1,970 |
95 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,621,293 |
0 |
0 |
0 |
25,272 |
0 |
14,003 |
1,049 |
bash |
| 10 |
no-host |
configure.cpython |
1,643,589 |
0 |
0 |
0 |
25,272 |
0 |
14,057 |
1,046 |
dash |
| 18 |
no-host |
configure.cpython |
5,992,605 |
0 |
0 |
0 |
25,272 |
0 |
12,866 |
869 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,806,184 |
0 |
0 |
0 |
25,280 |
0 |
12,833 |
1,071 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,772,115 |
0 |
0 |
0 |
25,280 |
0 |
12,816 |
1,196 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,855 |
0 |
0 |
0 |
4,432 |
0 |
2,006 |
201 |
bash |
| 12 |
no-host |
configure.ocaml |
280,564 |
0 |
0 |
0 |
4,432 |
0 |
2,096 |
193 |
dash |
| 20 |
no-host |
configure.ocaml |
556,384 |
0 |
0 |
0 |
4,432 |
0 |
1,908 |
192 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
317,621 |
0 |
0 |
0 |
4,440 |
0 |
1,994 |
199 |
osh-native |
| 36 |
no-host |
configure.ocaml |
316,240 |
0 |
0 |
0 |
4,440 |
0 |
1,995 |
162 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,219 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,205 |
0 |
0 |
0 |
88 |
0 |
51 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
23,888 |
0 |
0 |
0 |
88 |
0 |
52 |
7 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,932 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,858 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,529,403 |
1 |
0 |
0 |
35,944 |
0 |
18,955 |
1,062 |
bash |
| 11 |
no-host |
configure.util-linux |
1,694,211 |
0 |
0 |
0 |
35,936 |
0 |
17,119 |
1,204 |
dash |
| 19 |
no-host |
configure.util-linux |
4,982,934 |
0 |
0 |
0 |
35,960 |
0 |
17,528 |
1,010 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,720,857 |
2 |
0 |
0 |
35,944 |
0 |
17,522 |
1,091 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,712,779 |
2 |
0 |
0 |
35,944 |
0 |
17,462 |
1,120 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,642 |
0 |
0 |
0 |
3,616 |
0 |
878 |
106 |
bash |
| 14 |
no-host |
configure.yash |
159,560 |
0 |
0 |
0 |
3,616 |
0 |
997 |
97 |
dash |
| 22 |
no-host |
configure.yash |
316,392 |
0 |
0 |
0 |
3,616 |
0 |
860 |
109 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,042 |
0 |
0 |
0 |
3,624 |
0 |
854 |
93 |
osh-native |
| 38 |
no-host |
configure.yash |
178,933 |
0 |
0 |
0 |
3,632 |
0 |
855 |
103 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
153 |
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,899 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
| 24 |
no-host |
hello-world |
385 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
377 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host