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 |
466 |
23 |
21 |
24.29 |
1.18 |
| bin-true |
no-host |
670 |
553 |
2,309 |
813 |
809 |
3.45 |
1.21 |
| configure.cpython |
no-host |
15,135 |
15,501 |
29,089 |
15,395 |
15,717 |
1.92 |
1.02 |
| configure.ocaml |
no-host |
3,873 |
3,742 |
4,705 |
3,851 |
3,852 |
1.21 |
0.99 |
| configure.tcc |
no-host |
49 |
42 |
205 |
49 |
49 |
4.21 |
1.01 |
| configure.util-linux |
no-host |
14,192 |
14,991 |
31,800 |
14,633 |
14,616 |
2.24 |
1.03 |
| configure.yash |
no-host |
1,881 |
1,786 |
2,473 |
1,838 |
1,832 |
1.31 |
0.98 |
| hello-world |
no-host |
1 |
1 |
58 |
3 |
3 |
39.47 |
2.01 |
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,522 |
1,114 |
23,778 |
3,224 |
3,104 |
9.43 |
1.28 |
| bin-true |
no-host |
104,341 |
66,416 |
769,568 |
127,204 |
126,210 |
7.38 |
1.22 |
| configure.cpython |
no-host |
2,225,837 |
2,239,313 |
6,243,773 |
2,217,983 |
2,216,936 |
2.81 |
1.00 |
| configure.ocaml |
no-host |
409,843 |
390,703 |
648,719 |
412,786 |
412,874 |
1.58 |
1.01 |
| configure.tcc |
no-host |
6,577 |
5,461 |
24,150 |
6,991 |
6,938 |
3.67 |
1.06 |
| configure.util-linux |
no-host |
2,091,988 |
2,261,057 |
5,390,047 |
2,002,271 |
1,988,392 |
2.58 |
0.96 |
| configure.yash |
no-host |
256,549 |
244,660 |
387,475 |
257,931 |
257,401 |
1.51 |
1.01 |
| hello-world |
no-host |
150 |
80 |
3,953 |
343 |
338 |
26.35 |
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,783 |
3,783 |
0 |
694 |
1,859 |
1,230 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
813 |
1 |
2 |
2.6 |
8.1 |
153,747 |
12,268 |
2,888 |
8,743 |
76,323 |
68,681 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,395 |
1 |
64 |
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,633 |
3 |
63 |
21.2 |
30.0 |
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,851 |
1 |
2 |
2.6 |
20.4 |
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.3 |
30,587 |
30,587 |
0 |
1,518 |
14,642 |
14,427 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,838 |
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 |
23 |
1 |
2 |
2.8 |
9.2 |
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 |
809 |
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,717 |
1 |
62 |
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,616 |
3 |
63 |
21.2 |
30.3 |
2,702,514 |
53,694 |
65,650 |
108,693 |
1,290,641 |
1,303,180 |
32,239 |
41 |
131,300 |
1 |
| configure.ocaml |
no-host |
3,852 |
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 |
49 |
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,832 |
1 |
2 |
2.5 |
24.2 |
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.4 |
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 |
19 |
14 |
5 |
4.5 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.5 |
dash |
| 23 |
no-host |
abuild-print-help |
466 |
407 |
63 |
22.6 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
23 |
11 |
12 |
9.2 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
20 |
1 |
8.4 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
670 |
505 |
197 |
2.8 |
bash |
| 9 |
no-host |
bin-true |
553 |
437 |
126 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,309 |
1,535 |
1,027 |
18.4 |
osh-cpython |
| 25 |
no-host |
bin-true |
813 |
586 |
242 |
8.1 |
osh-native |
| 33 |
no-host |
bin-true |
809 |
588 |
236 |
7.9 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
15,135 |
9,023 |
6,503 |
27.3 |
bash |
| 10 |
no-host |
configure.cpython |
15,501 |
9,513 |
6,400 |
27.4 |
dash |
| 18 |
no-host |
configure.cpython |
29,089 |
17,765 |
13,194 |
27.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,395 |
9,303 |
6,352 |
27.4 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,717 |
9,108 |
6,703 |
27.4 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,873 |
1,686 |
1,222 |
20.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,742 |
1,591 |
1,171 |
20.6 |
dash |
| 20 |
no-host |
configure.ocaml |
4,705 |
2,239 |
1,677 |
20.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,851 |
1,675 |
1,215 |
20.4 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,852 |
1,671 |
1,216 |
20.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
49 |
34 |
15 |
19.4 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
28 |
14 |
19.3 |
dash |
| 21 |
no-host |
configure.tcc |
205 |
151 |
57 |
19.4 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
37 |
13 |
19.3 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
32 |
17 |
19.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
14,192 |
9,006 |
5,650 |
30.0 |
bash |
| 11 |
no-host |
configure.util-linux |
14,991 |
9,236 |
6,247 |
30.3 |
dash |
| 19 |
no-host |
configure.util-linux |
31,800 |
21,228 |
11,654 |
30.3 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,633 |
8,734 |
6,077 |
30.0 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,616 |
8,629 |
6,169 |
30.3 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,881 |
1,096 |
790 |
24.2 |
bash |
| 14 |
no-host |
configure.yash |
1,786 |
1,040 |
750 |
24.2 |
dash |
| 22 |
no-host |
configure.yash |
2,473 |
1,513 |
1,001 |
24.2 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,838 |
1,048 |
795 |
24.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,832 |
1,020 |
817 |
24.2 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
2.8 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
58 |
37 |
20 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
3 |
0 |
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,522 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,114 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
23,778 |
0 |
0 |
0 |
8 |
0 |
45 |
11 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,224 |
0 |
0 |
0 |
16 |
0 |
39 |
4 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,104 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
104,341 |
0 |
0 |
0 |
8 |
0 |
1,989 |
49 |
bash |
| 9 |
no-host |
bin-true |
66,416 |
0 |
0 |
0 |
8 |
0 |
1,984 |
53 |
dash |
| 17 |
no-host |
bin-true |
769,568 |
0 |
0 |
0 |
8 |
0 |
1,995 |
359 |
osh-cpython |
| 25 |
no-host |
bin-true |
127,204 |
0 |
0 |
0 |
16 |
0 |
1,994 |
78 |
osh-native |
| 33 |
no-host |
bin-true |
126,210 |
0 |
0 |
0 |
16 |
0 |
1,993 |
68 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
2,225,837 |
1 |
0 |
0 |
32,928 |
0 |
14,499 |
1,066 |
bash |
| 10 |
no-host |
configure.cpython |
2,239,313 |
0 |
0 |
0 |
32,992 |
0 |
14,588 |
973 |
dash |
| 18 |
no-host |
configure.cpython |
6,243,773 |
1 |
0 |
0 |
27,512 |
0 |
13,290 |
1,105 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,217,983 |
0 |
0 |
0 |
27,520 |
0 |
13,231 |
913 |
osh-native |
| 34 |
no-host |
configure.cpython |
2,216,936 |
0 |
0 |
0 |
27,520 |
0 |
13,236 |
879 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
409,843 |
0 |
0 |
0 |
5,120 |
0 |
1,958 |
158 |
bash |
| 12 |
no-host |
configure.ocaml |
390,703 |
0 |
0 |
0 |
5,112 |
0 |
1,923 |
141 |
dash |
| 20 |
no-host |
configure.ocaml |
648,719 |
0 |
0 |
0 |
5,112 |
0 |
1,851 |
184 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
412,786 |
0 |
0 |
0 |
5,120 |
0 |
1,919 |
180 |
osh-native |
| 36 |
no-host |
configure.ocaml |
412,874 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
159 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,577 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
5,461 |
0 |
0 |
0 |
96 |
0 |
47 |
0 |
dash |
| 21 |
no-host |
configure.tcc |
24,150 |
0 |
0 |
0 |
96 |
0 |
53 |
6 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,991 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,938 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
2,091,988 |
1 |
0 |
0 |
42,400 |
0 |
18,578 |
1,039 |
bash |
| 11 |
no-host |
configure.util-linux |
2,261,057 |
1 |
0 |
0 |
42,592 |
0 |
17,449 |
1,061 |
dash |
| 19 |
no-host |
configure.util-linux |
5,390,047 |
13 |
0 |
0 |
39,136 |
0 |
16,981 |
1,165 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
2,002,271 |
1 |
0 |
0 |
39,120 |
0 |
16,995 |
969 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,988,392 |
1 |
0 |
0 |
39,136 |
0 |
16,960 |
942 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
256,549 |
0 |
0 |
0 |
4,120 |
0 |
872 |
87 |
bash |
| 14 |
no-host |
configure.yash |
244,660 |
0 |
0 |
0 |
3,720 |
0 |
869 |
78 |
dash |
| 22 |
no-host |
configure.yash |
387,475 |
0 |
0 |
0 |
3,728 |
0 |
852 |
107 |
osh-cpython |
| 30 |
no-host |
configure.yash |
257,931 |
0 |
0 |
0 |
3,736 |
0 |
849 |
65 |
osh-native |
| 38 |
no-host |
configure.yash |
257,401 |
0 |
0 |
0 |
3,736 |
0 |
852 |
75 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
80 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,953 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
| 24 |
no-host |
hello-world |
343 |
0 |
0 |
0 |
16 |
0 |
0 |
1 |
osh-native |
| 32 |
no-host |
hello-world |
338 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host