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 |
536 |
22 |
21 |
33.62 |
1.36 |
| bin-true |
no-host |
611 |
433 |
2,479 |
798 |
796 |
4.06 |
1.31 |
| configure.cpython |
no-host |
13,881 |
13,868 |
29,905 |
14,666 |
14,819 |
2.15 |
1.06 |
| configure.ocaml |
no-host |
3,673 |
3,662 |
4,674 |
3,757 |
3,745 |
1.27 |
1.02 |
| configure.tcc |
no-host |
46 |
41 |
223 |
49 |
49 |
4.86 |
1.07 |
| configure.util-linux |
no-host |
12,609 |
13,381 |
32,424 |
13,658 |
13,759 |
2.57 |
1.08 |
| configure.yash |
no-host |
1,698 |
1,673 |
2,438 |
1,738 |
1,734 |
1.44 |
1.02 |
| hello-world |
no-host |
1 |
1 |
61 |
3 |
3 |
48.88 |
2.35 |
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,384 |
1,189 |
24,697 |
3,434 |
3,343 |
10.36 |
1.44 |
| bin-true |
no-host |
101,925 |
49,415 |
839,669 |
137,295 |
135,265 |
8.24 |
1.35 |
| configure.cpython |
no-host |
1,612,104 |
1,639,094 |
5,993,798 |
1,801,943 |
1,792,161 |
3.72 |
1.12 |
| configure.ocaml |
no-host |
298,751 |
280,704 |
558,098 |
316,886 |
315,359 |
1.87 |
1.06 |
| configure.tcc |
no-host |
5,195 |
4,185 |
23,940 |
5,959 |
5,894 |
4.61 |
1.15 |
| configure.util-linux |
no-host |
1,540,066 |
1,693,006 |
4,983,860 |
1,720,944 |
1,717,737 |
3.24 |
1.12 |
| configure.yash |
no-host |
173,429 |
159,476 |
315,973 |
179,758 |
179,276 |
1.82 |
1.04 |
| hello-world |
no-host |
153 |
88 |
3,877 |
385 |
377 |
25.34 |
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,827 |
3,827 |
0 |
704 |
1,881 |
1,242 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
798 |
1 |
2 |
2.6 |
8.8 |
156,799 |
15,429 |
2,916 |
8,761 |
77,348 |
70,690 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,666 |
1 |
66 |
15.2 |
34.4 |
1,782,990 |
46,102 |
25,357 |
91,622 |
885,112 |
806,256 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,658 |
3 |
60 |
21.4 |
39.5 |
2,707,123 |
126,355 |
66,587 |
113,463 |
1,294,568 |
1,299,092 |
32,539 |
41 |
133,174 |
1 |
| configure.ocaml |
no-host |
3,757 |
1 |
2 |
2.7 |
28.7 |
149,874 |
12,477 |
6,520 |
7,819 |
70,840 |
71,215 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
26.3 |
30,629 |
30,629 |
0 |
1,582 |
14,646 |
14,401 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,738 |
1 |
2 |
2.6 |
33.4 |
140,018 |
8,081 |
6,715 |
6,526 |
68,348 |
65,144 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.8 |
116,369 |
64,439 |
42,640 |
4,562 |
54,472 |
57,335 |
277 |
3 |
85,280 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.3 |
3,826 |
3,826 |
0 |
705 |
1,881 |
1,240 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
796 |
1 |
2 |
2.6 |
8.3 |
156,798 |
15,424 |
2,911 |
8,762 |
77,348 |
70,688 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,819 |
1 |
65 |
15.2 |
34.5 |
1,782,989 |
46,088 |
25,353 |
91,623 |
885,112 |
806,254 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,759 |
3 |
60 |
21.4 |
39.6 |
2,707,123 |
126,348 |
66,580 |
113,465 |
1,294,568 |
1,299,090 |
32,539 |
41 |
133,160 |
1 |
| configure.ocaml |
no-host |
3,745 |
1 |
2 |
2.7 |
28.8 |
149,874 |
12,471 |
6,514 |
7,821 |
70,840 |
71,213 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
26.3 |
30,629 |
30,629 |
0 |
1,584 |
14,646 |
14,399 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,734 |
1 |
2 |
2.6 |
33.5 |
140,018 |
8,070 |
6,704 |
6,528 |
68,348 |
65,142 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
9.3 |
116,368 |
64,434 |
42,635 |
4,563 |
54,472 |
57,333 |
277 |
3 |
85,270 |
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 |
8 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
3 |
6 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
536 |
489 |
50 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
12 |
10 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
13 |
9 |
9.3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
611 |
305 |
344 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
433 |
271 |
168 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,479 |
870 |
1,882 |
18.3 |
osh-cpython |
| 25 |
no-host |
bin-true |
798 |
318 |
497 |
8.8 |
osh-native |
| 33 |
no-host |
bin-true |
796 |
302 |
509 |
8.3 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,881 |
7,545 |
6,708 |
34.6 |
bash |
| 10 |
no-host |
configure.cpython |
13,868 |
7,598 |
6,657 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
29,905 |
16,343 |
15,568 |
34.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,666 |
7,480 |
7,475 |
34.4 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,819 |
7,398 |
7,536 |
34.5 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,673 |
1,473 |
1,238 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,662 |
1,477 |
1,205 |
28.8 |
dash |
| 20 |
no-host |
configure.ocaml |
4,674 |
2,128 |
1,766 |
28.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,757 |
1,480 |
1,315 |
28.7 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,745 |
1,497 |
1,287 |
28.8 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
24 |
23 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
24 |
18 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
223 |
151 |
76 |
26.0 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
25 |
25 |
26.3 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
30 |
19 |
26.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,609 |
6,599 |
6,452 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,381 |
6,501 |
7,355 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
32,424 |
20,391 |
13,099 |
39.6 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,658 |
6,383 |
7,507 |
39.5 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,759 |
6,345 |
7,487 |
39.6 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,698 |
950 |
755 |
33.1 |
bash |
| 14 |
no-host |
configure.yash |
1,673 |
946 |
728 |
33.1 |
dash |
| 22 |
no-host |
configure.yash |
2,438 |
1,502 |
979 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,738 |
959 |
782 |
33.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,734 |
973 |
762 |
33.5 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
1 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
61 |
42 |
19 |
18.2 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
6.9 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
2 |
1 |
6.3 |
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,384 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,189 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,697 |
0 |
0 |
0 |
8 |
0 |
45 |
8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,434 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,343 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
101,925 |
0 |
0 |
0 |
8 |
0 |
1,989 |
59 |
bash |
| 9 |
no-host |
bin-true |
49,415 |
0 |
0 |
0 |
8 |
0 |
2,981 |
42 |
dash |
| 17 |
no-host |
bin-true |
839,669 |
0 |
0 |
0 |
8 |
0 |
1,988 |
126 |
osh-cpython |
| 25 |
no-host |
bin-true |
137,295 |
0 |
0 |
0 |
16 |
0 |
1,987 |
67 |
osh-native |
| 33 |
no-host |
bin-true |
135,265 |
0 |
0 |
0 |
16 |
0 |
1,989 |
98 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,612,104 |
0 |
0 |
0 |
25,272 |
0 |
14,029 |
1,117 |
bash |
| 10 |
no-host |
configure.cpython |
1,639,094 |
0 |
0 |
0 |
25,272 |
0 |
14,115 |
1,046 |
dash |
| 18 |
no-host |
configure.cpython |
5,993,798 |
0 |
0 |
0 |
25,272 |
0 |
12,866 |
901 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,801,943 |
0 |
0 |
0 |
25,280 |
0 |
12,844 |
1,086 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,792,161 |
0 |
0 |
0 |
25,280 |
0 |
12,859 |
1,187 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,751 |
0 |
0 |
0 |
4,432 |
0 |
2,013 |
173 |
bash |
| 12 |
no-host |
configure.ocaml |
280,704 |
0 |
0 |
0 |
4,432 |
0 |
2,099 |
224 |
dash |
| 20 |
no-host |
configure.ocaml |
558,098 |
0 |
0 |
0 |
4,432 |
0 |
1,919 |
186 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
316,886 |
0 |
0 |
0 |
4,440 |
0 |
1,995 |
214 |
osh-native |
| 36 |
no-host |
configure.ocaml |
315,359 |
0 |
0 |
0 |
4,440 |
0 |
2,004 |
207 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,195 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,185 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
23,940 |
0 |
0 |
0 |
88 |
0 |
53 |
7 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,959 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,894 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,540,066 |
2 |
0 |
0 |
35,944 |
0 |
18,953 |
1,119 |
bash |
| 11 |
no-host |
configure.util-linux |
1,693,006 |
0 |
0 |
0 |
35,936 |
0 |
17,042 |
1,187 |
dash |
| 19 |
no-host |
configure.util-linux |
4,983,860 |
1 |
0 |
0 |
35,944 |
0 |
17,521 |
1,016 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,720,944 |
0 |
0 |
0 |
35,944 |
0 |
17,493 |
1,055 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,717,737 |
2 |
0 |
0 |
35,952 |
0 |
17,532 |
1,050 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,429 |
0 |
0 |
0 |
3,616 |
0 |
873 |
95 |
bash |
| 14 |
no-host |
configure.yash |
159,476 |
0 |
0 |
0 |
3,624 |
0 |
999 |
101 |
dash |
| 22 |
no-host |
configure.yash |
315,973 |
0 |
0 |
0 |
3,616 |
0 |
862 |
102 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,758 |
0 |
0 |
0 |
3,624 |
0 |
857 |
97 |
osh-native |
| 38 |
no-host |
configure.yash |
179,276 |
0 |
0 |
0 |
3,624 |
0 |
858 |
91 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
88 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,877 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
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