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 |
10 |
470 |
22 |
21 |
24.71 |
1.15 |
bin-true |
no-host |
675 |
550 |
2,258 |
818 |
808 |
3.34 |
1.21 |
configure.cpython |
no-host |
14,978 |
15,067 |
28,634 |
15,269 |
15,307 |
1.91 |
1.02 |
configure.ocaml |
no-host |
3,832 |
3,727 |
4,649 |
3,840 |
3,809 |
1.21 |
1.00 |
configure.tcc |
no-host |
47 |
41 |
194 |
48 |
48 |
4.10 |
1.03 |
configure.util-linux |
no-host |
14,003 |
14,805 |
31,047 |
14,347 |
14,328 |
2.22 |
1.02 |
configure.yash |
no-host |
1,819 |
1,767 |
2,457 |
1,820 |
1,812 |
1.35 |
1.00 |
hello-world |
no-host |
1 |
1 |
49 |
3 |
3 |
32.98 |
1.95 |
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,545 |
1,126 |
23,142 |
3,232 |
3,102 |
9.09 |
1.27 |
bin-true |
no-host |
104,393 |
67,474 |
761,542 |
125,157 |
124,855 |
7.29 |
1.20 |
configure.cpython |
no-host |
2,219,495 |
2,241,991 |
6,210,410 |
2,225,701 |
2,217,463 |
2.80 |
1.00 |
configure.ocaml |
no-host |
410,826 |
390,817 |
644,850 |
413,637 |
412,407 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,549 |
5,478 |
23,572 |
7,001 |
6,929 |
3.60 |
1.07 |
configure.util-linux |
no-host |
2,102,796 |
2,260,707 |
5,350,153 |
2,000,527 |
1,996,920 |
2.54 |
0.95 |
configure.yash |
no-host |
256,558 |
243,969 |
387,710 |
258,430 |
257,246 |
1.51 |
1.01 |
hello-world |
no-host |
151 |
78 |
3,733 |
353 |
346 |
24.72 |
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.2 |
3,775 |
3,775 |
0 |
694 |
1,852 |
1,229 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
818 |
1 |
2 |
2.6 |
8.1 |
154,740 |
13,220 |
2,877 |
9,744 |
78,321 |
66,675 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,269 |
1 |
60 |
15.0 |
27.4 |
1,772,722 |
49,854 |
28,587 |
86,397 |
908,073 |
778,252 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,347 |
3 |
59 |
21.3 |
30.3 |
2,703,490 |
29,146 |
65,890 |
109,675 |
1,320,579 |
1,273,236 |
27,391 |
41 |
131,780 |
1 |
configure.ocaml |
no-host |
3,840 |
1 |
2 |
2.6 |
20.4 |
150,096 |
11,051 |
5,221 |
7,531 |
71,606 |
70,959 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.4 |
30,581 |
30,581 |
0 |
1,520 |
14,776 |
14,285 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,820 |
1 |
2 |
2.6 |
24.4 |
139,749 |
8,020 |
6,679 |
6,336 |
70,281 |
63,132 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,324 |
64,530 |
42,740 |
4,571 |
54,521 |
57,232 |
270 |
3 |
85,480 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
6.0 |
3,774 |
3,774 |
0 |
695 |
1,852 |
1,227 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
808 |
1 |
2 |
2.6 |
7.9 |
154,739 |
13,063 |
2,815 |
9,745 |
78,321 |
66,673 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,307 |
1 |
60 |
14.9 |
27.5 |
1,772,721 |
49,105 |
28,525 |
86,398 |
908,073 |
778,250 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,328 |
3 |
60 |
21.3 |
30.3 |
2,703,490 |
42,741 |
65,828 |
109,677 |
1,320,579 |
1,273,234 |
27,391 |
41 |
131,656 |
1 |
configure.ocaml |
no-host |
3,809 |
1 |
2 |
2.6 |
20.4 |
150,096 |
10,989 |
5,159 |
7,533 |
71,606 |
70,957 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.3 |
30,581 |
30,581 |
0 |
1,522 |
14,776 |
14,283 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,812 |
1 |
2 |
2.6 |
24.4 |
139,749 |
7,958 |
6,617 |
6,338 |
70,281 |
63,130 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.4 |
116,323 |
64,468 |
42,678 |
4,572 |
54,521 |
57,230 |
270 |
3 |
85,356 |
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 |
17 |
2 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
5 |
5 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
470 |
415 |
60 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
16 |
6 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
21 |
0 |
8.4 |
osh-native-souffle |
1 |
no-host |
bin-true |
675 |
494 |
211 |
2.9 |
bash |
9 |
no-host |
bin-true |
550 |
420 |
139 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,258 |
1,413 |
1,106 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
818 |
591 |
242 |
8.1 |
osh-native |
33 |
no-host |
bin-true |
808 |
586 |
236 |
7.9 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
14,978 |
9,026 |
6,346 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,067 |
8,937 |
6,524 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,634 |
17,422 |
13,068 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,269 |
9,102 |
6,424 |
27.4 |
osh-native |
34 |
no-host |
configure.cpython |
15,307 |
9,022 |
6,411 |
27.5 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,832 |
1,611 |
1,248 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,727 |
1,540 |
1,202 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,649 |
2,274 |
1,586 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,840 |
1,575 |
1,304 |
20.4 |
osh-native |
36 |
no-host |
configure.ocaml |
3,809 |
1,600 |
1,245 |
20.4 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
47 |
37 |
10 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
41 |
21 |
20 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
194 |
136 |
61 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
48 |
23 |
26 |
19.4 |
osh-native |
37 |
no-host |
configure.tcc |
48 |
39 |
9 |
19.3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,003 |
8,780 |
5,695 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,805 |
8,976 |
6,312 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,047 |
20,594 |
11,525 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,347 |
8,793 |
5,747 |
30.3 |
osh-native |
35 |
no-host |
configure.util-linux |
14,328 |
8,404 |
6,106 |
30.3 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,819 |
1,112 |
714 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,767 |
1,019 |
749 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,457 |
1,568 |
930 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,820 |
1,056 |
766 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,812 |
982 |
833 |
24.4 |
osh-native-souffle |
0 |
no-host |
hello-world |
1 |
0 |
1 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.3 |
dash |
16 |
no-host |
hello-world |
49 |
33 |
16 |
17.6 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.2 |
osh-native |
32 |
no-host |
hello-world |
3 |
0 |
3 |
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,545 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,126 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,142 |
0 |
0 |
0 |
8 |
0 |
45 |
2 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,232 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
39 |
no-host |
abuild-print-help |
3,102 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native-souffle |
1 |
no-host |
bin-true |
104,393 |
0 |
0 |
0 |
8 |
0 |
1,993 |
111 |
bash |
9 |
no-host |
bin-true |
67,474 |
0 |
0 |
0 |
8 |
0 |
1,987 |
80 |
dash |
17 |
no-host |
bin-true |
761,542 |
0 |
0 |
0 |
8 |
0 |
1,995 |
234 |
osh-cpython |
25 |
no-host |
bin-true |
125,157 |
0 |
0 |
0 |
16 |
0 |
1,988 |
85 |
osh-native |
33 |
no-host |
bin-true |
124,855 |
0 |
0 |
0 |
16 |
0 |
1,988 |
43 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,219,495 |
0 |
0 |
0 |
32,928 |
0 |
14,464 |
1,289 |
bash |
10 |
no-host |
configure.cpython |
2,241,991 |
0 |
0 |
0 |
32,992 |
0 |
14,633 |
1,228 |
dash |
18 |
no-host |
configure.cpython |
6,210,410 |
1 |
0 |
0 |
27,512 |
0 |
13,258 |
1,179 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,225,701 |
1 |
0 |
0 |
27,520 |
0 |
13,306 |
1,010 |
osh-native |
34 |
no-host |
configure.cpython |
2,217,463 |
0 |
0 |
0 |
27,520 |
0 |
13,272 |
1,087 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,826 |
0 |
0 |
0 |
5,120 |
0 |
1,969 |
171 |
bash |
12 |
no-host |
configure.ocaml |
390,817 |
0 |
0 |
0 |
5,112 |
0 |
1,941 |
150 |
dash |
20 |
no-host |
configure.ocaml |
644,850 |
1 |
0 |
0 |
5,112 |
0 |
1,864 |
321 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,637 |
0 |
0 |
0 |
5,120 |
0 |
1,932 |
157 |
osh-native |
36 |
no-host |
configure.ocaml |
412,407 |
0 |
0 |
0 |
5,120 |
0 |
1,928 |
150 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,549 |
0 |
0 |
0 |
104 |
0 |
48 |
5 |
bash |
13 |
no-host |
configure.tcc |
5,478 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,572 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,001 |
0 |
0 |
0 |
104 |
0 |
47 |
0 |
osh-native |
37 |
no-host |
configure.tcc |
6,929 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,102,796 |
0 |
0 |
0 |
42,400 |
0 |
18,603 |
973 |
bash |
11 |
no-host |
configure.util-linux |
2,260,707 |
1 |
0 |
0 |
42,584 |
0 |
17,458 |
956 |
dash |
19 |
no-host |
configure.util-linux |
5,350,153 |
11 |
0 |
0 |
39,120 |
0 |
17,006 |
1,224 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,000,527 |
0 |
0 |
0 |
39,120 |
0 |
16,901 |
948 |
osh-native |
35 |
no-host |
configure.util-linux |
1,996,920 |
0 |
0 |
0 |
39,128 |
0 |
16,987 |
960 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,558 |
0 |
0 |
0 |
4,120 |
0 |
873 |
91 |
bash |
14 |
no-host |
configure.yash |
243,969 |
0 |
0 |
0 |
3,720 |
0 |
870 |
96 |
dash |
22 |
no-host |
configure.yash |
387,710 |
0 |
0 |
0 |
3,728 |
0 |
855 |
97 |
osh-cpython |
30 |
no-host |
configure.yash |
258,430 |
0 |
0 |
0 |
3,736 |
0 |
849 |
92 |
osh-native |
38 |
no-host |
configure.yash |
257,246 |
0 |
0 |
0 |
3,736 |
0 |
847 |
81 |
osh-native-souffle |
0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
78 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,733 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
353 |
0 |
0 |
0 |
16 |
0 |
0 |
1 |
osh-native |
32 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native-souffle |
Shell and Host