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 |
523 |
21 |
21 |
32.31 |
1.32 |
| bin-true |
no-host |
608 |
448 |
2,431 |
797 |
784 |
4.00 |
1.31 |
| configure.cpython |
no-host |
13,552 |
13,594 |
29,041 |
14,341 |
14,527 |
2.14 |
1.06 |
| configure.ocaml |
no-host |
3,625 |
3,569 |
4,572 |
3,680 |
3,664 |
1.26 |
1.02 |
| configure.tcc |
no-host |
45 |
41 |
216 |
48 |
48 |
4.75 |
1.06 |
| configure.util-linux |
no-host |
12,340 |
13,138 |
31,845 |
13,421 |
13,471 |
2.58 |
1.09 |
| configure.yash |
no-host |
1,660 |
1,606 |
2,376 |
1,688 |
1,686 |
1.43 |
1.02 |
| hello-world |
no-host |
1 |
1 |
60 |
3 |
3 |
51.11 |
2.43 |
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,438 |
1,156 |
24,894 |
3,483 |
3,408 |
10.21 |
1.43 |
| bin-true |
no-host |
101,878 |
49,366 |
833,690 |
136,290 |
133,292 |
8.18 |
1.34 |
| configure.cpython |
no-host |
1,619,743 |
1,636,301 |
6,014,040 |
1,809,078 |
1,802,051 |
3.71 |
1.12 |
| configure.ocaml |
no-host |
299,278 |
280,945 |
557,670 |
316,700 |
315,889 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,208 |
4,212 |
23,846 |
5,988 |
5,871 |
4.58 |
1.15 |
| configure.util-linux |
no-host |
1,532,527 |
1,698,010 |
5,004,099 |
1,715,532 |
1,710,119 |
3.27 |
1.12 |
| configure.yash |
no-host |
173,375 |
159,563 |
316,165 |
179,633 |
179,330 |
1.82 |
1.04 |
| hello-world |
no-host |
150 |
85 |
3,889 |
385 |
378 |
25.93 |
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 |
6.9 |
3,826 |
3,826 |
0 |
704 |
1,881 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
797 |
1 |
2 |
2.6 |
8.7 |
156,798 |
15,428 |
2,915 |
8,761 |
77,348 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,341 |
1 |
62 |
15.2 |
34.7 |
1,782,989 |
46,101 |
25,356 |
91,622 |
885,112 |
806,255 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,421 |
3 |
58 |
21.4 |
39.7 |
2,707,122 |
126,354 |
66,586 |
113,463 |
1,294,568 |
1,299,091 |
32,539 |
41 |
133,172 |
1 |
| configure.ocaml |
no-host |
3,680 |
1 |
2 |
2.7 |
28.6 |
149,873 |
12,476 |
6,519 |
7,819 |
70,840 |
71,214 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
26.0 |
30,628 |
30,628 |
0 |
1,582 |
14,646 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,688 |
1 |
2 |
2.6 |
33.1 |
140,017 |
8,080 |
6,714 |
6,526 |
68,348 |
65,143 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
9.8 |
116,368 |
64,438 |
42,639 |
4,562 |
54,472 |
57,334 |
277 |
3 |
85,278 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.4 |
3,825 |
3,825 |
0 |
705 |
1,881 |
1,239 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
784 |
1 |
2 |
2.6 |
8.3 |
156,797 |
15,423 |
2,910 |
8,762 |
77,348 |
70,687 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,527 |
1 |
60 |
15.2 |
34.5 |
1,782,988 |
46,087 |
25,352 |
91,623 |
885,112 |
806,253 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,471 |
3 |
57 |
21.4 |
39.9 |
2,707,122 |
126,347 |
66,579 |
113,465 |
1,294,568 |
1,299,089 |
32,539 |
41 |
133,158 |
1 |
| configure.ocaml |
no-host |
3,664 |
1 |
2 |
2.7 |
28.8 |
149,873 |
12,470 |
6,513 |
7,821 |
70,840 |
71,212 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
26.3 |
30,628 |
30,628 |
0 |
1,584 |
14,646 |
14,398 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,686 |
1 |
2 |
2.6 |
33.5 |
140,017 |
8,069 |
6,703 |
6,528 |
68,348 |
65,141 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
9.4 |
116,367 |
64,433 |
42,634 |
4,563 |
54,472 |
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 |
10 |
7 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
4 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
523 |
469 |
57 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
21 |
12 |
10 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
9 |
12 |
9.4 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
608 |
304 |
343 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
448 |
281 |
173 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
2,431 |
944 |
1,756 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
797 |
323 |
492 |
8.7 |
osh-native |
| 33 |
no-host |
bin-true |
784 |
304 |
496 |
8.3 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,552 |
7,385 |
6,544 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,594 |
7,409 |
6,570 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
29,041 |
15,992 |
15,000 |
34.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,341 |
7,173 |
7,465 |
34.7 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,527 |
7,186 |
7,444 |
34.5 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,625 |
1,478 |
1,187 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,569 |
1,417 |
1,175 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,572 |
2,046 |
1,742 |
28.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,680 |
1,514 |
1,208 |
28.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,664 |
1,480 |
1,222 |
28.8 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
45 |
28 |
18 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
24 |
16 |
26.0 |
dash |
| 21 |
no-host |
configure.tcc |
216 |
148 |
72 |
26.3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
48 |
28 |
21 |
26.0 |
osh-native |
| 37 |
no-host |
configure.tcc |
48 |
28 |
21 |
26.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,340 |
6,441 |
6,351 |
39.9 |
bash |
| 11 |
no-host |
configure.util-linux |
13,138 |
6,437 |
7,182 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
31,845 |
20,066 |
12,853 |
39.5 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,421 |
6,213 |
7,439 |
39.7 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,471 |
6,125 |
7,432 |
39.9 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,660 |
933 |
736 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,606 |
894 |
715 |
33.5 |
dash |
| 22 |
no-host |
configure.yash |
2,376 |
1,423 |
994 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,688 |
930 |
761 |
33.1 |
osh-native |
| 38 |
no-host |
configure.yash |
1,686 |
931 |
758 |
33.5 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
60 |
46 |
14 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
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,438 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,156 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,894 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,483 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,408 |
0 |
0 |
0 |
16 |
0 |
38 |
0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
101,878 |
0 |
0 |
0 |
8 |
0 |
1,981 |
65 |
bash |
| 9 |
no-host |
bin-true |
49,366 |
0 |
0 |
0 |
8 |
0 |
2,964 |
50 |
dash |
| 17 |
no-host |
bin-true |
833,690 |
0 |
0 |
0 |
8 |
0 |
1,974 |
136 |
osh-cpython |
| 25 |
no-host |
bin-true |
136,290 |
0 |
0 |
0 |
16 |
0 |
1,959 |
95 |
osh-native |
| 33 |
no-host |
bin-true |
133,292 |
0 |
0 |
0 |
16 |
0 |
1,961 |
89 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,619,743 |
0 |
0 |
0 |
25,272 |
0 |
14,020 |
1,043 |
bash |
| 10 |
no-host |
configure.cpython |
1,636,301 |
0 |
0 |
0 |
25,272 |
0 |
14,070 |
1,059 |
dash |
| 18 |
no-host |
configure.cpython |
6,014,040 |
0 |
0 |
0 |
25,272 |
0 |
12,873 |
852 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,809,078 |
0 |
0 |
0 |
25,280 |
0 |
12,852 |
1,066 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,802,051 |
0 |
0 |
0 |
25,280 |
0 |
12,816 |
1,031 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
299,278 |
0 |
0 |
0 |
4,432 |
0 |
2,008 |
182 |
bash |
| 12 |
no-host |
configure.ocaml |
280,945 |
0 |
0 |
0 |
4,432 |
0 |
2,095 |
201 |
dash |
| 20 |
no-host |
configure.ocaml |
557,670 |
0 |
0 |
0 |
4,432 |
0 |
1,908 |
189 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
316,700 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
216 |
osh-native |
| 36 |
no-host |
configure.ocaml |
315,889 |
0 |
0 |
0 |
4,440 |
0 |
1,996 |
198 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,208 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,212 |
0 |
0 |
0 |
88 |
0 |
51 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
23,846 |
0 |
0 |
0 |
88 |
0 |
53 |
4 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,988 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,871 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,532,527 |
1 |
0 |
0 |
35,944 |
0 |
18,975 |
1,042 |
bash |
| 11 |
no-host |
configure.util-linux |
1,698,010 |
2 |
0 |
0 |
35,936 |
0 |
17,087 |
1,179 |
dash |
| 19 |
no-host |
configure.util-linux |
5,004,099 |
3 |
0 |
0 |
35,952 |
0 |
17,492 |
826 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,715,532 |
4 |
0 |
0 |
35,944 |
0 |
17,411 |
1,073 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,710,119 |
0 |
0 |
0 |
35,944 |
0 |
17,448 |
1,127 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,375 |
0 |
0 |
0 |
3,616 |
0 |
873 |
101 |
bash |
| 14 |
no-host |
configure.yash |
159,563 |
0 |
0 |
0 |
3,616 |
0 |
999 |
103 |
dash |
| 22 |
no-host |
configure.yash |
316,165 |
0 |
0 |
0 |
3,616 |
0 |
863 |
96 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,633 |
0 |
0 |
0 |
3,624 |
0 |
858 |
103 |
osh-native |
| 38 |
no-host |
configure.yash |
179,330 |
0 |
0 |
0 |
3,624 |
0 |
856 |
102 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
85 |
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 |
385 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
378 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native-souffle |
Shell and Host