oilshell.org
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 |
450 |
22 |
21 |
23.33 |
1.13 |
bin-true |
no-host |
686 |
542 |
2,257 |
814 |
812 |
3.29 |
1.19 |
configure.cpython |
no-host |
14,878 |
14,945 |
28,475 |
15,126 |
15,180 |
1.91 |
1.02 |
configure.ocaml |
no-host |
3,796 |
3,702 |
4,604 |
3,802 |
3,791 |
1.21 |
1.00 |
configure.tcc |
no-host |
48 |
42 |
192 |
49 |
49 |
4.01 |
1.01 |
configure.util-linux |
no-host |
13,892 |
14,733 |
31,016 |
14,268 |
14,278 |
2.23 |
1.03 |
configure.yash |
no-host |
1,804 |
1,767 |
2,436 |
1,813 |
1,807 |
1.35 |
1.01 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
3 |
30.95 |
1.80 |
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,560 |
1,097 |
23,286 |
3,168 |
3,098 |
9.10 |
1.24 |
bin-true |
no-host |
105,325 |
65,468 |
766,623 |
126,782 |
125,889 |
7.28 |
1.20 |
configure.cpython |
no-host |
2,227,946 |
2,233,855 |
6,191,866 |
2,223,859 |
2,213,878 |
2.78 |
1.00 |
configure.ocaml |
no-host |
410,603 |
390,902 |
646,018 |
413,001 |
412,386 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,534 |
5,484 |
23,522 |
6,982 |
6,935 |
3.60 |
1.07 |
configure.util-linux |
no-host |
2,110,544 |
2,261,674 |
5,350,615 |
1,998,789 |
1,987,025 |
2.54 |
0.95 |
configure.yash |
no-host |
256,611 |
244,475 |
387,155 |
258,156 |
257,731 |
1.51 |
1.01 |
hello-world |
no-host |
150 |
83 |
3,744 |
351 |
343 |
24.96 |
2.34 |
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,758 |
3,758 |
0 |
694 |
1,852 |
1,212 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
814 |
1 |
2 |
2.6 |
8.1 |
154,723 |
13,197 |
2,854 |
9,744 |
78,321 |
66,658 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,126 |
1 |
60 |
15.0 |
27.4 |
1,772,705 |
49,831 |
28,564 |
86,397 |
908,073 |
778,235 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,268 |
3 |
59 |
21.3 |
30.1 |
2,703,473 |
29,124 |
65,868 |
109,675 |
1,320,579 |
1,273,219 |
27,391 |
41 |
131,736 |
1 |
configure.ocaml |
no-host |
3,802 |
1 |
2 |
2.6 |
20.4 |
150,079 |
11,029 |
5,199 |
7,531 |
71,606 |
70,942 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,564 |
30,564 |
0 |
1,520 |
14,776 |
14,268 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,813 |
1 |
2 |
2.6 |
24.2 |
139,732 |
7,997 |
6,656 |
6,336 |
70,281 |
63,115 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,307 |
64,507 |
42,717 |
4,571 |
54,521 |
57,215 |
270 |
3 |
85,434 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.9 |
3,757 |
3,757 |
0 |
695 |
1,852 |
1,210 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
812 |
1 |
2 |
2.6 |
7.6 |
154,722 |
12,985 |
2,792 |
9,745 |
78,321 |
66,656 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,180 |
1 |
60 |
15.0 |
27.5 |
1,772,704 |
49,082 |
28,502 |
86,398 |
908,073 |
778,233 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,278 |
3 |
60 |
21.3 |
30.0 |
2,703,473 |
42,718 |
65,805 |
109,677 |
1,320,579 |
1,273,217 |
27,391 |
41 |
131,610 |
1 |
configure.ocaml |
no-host |
3,791 |
0 |
2 |
2.6 |
20.6 |
150,079 |
10,966 |
5,136 |
7,533 |
71,606 |
70,940 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,564 |
30,564 |
0 |
1,522 |
14,776 |
14,266 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,807 |
1 |
2 |
2.6 |
24.2 |
139,732 |
7,935 |
6,594 |
6,338 |
70,281 |
63,113 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.7 |
116,306 |
64,445 |
42,655 |
4,572 |
54,521 |
57,213 |
270 |
3 |
85,310 |
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 |
13 |
7 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
9 |
0 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
450 |
403 |
50 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
14 |
9 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
14 |
8 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
686 |
507 |
210 |
3.0 |
bash |
9 |
no-host |
bin-true |
542 |
409 |
141 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,257 |
1,481 |
1,036 |
17.8 |
osh-cpython |
25 |
no-host |
bin-true |
814 |
565 |
265 |
8.1 |
osh-native |
33 |
no-host |
bin-true |
812 |
570 |
257 |
7.6 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
14,878 |
8,894 |
6,356 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
14,945 |
9,148 |
6,208 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,475 |
17,297 |
13,029 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,126 |
9,010 |
6,384 |
27.4 |
osh-native |
34 |
no-host |
configure.cpython |
15,180 |
9,092 |
6,270 |
27.5 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,796 |
1,584 |
1,234 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,702 |
1,555 |
1,166 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,604 |
2,265 |
1,548 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,802 |
1,614 |
1,227 |
20.4 |
osh-native |
36 |
no-host |
configure.ocaml |
3,791 |
1,617 |
1,208 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
22 |
26 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
32 |
10 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
192 |
136 |
59 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
28 |
21 |
19.4 |
osh-native |
37 |
no-host |
configure.tcc |
49 |
28 |
22 |
19.4 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
13,892 |
8,787 |
5,576 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
14,733 |
9,063 |
6,164 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,016 |
20,604 |
11,495 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,268 |
8,534 |
5,926 |
30.1 |
osh-native |
35 |
no-host |
configure.util-linux |
14,278 |
8,590 |
5,848 |
30.0 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,804 |
1,090 |
723 |
24.1 |
bash |
14 |
no-host |
configure.yash |
1,767 |
1,031 |
737 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,436 |
1,547 |
932 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,813 |
1,099 |
719 |
24.2 |
osh-native |
38 |
no-host |
configure.yash |
1,807 |
1,074 |
737 |
24.2 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.6 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
48 |
31 |
18 |
17.7 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.3 |
osh-native |
32 |
no-host |
hello-world |
3 |
3 |
0 |
5.9 |
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,560 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,097 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,286 |
0 |
0 |
0 |
8 |
0 |
45 |
11 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,168 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
39 |
no-host |
abuild-print-help |
3,098 |
0 |
0 |
0 |
16 |
0 |
39 |
4 |
osh-native-souffle |
1 |
no-host |
bin-true |
105,325 |
0 |
0 |
0 |
8 |
0 |
1,994 |
178 |
bash |
9 |
no-host |
bin-true |
65,468 |
0 |
0 |
0 |
8 |
0 |
1,987 |
46 |
dash |
17 |
no-host |
bin-true |
766,623 |
0 |
0 |
0 |
8 |
0 |
1,996 |
279 |
osh-cpython |
25 |
no-host |
bin-true |
126,782 |
0 |
0 |
0 |
16 |
0 |
1,993 |
56 |
osh-native |
33 |
no-host |
bin-true |
125,889 |
0 |
0 |
0 |
16 |
0 |
1,988 |
68 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,227,946 |
1 |
0 |
0 |
32,928 |
0 |
14,483 |
1,198 |
bash |
10 |
no-host |
configure.cpython |
2,233,855 |
0 |
0 |
0 |
32,992 |
0 |
14,568 |
1,067 |
dash |
18 |
no-host |
configure.cpython |
6,191,866 |
0 |
0 |
0 |
27,512 |
0 |
13,225 |
1,115 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,223,859 |
1 |
0 |
0 |
27,520 |
0 |
13,223 |
974 |
osh-native |
34 |
no-host |
configure.cpython |
2,213,878 |
0 |
0 |
0 |
27,520 |
0 |
13,222 |
1,134 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,603 |
0 |
0 |
0 |
5,120 |
0 |
1,953 |
180 |
bash |
12 |
no-host |
configure.ocaml |
390,902 |
0 |
0 |
0 |
5,112 |
0 |
1,912 |
160 |
dash |
20 |
no-host |
configure.ocaml |
646,018 |
0 |
0 |
0 |
5,112 |
0 |
1,853 |
166 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,001 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
177 |
osh-native |
36 |
no-host |
configure.ocaml |
412,386 |
0 |
0 |
0 |
5,120 |
0 |
1,934 |
162 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,534 |
0 |
0 |
0 |
104 |
0 |
49 |
4 |
bash |
13 |
no-host |
configure.tcc |
5,484 |
0 |
0 |
0 |
96 |
0 |
47 |
10 |
dash |
21 |
no-host |
configure.tcc |
23,522 |
0 |
0 |
0 |
96 |
0 |
53 |
6 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,982 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native |
37 |
no-host |
configure.tcc |
6,935 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,110,544 |
0 |
0 |
0 |
42,400 |
0 |
18,545 |
1,021 |
bash |
11 |
no-host |
configure.util-linux |
2,261,674 |
0 |
0 |
0 |
42,584 |
0 |
17,461 |
1,252 |
dash |
19 |
no-host |
configure.util-linux |
5,350,615 |
13 |
0 |
0 |
39,112 |
0 |
17,069 |
1,249 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,998,789 |
0 |
0 |
0 |
39,120 |
0 |
16,972 |
1,187 |
osh-native |
35 |
no-host |
configure.util-linux |
1,987,025 |
1 |
0 |
0 |
39,136 |
0 |
16,931 |
1,009 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,611 |
0 |
0 |
0 |
4,120 |
0 |
870 |
64 |
bash |
14 |
no-host |
configure.yash |
244,475 |
0 |
0 |
0 |
3,720 |
0 |
871 |
77 |
dash |
22 |
no-host |
configure.yash |
387,155 |
0 |
0 |
0 |
3,728 |
0 |
857 |
92 |
osh-cpython |
30 |
no-host |
configure.yash |
258,156 |
0 |
0 |
0 |
3,736 |
0 |
849 |
76 |
osh-native |
38 |
no-host |
configure.yash |
257,731 |
0 |
0 |
0 |
3,736 |
0 |
849 |
80 |
osh-native-souffle |
0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
bash |
8 |
no-host |
hello-world |
83 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,744 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
351 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
343 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host