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 |
530 |
23 |
21 |
33.58 |
1.45 |
| bin-true |
no-host |
650 |
456 |
2,506 |
816 |
825 |
3.85 |
1.26 |
| configure.cpython |
no-host |
14,283 |
14,209 |
29,910 |
14,999 |
15,105 |
2.09 |
1.05 |
| configure.ocaml |
no-host |
3,732 |
3,698 |
4,740 |
3,799 |
3,823 |
1.27 |
1.02 |
| configure.tcc |
no-host |
47 |
42 |
225 |
49 |
51 |
4.79 |
1.05 |
| configure.util-linux |
no-host |
13,182 |
13,727 |
32,923 |
13,990 |
14,069 |
2.50 |
1.06 |
| configure.yash |
no-host |
1,755 |
1,700 |
2,475 |
1,762 |
1,774 |
1.41 |
1.00 |
| hello-world |
no-host |
1 |
1 |
61 |
3 |
3 |
45.76 |
2.20 |
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,404 |
1,198 |
24,696 |
3,475 |
3,351 |
10.27 |
1.45 |
| bin-true |
no-host |
101,922 |
49,423 |
830,545 |
132,291 |
134,269 |
8.15 |
1.30 |
| configure.cpython |
no-host |
1,626,480 |
1,638,917 |
5,955,470 |
1,798,302 |
1,786,714 |
3.66 |
1.11 |
| configure.ocaml |
no-host |
299,100 |
280,763 |
554,734 |
316,522 |
316,344 |
1.85 |
1.06 |
| configure.tcc |
no-host |
5,179 |
4,193 |
23,697 |
5,929 |
5,895 |
4.58 |
1.14 |
| configure.util-linux |
no-host |
1,536,900 |
1,701,339 |
4,962,359 |
1,712,463 |
1,698,577 |
3.23 |
1.11 |
| configure.yash |
no-host |
173,556 |
159,535 |
315,012 |
179,159 |
178,771 |
1.82 |
1.03 |
| hello-world |
no-host |
153 |
83 |
3,875 |
383 |
381 |
25.33 |
2.50 |
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,825 |
3,825 |
0 |
704 |
1,880 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
816 |
1 |
2 |
2.6 |
8.7 |
156,797 |
15,428 |
2,915 |
8,761 |
77,347 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,999 |
2 |
71 |
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 |
13,990 |
3 |
64 |
21.4 |
39.6 |
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,799 |
1 |
2 |
2.7 |
28.8 |
149,872 |
12,476 |
6,519 |
7,819 |
70,839 |
71,214 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
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,762 |
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.7 |
3,824 |
3,824 |
0 |
705 |
1,880 |
1,239 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
825 |
1 |
2 |
2.6 |
8.4 |
156,796 |
15,423 |
2,910 |
8,762 |
77,347 |
70,687 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,105 |
1 |
66 |
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 |
14,069 |
3 |
62 |
21.4 |
39.7 |
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,823 |
1 |
2 |
2.7 |
28.6 |
149,872 |
12,470 |
6,513 |
7,821 |
70,839 |
71,212 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
51 |
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,774 |
1 |
2 |
2.6 |
33.1 |
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.2 |
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.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
6 |
4 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
530 |
473 |
61 |
22.8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
23 |
10 |
13 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
11 |
11 |
9.2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
650 |
320 |
371 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
456 |
280 |
183 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,506 |
886 |
1,890 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
816 |
320 |
514 |
8.7 |
osh-native |
| 33 |
no-host |
bin-true |
825 |
300 |
542 |
8.4 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,283 |
7,643 |
7,025 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,209 |
7,685 |
6,939 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
29,910 |
16,277 |
15,618 |
34.5 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,999 |
7,478 |
7,834 |
34.5 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,105 |
7,434 |
7,817 |
34.5 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,732 |
1,458 |
1,315 |
28.8 |
bash |
| 12 |
no-host |
configure.ocaml |
3,698 |
1,482 |
1,242 |
28.5 |
dash |
| 20 |
no-host |
configure.ocaml |
4,740 |
2,111 |
1,856 |
28.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,799 |
1,496 |
1,346 |
28.8 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,823 |
1,467 |
1,398 |
28.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
47 |
25 |
23 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
25 |
17 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
225 |
148 |
81 |
26.2 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
27 |
23 |
26.2 |
osh-native |
| 37 |
no-host |
configure.tcc |
51 |
27 |
25 |
26.2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
13,182 |
6,636 |
7,028 |
39.9 |
bash |
| 11 |
no-host |
configure.util-linux |
13,727 |
6,480 |
7,765 |
39.9 |
dash |
| 19 |
no-host |
configure.util-linux |
32,923 |
20,361 |
13,669 |
39.7 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,990 |
6,370 |
7,867 |
39.6 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,069 |
6,388 |
7,769 |
39.7 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,755 |
949 |
814 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,700 |
944 |
756 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
2,475 |
1,447 |
1,071 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,762 |
959 |
806 |
33.3 |
osh-native |
| 38 |
no-host |
configure.yash |
1,774 |
958 |
819 |
33.1 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
61 |
36 |
25 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
6.9 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
1 |
2 |
6.7 |
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,404 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,198 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,696 |
0 |
0 |
0 |
8 |
0 |
45 |
2 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,475 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,351 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
101,922 |
0 |
0 |
0 |
8 |
0 |
1,984 |
145 |
bash |
| 9 |
no-host |
bin-true |
49,423 |
0 |
0 |
0 |
8 |
0 |
2,963 |
60 |
dash |
| 17 |
no-host |
bin-true |
830,545 |
0 |
0 |
0 |
8 |
0 |
1,976 |
399 |
osh-cpython |
| 25 |
no-host |
bin-true |
132,291 |
0 |
0 |
0 |
16 |
0 |
1,977 |
111 |
osh-native |
| 33 |
no-host |
bin-true |
134,269 |
0 |
0 |
0 |
16 |
0 |
1,971 |
89 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,626,480 |
0 |
0 |
0 |
25,296 |
0 |
14,065 |
1,142 |
bash |
| 10 |
no-host |
configure.cpython |
1,638,917 |
0 |
0 |
0 |
25,272 |
0 |
14,091 |
1,239 |
dash |
| 18 |
no-host |
configure.cpython |
5,955,470 |
0 |
0 |
0 |
25,272 |
0 |
12,879 |
1,243 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,798,302 |
0 |
0 |
0 |
25,280 |
0 |
12,846 |
1,193 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,786,714 |
0 |
0 |
0 |
25,280 |
0 |
12,846 |
1,139 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
299,100 |
0 |
0 |
0 |
4,432 |
0 |
2,007 |
204 |
bash |
| 12 |
no-host |
configure.ocaml |
280,763 |
0 |
0 |
0 |
4,432 |
0 |
2,099 |
174 |
dash |
| 20 |
no-host |
configure.ocaml |
554,734 |
0 |
0 |
0 |
4,464 |
0 |
1,916 |
205 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
316,522 |
0 |
0 |
0 |
4,440 |
0 |
1,996 |
210 |
osh-native |
| 36 |
no-host |
configure.ocaml |
316,344 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
239 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,179 |
0 |
0 |
0 |
80 |
0 |
49 |
6 |
bash |
| 13 |
no-host |
configure.tcc |
4,193 |
0 |
0 |
0 |
88 |
0 |
52 |
10 |
dash |
| 21 |
no-host |
configure.tcc |
23,697 |
0 |
0 |
0 |
88 |
0 |
53 |
12 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,929 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,895 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,536,900 |
1 |
0 |
0 |
35,944 |
0 |
18,981 |
1,165 |
bash |
| 11 |
no-host |
configure.util-linux |
1,701,339 |
0 |
0 |
0 |
35,936 |
0 |
17,133 |
1,296 |
dash |
| 19 |
no-host |
configure.util-linux |
4,962,359 |
4 |
0 |
0 |
35,944 |
0 |
17,516 |
1,055 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,712,463 |
7 |
0 |
0 |
35,944 |
0 |
17,516 |
1,018 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,698,577 |
1 |
0 |
0 |
35,944 |
0 |
17,532 |
1,014 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,556 |
0 |
0 |
0 |
3,616 |
0 |
876 |
148 |
bash |
| 14 |
no-host |
configure.yash |
159,535 |
0 |
0 |
0 |
3,616 |
0 |
996 |
128 |
dash |
| 22 |
no-host |
configure.yash |
315,012 |
0 |
0 |
0 |
3,616 |
0 |
859 |
129 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,159 |
0 |
0 |
0 |
3,624 |
0 |
856 |
128 |
osh-native |
| 38 |
no-host |
configure.yash |
178,771 |
0 |
0 |
0 |
3,624 |
0 |
854 |
144 |
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,875 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
383 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
| 32 |
no-host |
hello-world |
381 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host