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 |
527 |
21 |
20 |
33.65 |
1.37 |
| bin-true |
no-host |
609 |
435 |
2,427 |
794 |
791 |
3.98 |
1.30 |
| configure.cpython |
no-host |
13,875 |
13,712 |
29,228 |
14,530 |
14,568 |
2.11 |
1.05 |
| configure.ocaml |
no-host |
3,626 |
3,581 |
4,619 |
3,719 |
3,705 |
1.27 |
1.03 |
| configure.tcc |
no-host |
45 |
40 |
222 |
49 |
48 |
4.89 |
1.07 |
| configure.util-linux |
no-host |
12,425 |
13,324 |
32,192 |
13,616 |
13,588 |
2.59 |
1.10 |
| configure.yash |
no-host |
1,692 |
1,620 |
2,425 |
1,712 |
1,700 |
1.43 |
1.01 |
| hello-world |
no-host |
1 |
1 |
60 |
3 |
3 |
50.06 |
2.44 |
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,427 |
1,176 |
24,966 |
3,482 |
3,334 |
10.29 |
1.43 |
| bin-true |
no-host |
98,940 |
49,385 |
832,698 |
135,240 |
133,338 |
8.42 |
1.37 |
| configure.cpython |
no-host |
1,625,167 |
1,639,487 |
6,017,256 |
1,805,220 |
1,780,487 |
3.70 |
1.11 |
| configure.ocaml |
no-host |
299,093 |
280,835 |
557,975 |
317,573 |
316,010 |
1.87 |
1.06 |
| configure.tcc |
no-host |
5,247 |
4,207 |
23,877 |
5,975 |
5,912 |
4.55 |
1.14 |
| configure.util-linux |
no-host |
1,539,057 |
1,700,913 |
5,005,829 |
1,719,611 |
1,702,006 |
3.25 |
1.12 |
| configure.yash |
no-host |
173,762 |
159,562 |
316,320 |
179,199 |
179,301 |
1.82 |
1.03 |
| hello-world |
no-host |
151 |
83 |
3,886 |
385 |
378 |
25.74 |
2.55 |
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.2 |
3,826 |
3,826 |
0 |
704 |
1,881 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
794 |
1 |
2 |
2.6 |
8.5 |
156,798 |
15,428 |
2,915 |
8,761 |
77,348 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,530 |
1 |
64 |
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,616 |
3 |
61 |
21.4 |
39.6 |
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,719 |
1 |
2 |
2.7 |
28.7 |
149,873 |
12,476 |
6,519 |
7,819 |
70,840 |
71,214 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
26.2 |
30,628 |
30,628 |
0 |
1,582 |
14,646 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,712 |
1 |
2 |
2.6 |
33.3 |
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 |
10.0 |
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 |
791 |
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,568 |
1 |
64 |
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,588 |
3 |
59 |
21.4 |
39.6 |
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,705 |
1 |
2 |
2.7 |
28.7 |
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.1 |
30,628 |
30,628 |
0 |
1,584 |
14,646 |
14,398 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,700 |
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 |
20 |
1 |
2 |
2.8 |
9.3 |
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 |
7 |
9 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
527 |
461 |
70 |
22.8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
21 |
15 |
8 |
10.0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
20 |
10 |
11 |
9.3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
609 |
316 |
331 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
435 |
283 |
158 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,427 |
872 |
1,824 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
794 |
323 |
489 |
8.5 |
osh-native |
| 33 |
no-host |
bin-true |
791 |
304 |
501 |
8.3 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,875 |
7,638 |
6,613 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
13,712 |
7,500 |
6,599 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
29,228 |
16,012 |
15,187 |
34.5 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,530 |
7,368 |
7,458 |
34.7 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,568 |
7,319 |
7,412 |
34.5 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,626 |
1,417 |
1,248 |
28.8 |
bash |
| 12 |
no-host |
configure.ocaml |
3,581 |
1,429 |
1,175 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,619 |
2,064 |
1,781 |
28.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,719 |
1,458 |
1,305 |
28.7 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,705 |
1,480 |
1,264 |
28.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
45 |
22 |
25 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
40 |
19 |
22 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
222 |
161 |
64 |
26.2 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
27 |
22 |
26.2 |
osh-native |
| 37 |
no-host |
configure.tcc |
48 |
22 |
27 |
26.1 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,425 |
6,528 |
6,357 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,324 |
6,509 |
7,297 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
32,192 |
20,133 |
13,151 |
39.5 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,616 |
6,380 |
7,460 |
39.6 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,588 |
6,174 |
7,481 |
39.6 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,692 |
982 |
718 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,620 |
914 |
708 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
2,425 |
1,461 |
1,007 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,712 |
924 |
790 |
33.3 |
osh-native |
| 38 |
no-host |
configure.yash |
1,700 |
921 |
782 |
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 |
40 |
20 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
7.2 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
3 |
0 |
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,427 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,176 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,966 |
0 |
0 |
0 |
8 |
0 |
45 |
6 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,482 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,334 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
98,940 |
0 |
0 |
0 |
8 |
0 |
1,986 |
58 |
bash |
| 9 |
no-host |
bin-true |
49,385 |
0 |
0 |
0 |
8 |
0 |
2,975 |
41 |
dash |
| 17 |
no-host |
bin-true |
832,698 |
0 |
0 |
0 |
8 |
0 |
1,992 |
139 |
osh-cpython |
| 25 |
no-host |
bin-true |
135,240 |
0 |
0 |
0 |
16 |
0 |
1,983 |
83 |
osh-native |
| 33 |
no-host |
bin-true |
133,338 |
0 |
0 |
0 |
16 |
0 |
1,980 |
93 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,625,167 |
0 |
0 |
0 |
25,272 |
0 |
14,022 |
1,034 |
bash |
| 10 |
no-host |
configure.cpython |
1,639,487 |
0 |
0 |
0 |
25,272 |
0 |
14,069 |
1,064 |
dash |
| 18 |
no-host |
configure.cpython |
6,017,256 |
0 |
0 |
0 |
25,272 |
0 |
12,865 |
990 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,805,220 |
0 |
0 |
0 |
25,280 |
0 |
12,847 |
1,054 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,780,487 |
0 |
0 |
0 |
25,280 |
0 |
12,843 |
1,022 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
299,093 |
0 |
0 |
0 |
4,432 |
0 |
2,008 |
196 |
bash |
| 12 |
no-host |
configure.ocaml |
280,835 |
0 |
0 |
0 |
4,432 |
0 |
2,100 |
196 |
dash |
| 20 |
no-host |
configure.ocaml |
557,975 |
1 |
0 |
0 |
4,432 |
0 |
1,905 |
193 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
317,573 |
0 |
0 |
0 |
4,440 |
0 |
1,995 |
225 |
osh-native |
| 36 |
no-host |
configure.ocaml |
316,010 |
0 |
0 |
0 |
4,440 |
0 |
1,992 |
193 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,247 |
0 |
0 |
0 |
80 |
0 |
48 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,207 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
23,877 |
0 |
0 |
0 |
88 |
0 |
53 |
5 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,975 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,912 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,539,057 |
1 |
0 |
0 |
35,944 |
0 |
18,970 |
1,069 |
bash |
| 11 |
no-host |
configure.util-linux |
1,700,913 |
1 |
0 |
0 |
35,936 |
0 |
17,059 |
1,215 |
dash |
| 19 |
no-host |
configure.util-linux |
5,005,829 |
1 |
0 |
0 |
35,944 |
0 |
17,537 |
853 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,719,611 |
1 |
0 |
0 |
35,944 |
0 |
17,526 |
1,122 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,702,006 |
2 |
0 |
0 |
35,944 |
0 |
17,437 |
1,053 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,762 |
0 |
0 |
0 |
3,616 |
0 |
880 |
93 |
bash |
| 14 |
no-host |
configure.yash |
159,562 |
0 |
0 |
0 |
3,616 |
0 |
998 |
87 |
dash |
| 22 |
no-host |
configure.yash |
316,320 |
0 |
0 |
0 |
3,616 |
0 |
861 |
107 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,199 |
0 |
0 |
0 |
3,624 |
0 |
854 |
96 |
osh-native |
| 38 |
no-host |
configure.yash |
179,301 |
0 |
0 |
0 |
3,624 |
0 |
853 |
100 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
151 |
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,886 |
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 |
378 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host