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 |
19 |
9 |
474 |
21 |
20 |
25.23 |
1.14 |
bin-true |
no-host |
660 |
524 |
2,332 |
793 |
793 |
3.54 |
1.20 |
configure.cpython |
no-host |
14,657 |
14,584 |
28,393 |
14,685 |
14,652 |
1.94 |
1.00 |
configure.ocaml |
no-host |
3,717 |
3,649 |
4,587 |
3,728 |
3,721 |
1.23 |
1.00 |
configure.tcc |
no-host |
46 |
41 |
200 |
47 |
47 |
4.35 |
1.02 |
configure.util-linux |
no-host |
13,521 |
14,377 |
30,956 |
13,835 |
13,801 |
2.29 |
1.02 |
configure.yash |
no-host |
1,777 |
1,737 |
2,429 |
1,781 |
1,784 |
1.37 |
1.00 |
hello-world |
no-host |
1 |
1 |
56 |
3 |
3 |
43.46 |
2.15 |
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,526 |
1,127 |
23,897 |
3,167 |
3,089 |
9.46 |
1.25 |
bin-true |
no-host |
106,377 |
67,458 |
776,185 |
127,147 |
126,187 |
7.30 |
1.20 |
configure.cpython |
no-host |
1,998,989 |
2,018,071 |
6,019,492 |
1,996,046 |
1,981,986 |
3.01 |
1.00 |
configure.ocaml |
no-host |
373,616 |
353,871 |
610,904 |
375,943 |
375,207 |
1.64 |
1.01 |
configure.tcc |
no-host |
6,087 |
5,001 |
23,747 |
6,494 |
6,425 |
3.90 |
1.07 |
configure.util-linux |
no-host |
1,907,060 |
2,067,950 |
5,224,980 |
1,807,296 |
1,801,603 |
2.74 |
0.95 |
configure.yash |
no-host |
233,862 |
221,742 |
365,798 |
235,061 |
235,056 |
1.56 |
1.01 |
hello-world |
no-host |
150 |
77 |
3,965 |
343 |
337 |
26.43 |
2.29 |
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.2 |
6.3 |
3,789 |
3,789 |
0 |
695 |
1,861 |
1,233 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
793 |
1 |
2 |
2.6 |
8.0 |
153,753 |
12,329 |
2,894 |
8,744 |
76,325 |
68,684 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
14,685 |
1 |
64 |
14.9 |
29.2 |
1,767,675 |
49,060 |
28,519 |
85,428 |
875,384 |
806,863 |
25,736 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
13,835 |
3 |
61 |
21.2 |
30.3 |
2,698,991 |
29,940 |
65,718 |
108,700 |
1,288,281 |
1,302,010 |
32,241 |
41 |
131,436 |
1 |
configure.ocaml |
no-host |
3,728 |
1 |
2 |
2.6 |
22.6 |
149,553 |
11,119 |
5,214 |
7,509 |
70,616 |
71,428 |
1,695 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
47 |
0 |
0 |
1.3 |
19.7 |
30,539 |
30,539 |
0 |
1,519 |
14,608 |
14,412 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,781 |
1 |
2 |
2.5 |
26.4 |
139,269 |
8,031 |
6,693 |
5,990 |
67,845 |
65,434 |
2,095 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
9.0 |
116,299 |
64,410 |
42,620 |
4,533 |
54,439 |
57,327 |
277 |
3 |
85,240 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.6 |
3,788 |
3,788 |
0 |
696 |
1,861 |
1,231 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
793 |
1 |
2 |
2.6 |
7.7 |
153,752 |
12,118 |
2,832 |
8,745 |
76,325 |
68,682 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
14,652 |
2 |
65 |
14.9 |
29.1 |
1,767,674 |
37,983 |
24,932 |
85,429 |
875,384 |
806,861 |
25,736 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
13,801 |
3 |
61 |
21.2 |
30.4 |
2,698,991 |
29,878 |
65,656 |
108,702 |
1,288,281 |
1,302,008 |
32,241 |
41 |
131,312 |
1 |
configure.ocaml |
no-host |
3,721 |
1 |
2 |
2.6 |
22.5 |
149,553 |
11,057 |
5,152 |
7,511 |
70,616 |
71,426 |
1,695 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
47 |
0 |
0 |
1.3 |
19.7 |
30,539 |
30,539 |
0 |
1,521 |
14,608 |
14,410 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,784 |
1 |
2 |
2.5 |
26.3 |
139,269 |
7,969 |
6,631 |
5,992 |
67,845 |
65,432 |
2,095 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
20 |
1 |
2 |
2.8 |
8.5 |
116,298 |
64,348 |
42,558 |
4,534 |
54,439 |
57,325 |
277 |
3 |
85,116 |
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 |
19 |
8 |
11 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
4 |
6 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
474 |
433 |
45 |
22.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
21 |
12 |
10 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
20 |
11 |
10 |
8.5 |
osh-native-souffle |
1 |
no-host |
bin-true |
660 |
314 |
380 |
2.9 |
bash |
9 |
no-host |
bin-true |
524 |
279 |
258 |
1.3 |
dash |
17 |
no-host |
bin-true |
2,332 |
766 |
1,835 |
18.5 |
osh-cpython |
25 |
no-host |
bin-true |
793 |
302 |
508 |
8.0 |
osh-native |
33 |
no-host |
bin-true |
793 |
297 |
512 |
7.7 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
14,657 |
6,626 |
8,420 |
29.1 |
bash |
10 |
no-host |
configure.cpython |
14,584 |
6,621 |
8,400 |
29.2 |
dash |
18 |
no-host |
configure.cpython |
28,393 |
14,097 |
16,191 |
29.1 |
osh-cpython |
26 |
no-host |
configure.cpython |
14,685 |
6,521 |
8,441 |
29.2 |
osh-native |
34 |
no-host |
configure.cpython |
14,652 |
6,337 |
8,595 |
29.1 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,717 |
1,294 |
1,465 |
22.6 |
bash |
12 |
no-host |
configure.ocaml |
3,649 |
1,247 |
1,424 |
22.6 |
dash |
20 |
no-host |
configure.ocaml |
4,587 |
1,850 |
1,951 |
22.5 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,728 |
1,295 |
1,472 |
22.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,721 |
1,277 |
1,483 |
22.5 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
46 |
20 |
27 |
19.5 |
bash |
13 |
no-host |
configure.tcc |
41 |
19 |
22 |
19.6 |
dash |
21 |
no-host |
configure.tcc |
200 |
139 |
65 |
19.7 |
osh-cpython |
29 |
no-host |
configure.tcc |
47 |
21 |
27 |
19.7 |
osh-native |
37 |
no-host |
configure.tcc |
47 |
23 |
24 |
19.7 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
13,521 |
5,676 |
8,338 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,377 |
5,879 |
9,025 |
30.2 |
dash |
19 |
no-host |
configure.util-linux |
30,956 |
17,692 |
14,355 |
30.2 |
osh-cpython |
27 |
no-host |
configure.util-linux |
13,835 |
5,648 |
8,410 |
30.3 |
osh-native |
35 |
no-host |
configure.util-linux |
13,801 |
5,463 |
8,558 |
30.4 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,777 |
847 |
939 |
26.4 |
bash |
14 |
no-host |
configure.yash |
1,737 |
881 |
859 |
26.5 |
dash |
22 |
no-host |
configure.yash |
2,429 |
1,361 |
1,110 |
26.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,781 |
871 |
914 |
26.4 |
osh-native |
38 |
no-host |
configure.yash |
1,784 |
897 |
893 |
26.3 |
osh-native-souffle |
0 |
no-host |
hello-world |
1 |
0 |
1 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
16 |
no-host |
hello-world |
56 |
34 |
22 |
18.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.3 |
osh-native |
32 |
no-host |
hello-world |
3 |
2 |
1 |
5.6 |
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,526 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
bash |
15 |
no-host |
abuild-print-help |
1,127 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,897 |
0 |
0 |
0 |
8 |
0 |
45 |
6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,167 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
39 |
no-host |
abuild-print-help |
3,089 |
0 |
0 |
0 |
16 |
0 |
39 |
5 |
osh-native-souffle |
1 |
no-host |
bin-true |
106,377 |
0 |
0 |
0 |
8 |
0 |
1,990 |
63 |
bash |
9 |
no-host |
bin-true |
67,458 |
0 |
0 |
0 |
8 |
0 |
1,972 |
58 |
dash |
17 |
no-host |
bin-true |
776,185 |
0 |
0 |
0 |
8 |
0 |
1,989 |
151 |
osh-cpython |
25 |
no-host |
bin-true |
127,147 |
0 |
0 |
0 |
16 |
0 |
1,983 |
145 |
osh-native |
33 |
no-host |
bin-true |
126,187 |
0 |
0 |
0 |
16 |
0 |
1,982 |
158 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
1,998,989 |
0 |
0 |
0 |
32,960 |
0 |
14,302 |
1,251 |
bash |
10 |
no-host |
configure.cpython |
2,018,071 |
0 |
0 |
0 |
32,992 |
0 |
14,304 |
1,377 |
dash |
18 |
no-host |
configure.cpython |
6,019,492 |
0 |
0 |
0 |
27,512 |
0 |
13,044 |
1,165 |
osh-cpython |
26 |
no-host |
configure.cpython |
1,996,046 |
0 |
0 |
0 |
27,520 |
0 |
13,109 |
1,257 |
osh-native |
34 |
no-host |
configure.cpython |
1,981,986 |
0 |
0 |
0 |
27,520 |
0 |
13,043 |
1,125 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
373,616 |
0 |
0 |
0 |
5,120 |
0 |
1,945 |
189 |
bash |
12 |
no-host |
configure.ocaml |
353,871 |
0 |
0 |
0 |
5,112 |
0 |
1,944 |
177 |
dash |
20 |
no-host |
configure.ocaml |
610,904 |
0 |
0 |
0 |
5,112 |
0 |
1,857 |
186 |
osh-cpython |
28 |
no-host |
configure.ocaml |
375,943 |
0 |
0 |
0 |
5,120 |
0 |
1,923 |
211 |
osh-native |
36 |
no-host |
configure.ocaml |
375,207 |
0 |
0 |
0 |
5,120 |
0 |
1,917 |
190 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,087 |
0 |
0 |
0 |
104 |
0 |
49 |
7 |
bash |
13 |
no-host |
configure.tcc |
5,001 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,747 |
0 |
0 |
0 |
96 |
0 |
53 |
4 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,494 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
37 |
no-host |
configure.tcc |
6,425 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
1,907,060 |
1 |
0 |
0 |
42,400 |
0 |
18,457 |
1,285 |
bash |
11 |
no-host |
configure.util-linux |
2,067,950 |
2 |
0 |
0 |
42,584 |
0 |
17,343 |
1,452 |
dash |
19 |
no-host |
configure.util-linux |
5,224,980 |
7 |
0 |
0 |
39,120 |
0 |
17,019 |
1,313 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,807,296 |
0 |
0 |
0 |
39,120 |
0 |
16,922 |
1,157 |
osh-native |
35 |
no-host |
configure.util-linux |
1,801,603 |
0 |
0 |
0 |
39,128 |
0 |
16,897 |
1,383 |
osh-native-souffle |
6 |
no-host |
configure.yash |
233,862 |
0 |
0 |
0 |
4,120 |
0 |
876 |
91 |
bash |
14 |
no-host |
configure.yash |
221,742 |
0 |
0 |
0 |
3,720 |
0 |
870 |
86 |
dash |
22 |
no-host |
configure.yash |
365,798 |
0 |
0 |
0 |
3,728 |
0 |
853 |
128 |
osh-cpython |
30 |
no-host |
configure.yash |
235,061 |
0 |
0 |
0 |
3,736 |
0 |
851 |
89 |
osh-native |
38 |
no-host |
configure.yash |
235,056 |
0 |
0 |
0 |
3,736 |
0 |
846 |
89 |
osh-native-souffle |
0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
77 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
dash |
16 |
no-host |
hello-world |
3,965 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
24 |
no-host |
hello-world |
343 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
337 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host