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 |
555 |
22 |
21 |
35.11 |
1.39 |
| bin-true |
no-host |
641 |
456 |
2,494 |
827 |
806 |
3.89 |
1.29 |
| configure.cpython |
no-host |
14,018 |
14,096 |
29,580 |
14,841 |
14,907 |
2.11 |
1.06 |
| configure.ocaml |
no-host |
3,711 |
3,669 |
4,694 |
3,774 |
3,770 |
1.27 |
1.02 |
| configure.tcc |
no-host |
47 |
42 |
222 |
50 |
49 |
4.77 |
1.08 |
| configure.util-linux |
no-host |
12,779 |
13,553 |
32,329 |
13,860 |
13,943 |
2.53 |
1.08 |
| configure.yash |
no-host |
1,755 |
1,669 |
2,459 |
1,751 |
1,744 |
1.40 |
1.00 |
| hello-world |
no-host |
1 |
1 |
61 |
3 |
3 |
47.67 |
2.32 |
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,394 |
1,169 |
24,683 |
3,441 |
3,359 |
10.31 |
1.44 |
| bin-true |
no-host |
103,892 |
49,420 |
828,502 |
138,263 |
130,244 |
7.97 |
1.33 |
| configure.cpython |
no-host |
1,624,991 |
1,638,942 |
5,950,385 |
1,803,765 |
1,775,381 |
3.66 |
1.11 |
| configure.ocaml |
no-host |
298,797 |
280,721 |
555,256 |
316,203 |
315,867 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,195 |
4,190 |
23,749 |
5,982 |
5,860 |
4.57 |
1.15 |
| configure.util-linux |
no-host |
1,533,858 |
1,695,503 |
4,957,139 |
1,725,250 |
1,707,242 |
3.23 |
1.12 |
| configure.yash |
no-host |
173,578 |
159,545 |
315,000 |
179,379 |
178,694 |
1.81 |
1.03 |
| hello-world |
no-host |
150 |
86 |
3,882 |
386 |
375 |
25.88 |
2.57 |
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 |
827 |
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 |
14,841 |
1 |
67 |
15.2 |
34.4 |
1,782,988 |
46,101 |
25,356 |
91,622 |
885,111 |
806,255 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,860 |
3 |
62 |
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,774 |
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 |
50 |
0 |
0 |
1.3 |
26.2 |
30,627 |
30,627 |
0 |
1,582 |
14,645 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,751 |
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 |
22 |
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 |
806 |
1 |
2 |
2.6 |
8.3 |
156,796 |
15,423 |
2,910 |
8,762 |
77,347 |
70,687 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,907 |
1 |
63 |
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,943 |
3 |
59 |
21.4 |
39.6 |
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,770 |
1 |
2 |
2.7 |
28.8 |
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.2 |
30,627 |
30,627 |
0 |
1,584 |
14,645 |
14,398 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,744 |
1 |
2 |
2.6 |
33.3 |
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 |
9 |
7 |
4.6 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
5 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
555 |
492 |
67 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
11 |
12 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
12 |
9 |
9.3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
641 |
314 |
368 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
456 |
285 |
178 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,494 |
884 |
1,875 |
18.1 |
osh-cpython |
| 25 |
no-host |
bin-true |
827 |
316 |
529 |
8.8 |
osh-native |
| 33 |
no-host |
bin-true |
806 |
295 |
528 |
8.3 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,018 |
7,455 |
6,951 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,096 |
7,492 |
7,001 |
34.6 |
dash |
| 18 |
no-host |
configure.cpython |
29,580 |
16,143 |
15,381 |
34.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,841 |
7,435 |
7,706 |
34.4 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,907 |
7,366 |
7,706 |
34.5 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,711 |
1,472 |
1,280 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,669 |
1,470 |
1,222 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
4,694 |
2,093 |
1,823 |
28.8 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,774 |
1,446 |
1,371 |
28.7 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,770 |
1,479 |
1,330 |
28.8 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
47 |
23 |
24 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
20 |
22 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
222 |
162 |
64 |
26.2 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
50 |
20 |
31 |
26.2 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
23 |
26 |
26.2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,779 |
6,528 |
6,716 |
39.5 |
bash |
| 11 |
no-host |
configure.util-linux |
13,553 |
6,483 |
7,564 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
32,329 |
20,247 |
13,154 |
39.5 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,860 |
6,369 |
7,734 |
39.7 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,943 |
6,224 |
7,798 |
39.6 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,755 |
907 |
836 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,669 |
954 |
718 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
2,459 |
1,447 |
1,055 |
33.3 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,751 |
953 |
799 |
33.3 |
osh-native |
| 38 |
no-host |
configure.yash |
1,744 |
927 |
819 |
33.3 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
61 |
40 |
21 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
7.1 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
1 |
2 |
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,394 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,169 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,683 |
0 |
0 |
0 |
8 |
0 |
45 |
5 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,441 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,359 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
103,892 |
0 |
0 |
0 |
8 |
0 |
1,976 |
70 |
bash |
| 9 |
no-host |
bin-true |
49,420 |
0 |
0 |
0 |
8 |
0 |
2,965 |
75 |
dash |
| 17 |
no-host |
bin-true |
828,502 |
0 |
0 |
0 |
8 |
0 |
1,989 |
422 |
osh-cpython |
| 25 |
no-host |
bin-true |
138,263 |
0 |
0 |
0 |
16 |
0 |
1,973 |
96 |
osh-native |
| 33 |
no-host |
bin-true |
130,244 |
0 |
0 |
0 |
16 |
0 |
1,962 |
96 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,624,991 |
0 |
0 |
0 |
25,272 |
0 |
14,026 |
1,249 |
bash |
| 10 |
no-host |
configure.cpython |
1,638,942 |
0 |
0 |
0 |
25,272 |
0 |
14,077 |
1,239 |
dash |
| 18 |
no-host |
configure.cpython |
5,950,385 |
0 |
0 |
0 |
25,272 |
0 |
12,873 |
1,220 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,803,765 |
0 |
0 |
0 |
25,280 |
0 |
12,842 |
1,213 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,775,381 |
0 |
0 |
0 |
25,288 |
0 |
12,860 |
1,127 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,797 |
0 |
0 |
0 |
4,432 |
0 |
2,010 |
209 |
bash |
| 12 |
no-host |
configure.ocaml |
280,721 |
0 |
0 |
0 |
4,432 |
0 |
2,111 |
181 |
dash |
| 20 |
no-host |
configure.ocaml |
555,256 |
0 |
0 |
0 |
4,432 |
0 |
1,917 |
197 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
316,203 |
0 |
0 |
0 |
4,440 |
0 |
1,994 |
205 |
osh-native |
| 36 |
no-host |
configure.ocaml |
315,867 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
204 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,195 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,190 |
0 |
0 |
0 |
88 |
0 |
52 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
23,749 |
0 |
0 |
0 |
88 |
0 |
53 |
13 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,982 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,860 |
0 |
0 |
0 |
96 |
0 |
47 |
7 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,533,858 |
0 |
0 |
0 |
35,944 |
0 |
18,968 |
1,211 |
bash |
| 11 |
no-host |
configure.util-linux |
1,695,503 |
1 |
0 |
0 |
35,936 |
0 |
17,009 |
1,303 |
dash |
| 19 |
no-host |
configure.util-linux |
4,957,139 |
4 |
0 |
0 |
35,960 |
0 |
17,565 |
1,259 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,725,250 |
2 |
0 |
0 |
35,944 |
0 |
17,522 |
961 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,707,242 |
2 |
0 |
0 |
35,944 |
0 |
17,499 |
1,024 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,578 |
0 |
0 |
0 |
3,616 |
0 |
890 |
131 |
bash |
| 14 |
no-host |
configure.yash |
159,545 |
0 |
0 |
0 |
3,616 |
0 |
999 |
124 |
dash |
| 22 |
no-host |
configure.yash |
315,000 |
0 |
0 |
0 |
3,616 |
0 |
860 |
116 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,379 |
0 |
0 |
0 |
3,624 |
0 |
857 |
152 |
osh-native |
| 38 |
no-host |
configure.yash |
178,694 |
0 |
0 |
0 |
3,624 |
0 |
856 |
139 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
150 |
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,882 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
| 24 |
no-host |
hello-world |
386 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
375 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host