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 |
20 |
10 |
475 |
22 |
21 |
24.03 |
1.11 |
| bin-true |
no-host |
681 |
549 |
2,331 |
818 |
812 |
3.43 |
1.20 |
| configure.cpython |
no-host |
15,414 |
15,424 |
29,818 |
15,539 |
15,786 |
1.93 |
1.01 |
| configure.ocaml |
no-host |
3,852 |
3,776 |
4,761 |
3,900 |
3,909 |
1.24 |
1.01 |
| configure.tcc |
no-host |
48 |
42 |
211 |
49 |
50 |
4.42 |
1.02 |
| configure.util-linux |
no-host |
14,281 |
15,219 |
32,350 |
14,678 |
14,737 |
2.27 |
1.03 |
| configure.yash |
no-host |
1,857 |
1,802 |
2,512 |
1,859 |
1,875 |
1.35 |
1.00 |
| hello-world |
no-host |
2 |
1 |
58 |
3 |
3 |
37.73 |
1.89 |
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,563 |
1,108 |
23,813 |
3,171 |
3,139 |
9.29 |
1.24 |
| bin-true |
no-host |
104,368 |
65,528 |
774,330 |
126,308 |
125,252 |
7.42 |
1.21 |
| configure.cpython |
no-host |
2,224,264 |
2,247,528 |
6,242,428 |
2,206,542 |
2,222,588 |
2.81 |
0.99 |
| configure.ocaml |
no-host |
410,393 |
391,036 |
647,561 |
413,106 |
412,003 |
1.58 |
1.01 |
| configure.tcc |
no-host |
6,570 |
5,490 |
24,124 |
6,983 |
6,912 |
3.67 |
1.06 |
| configure.util-linux |
no-host |
2,094,341 |
2,266,270 |
5,396,072 |
2,001,940 |
1,989,335 |
2.58 |
0.96 |
| configure.yash |
no-host |
255,712 |
244,066 |
388,376 |
258,456 |
256,241 |
1.52 |
1.01 |
| hello-world |
no-host |
147 |
85 |
3,938 |
343 |
339 |
26.79 |
2.33 |
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,783 |
3,783 |
0 |
694 |
1,859 |
1,230 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
818 |
1 |
2 |
2.6 |
8.0 |
153,747 |
12,268 |
2,888 |
8,743 |
76,323 |
68,681 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,539 |
1 |
65 |
14.9 |
27.4 |
1,771,748 |
49,126 |
28,513 |
85,415 |
878,116 |
808,217 |
25,733 |
60 |
50,000 |
0 |
| configure.util-linux |
no-host |
14,678 |
3 |
63 |
21.2 |
30.3 |
2,702,514 |
53,767 |
65,692 |
108,691 |
1,290,641 |
1,303,182 |
32,239 |
41 |
131,384 |
1 |
| configure.ocaml |
no-host |
3,900 |
1 |
2 |
2.6 |
20.6 |
150,081 |
11,113 |
5,208 |
7,508 |
70,970 |
71,603 |
1,695 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,587 |
30,587 |
0 |
1,518 |
14,642 |
14,427 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,859 |
1 |
2 |
2.5 |
24.4 |
139,413 |
8,025 |
6,687 |
5,989 |
67,943 |
65,481 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,293 |
64,404 |
42,614 |
4,532 |
54,437 |
57,324 |
277 |
3 |
85,228 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.2 |
6.0 |
3,782 |
3,782 |
0 |
695 |
1,859 |
1,228 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
812 |
1 |
2 |
2.6 |
7.9 |
153,746 |
12,112 |
2,826 |
8,744 |
76,323 |
68,679 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,786 |
2 |
64 |
14.9 |
27.4 |
1,771,747 |
49,064 |
28,451 |
85,416 |
878,116 |
808,215 |
25,733 |
60 |
50,000 |
0 |
| configure.util-linux |
no-host |
14,737 |
3 |
63 |
21.2 |
30.0 |
2,702,514 |
53,694 |
65,630 |
108,693 |
1,290,641 |
1,303,180 |
32,239 |
41 |
131,260 |
1 |
| configure.ocaml |
no-host |
3,909 |
1 |
2 |
2.6 |
20.6 |
150,081 |
11,051 |
5,146 |
7,510 |
70,970 |
71,601 |
1,695 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.3 |
30,587 |
30,587 |
0 |
1,520 |
14,642 |
14,425 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,875 |
1 |
2 |
2.5 |
24.4 |
139,413 |
7,963 |
6,625 |
5,991 |
67,943 |
65,479 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.8 |
116,292 |
64,342 |
42,552 |
4,533 |
54,437 |
57,322 |
277 |
3 |
85,104 |
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 |
20 |
19 |
1 |
4.3 |
bash |
| 15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.4 |
dash |
| 23 |
no-host |
abuild-print-help |
475 |
425 |
53 |
22.6 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
16 |
7 |
9.0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
12 |
9 |
8.8 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
681 |
513 |
201 |
2.9 |
bash |
| 9 |
no-host |
bin-true |
549 |
423 |
133 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,331 |
1,507 |
1,088 |
18.4 |
osh-cpython |
| 25 |
no-host |
bin-true |
818 |
578 |
255 |
8.0 |
osh-native |
| 33 |
no-host |
bin-true |
812 |
557 |
268 |
7.9 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
15,414 |
9,172 |
6,637 |
27.5 |
bash |
| 10 |
no-host |
configure.cpython |
15,424 |
9,325 |
6,522 |
27.5 |
dash |
| 18 |
no-host |
configure.cpython |
29,818 |
18,214 |
13,562 |
27.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,539 |
9,238 |
6,571 |
27.4 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,786 |
9,222 |
6,658 |
27.4 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,852 |
1,603 |
1,285 |
20.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,776 |
1,636 |
1,155 |
20.6 |
dash |
| 20 |
no-host |
configure.ocaml |
4,761 |
2,410 |
1,568 |
20.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,900 |
1,645 |
1,290 |
20.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,909 |
1,701 |
1,242 |
20.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
48 |
26 |
22 |
19.3 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
27 |
16 |
19.3 |
dash |
| 21 |
no-host |
configure.tcc |
211 |
156 |
59 |
19.3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
22 |
28 |
19.4 |
osh-native |
| 37 |
no-host |
configure.tcc |
50 |
30 |
20 |
19.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
14,281 |
9,024 |
5,735 |
30.3 |
bash |
| 11 |
no-host |
configure.util-linux |
15,219 |
9,273 |
6,428 |
30.3 |
dash |
| 19 |
no-host |
configure.util-linux |
32,350 |
21,336 |
12,139 |
30.1 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,678 |
8,933 |
5,929 |
30.3 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,737 |
8,978 |
5,948 |
30.0 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,857 |
1,129 |
737 |
24.2 |
bash |
| 14 |
no-host |
configure.yash |
1,802 |
1,014 |
791 |
24.2 |
dash |
| 22 |
no-host |
configure.yash |
2,512 |
1,536 |
1,015 |
24.2 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,859 |
1,004 |
856 |
24.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,875 |
1,116 |
763 |
24.4 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
2 |
2 |
0 |
2.6 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
58 |
41 |
16 |
18.2 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
6.3 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
3 |
0 |
6.0 |
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,563 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
| 15 |
no-host |
abuild-print-help |
1,108 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
23,813 |
0 |
0 |
0 |
8 |
0 |
45 |
7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,171 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,139 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
104,368 |
0 |
0 |
0 |
8 |
0 |
1,989 |
46 |
bash |
| 9 |
no-host |
bin-true |
65,528 |
0 |
0 |
0 |
8 |
0 |
1,986 |
41 |
dash |
| 17 |
no-host |
bin-true |
774,330 |
0 |
0 |
0 |
8 |
0 |
1,997 |
297 |
osh-cpython |
| 25 |
no-host |
bin-true |
126,308 |
0 |
0 |
0 |
16 |
0 |
1,996 |
189 |
osh-native |
| 33 |
no-host |
bin-true |
125,252 |
0 |
0 |
0 |
16 |
0 |
1,991 |
47 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
2,224,264 |
0 |
0 |
0 |
32,928 |
0 |
14,467 |
1,120 |
bash |
| 10 |
no-host |
configure.cpython |
2,247,528 |
0 |
0 |
0 |
32,992 |
0 |
14,651 |
917 |
dash |
| 18 |
no-host |
configure.cpython |
6,242,428 |
0 |
0 |
0 |
27,512 |
0 |
13,234 |
1,113 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,206,542 |
0 |
0 |
0 |
27,520 |
0 |
13,285 |
911 |
osh-native |
| 34 |
no-host |
configure.cpython |
2,222,588 |
0 |
0 |
0 |
27,520 |
0 |
13,256 |
889 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
410,393 |
0 |
0 |
0 |
5,120 |
0 |
1,949 |
162 |
bash |
| 12 |
no-host |
configure.ocaml |
391,036 |
0 |
0 |
0 |
5,112 |
0 |
1,886 |
133 |
dash |
| 20 |
no-host |
configure.ocaml |
647,561 |
0 |
0 |
0 |
5,112 |
0 |
1,854 |
183 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
413,106 |
0 |
0 |
0 |
5,120 |
0 |
1,927 |
167 |
osh-native |
| 36 |
no-host |
configure.ocaml |
412,003 |
0 |
0 |
0 |
5,120 |
0 |
1,928 |
153 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,570 |
0 |
0 |
0 |
104 |
0 |
49 |
5 |
bash |
| 13 |
no-host |
configure.tcc |
5,490 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
24,124 |
0 |
0 |
0 |
96 |
0 |
53 |
4 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,983 |
0 |
0 |
0 |
104 |
0 |
46 |
5 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,912 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
2,094,341 |
0 |
0 |
0 |
42,400 |
0 |
18,580 |
984 |
bash |
| 11 |
no-host |
configure.util-linux |
2,266,270 |
1 |
0 |
0 |
42,592 |
0 |
17,452 |
1,220 |
dash |
| 19 |
no-host |
configure.util-linux |
5,396,072 |
8 |
0 |
0 |
39,112 |
0 |
16,968 |
1,328 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
2,001,940 |
0 |
0 |
0 |
39,120 |
0 |
17,158 |
1,099 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,989,335 |
1 |
0 |
0 |
39,136 |
0 |
17,011 |
968 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
255,712 |
0 |
0 |
0 |
4,120 |
0 |
871 |
71 |
bash |
| 14 |
no-host |
configure.yash |
244,066 |
0 |
0 |
0 |
3,720 |
0 |
870 |
90 |
dash |
| 22 |
no-host |
configure.yash |
388,376 |
0 |
0 |
0 |
3,728 |
0 |
854 |
85 |
osh-cpython |
| 30 |
no-host |
configure.yash |
258,456 |
0 |
0 |
0 |
3,736 |
0 |
849 |
79 |
osh-native |
| 38 |
no-host |
configure.yash |
256,241 |
0 |
0 |
0 |
3,736 |
0 |
851 |
71 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
147 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
85 |
0 |
0 |
0 |
8 |
0 |
0 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,938 |
0 |
0 |
0 |
8 |
0 |
7 |
7 |
osh-cpython |
| 24 |
no-host |
hello-world |
343 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
| 32 |
no-host |
hello-world |
339 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host