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 |
461 |
22 |
21 |
24.41 |
1.16 |
bin-true |
no-host |
673 |
547 |
2,335 |
807 |
804 |
3.47 |
1.20 |
configure.cpython |
no-host |
15,022 |
15,187 |
29,047 |
15,276 |
15,357 |
1.93 |
1.02 |
configure.ocaml |
no-host |
3,831 |
3,761 |
4,666 |
3,846 |
3,830 |
1.22 |
1.00 |
configure.tcc |
no-host |
48 |
42 |
203 |
49 |
49 |
4.24 |
1.02 |
configure.util-linux |
no-host |
14,026 |
14,935 |
31,430 |
14,391 |
14,398 |
2.24 |
1.03 |
configure.yash |
no-host |
1,816 |
1,825 |
2,521 |
1,835 |
1,833 |
1.39 |
1.01 |
hello-world |
no-host |
2 |
1 |
57 |
3 |
3 |
37.78 |
1.96 |
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,101 |
23,952 |
3,194 |
3,125 |
9.50 |
1.27 |
bin-true |
no-host |
104,350 |
66,516 |
782,835 |
124,252 |
123,239 |
7.50 |
1.19 |
configure.cpython |
no-host |
2,215,436 |
2,237,445 |
6,225,725 |
2,226,543 |
2,210,124 |
2.81 |
1.01 |
configure.ocaml |
no-host |
410,441 |
390,937 |
646,311 |
412,478 |
411,829 |
1.57 |
1.00 |
configure.tcc |
no-host |
6,554 |
5,489 |
24,412 |
6,950 |
6,937 |
3.72 |
1.06 |
configure.util-linux |
no-host |
2,105,689 |
2,262,463 |
5,387,779 |
1,991,896 |
1,984,558 |
2.56 |
0.95 |
configure.yash |
no-host |
255,047 |
245,172 |
388,699 |
256,921 |
257,328 |
1.52 |
1.01 |
hello-world |
no-host |
152 |
78 |
4,000 |
350 |
342 |
26.32 |
2.30 |
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,780 |
3,780 |
0 |
695 |
1,856 |
1,229 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
807 |
1 |
2 |
2.6 |
8.0 |
153,744 |
12,264 |
2,884 |
8,744 |
78,325 |
66,675 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,276 |
1 |
60 |
14.9 |
27.4 |
1,771,745 |
49,904 |
28,593 |
85,416 |
908,077 |
778,252 |
25,733 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,391 |
3 |
61 |
21.2 |
30.4 |
2,702,511 |
29,654 |
65,897 |
108,692 |
1,320,583 |
1,273,236 |
32,239 |
41 |
131,794 |
1 |
configure.ocaml |
no-host |
3,846 |
1 |
2 |
2.6 |
20.6 |
150,078 |
11,128 |
5,223 |
7,509 |
71,610 |
70,959 |
1,695 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,584 |
30,584 |
0 |
1,519 |
14,780 |
14,285 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,835 |
1 |
2 |
2.5 |
24.2 |
139,404 |
8,024 |
6,686 |
5,987 |
70,285 |
63,132 |
2,095 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.7 |
116,290 |
64,537 |
42,747 |
4,533 |
54,525 |
57,232 |
277 |
3 |
85,494 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.9 |
3,779 |
3,779 |
0 |
696 |
1,856 |
1,227 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
804 |
1 |
2 |
2.6 |
7.7 |
153,743 |
12,053 |
2,822 |
8,745 |
78,325 |
66,673 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,357 |
1 |
63 |
14.8 |
27.4 |
1,771,744 |
49,106 |
28,531 |
85,417 |
908,077 |
778,250 |
25,733 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,398 |
3 |
61 |
21.2 |
30.1 |
2,702,511 |
29,763 |
65,835 |
108,694 |
1,320,583 |
1,273,234 |
32,239 |
41 |
131,670 |
1 |
configure.ocaml |
no-host |
3,830 |
1 |
2 |
2.6 |
20.6 |
150,078 |
11,066 |
5,161 |
7,511 |
71,610 |
70,957 |
1,695 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,584 |
30,584 |
0 |
1,521 |
14,780 |
14,283 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,833 |
1 |
2 |
2.5 |
24.4 |
139,404 |
7,962 |
6,624 |
5,989 |
70,285 |
63,130 |
2,095 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.7 |
116,289 |
64,475 |
42,685 |
4,534 |
54,525 |
57,230 |
277 |
3 |
85,370 |
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 |
16 |
3 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
6 |
4 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
461 |
415 |
49 |
22.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
18 |
5 |
8.7 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
17 |
5 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
673 |
484 |
221 |
2.9 |
bash |
9 |
no-host |
bin-true |
547 |
417 |
137 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,335 |
1,564 |
1,035 |
18.9 |
osh-cpython |
25 |
no-host |
bin-true |
807 |
559 |
262 |
8.0 |
osh-native |
33 |
no-host |
bin-true |
804 |
568 |
249 |
7.7 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,022 |
9,083 |
6,337 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,187 |
9,192 |
6,414 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,047 |
17,808 |
13,128 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,276 |
9,041 |
6,499 |
27.4 |
osh-native |
34 |
no-host |
configure.cpython |
15,357 |
9,102 |
6,437 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,831 |
1,619 |
1,242 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,761 |
1,659 |
1,114 |
20.7 |
dash |
20 |
no-host |
configure.ocaml |
4,666 |
2,250 |
1,631 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,846 |
1,638 |
1,246 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,830 |
1,657 |
1,211 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
34 |
14 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
28 |
15 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
203 |
149 |
57 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
41 |
8 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
49 |
30 |
20 |
19.4 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,026 |
8,855 |
5,642 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,935 |
9,074 |
6,356 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,430 |
20,841 |
11,674 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,391 |
8,541 |
6,046 |
30.4 |
osh-native |
35 |
no-host |
configure.util-linux |
14,398 |
8,679 |
5,913 |
30.1 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,816 |
1,002 |
820 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,825 |
1,068 |
729 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,521 |
1,520 |
1,046 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,835 |
1,018 |
820 |
24.2 |
osh-native |
38 |
no-host |
configure.yash |
1,833 |
1,151 |
685 |
24.4 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.3 |
dash |
16 |
no-host |
hello-world |
57 |
34 |
22 |
18.7 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.2 |
osh-native |
32 |
no-host |
hello-world |
3 |
0 |
3 |
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,522 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,101 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,952 |
0 |
0 |
0 |
8 |
0 |
45 |
11 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,194 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
39 |
no-host |
abuild-print-help |
3,125 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
1 |
no-host |
bin-true |
104,350 |
0 |
0 |
0 |
8 |
0 |
1,994 |
69 |
bash |
9 |
no-host |
bin-true |
66,516 |
0 |
0 |
0 |
8 |
0 |
1,992 |
55 |
dash |
17 |
no-host |
bin-true |
782,835 |
0 |
0 |
0 |
8 |
0 |
1,996 |
190 |
osh-cpython |
25 |
no-host |
bin-true |
124,252 |
0 |
0 |
0 |
16 |
0 |
1,994 |
58 |
osh-native |
33 |
no-host |
bin-true |
123,239 |
0 |
0 |
0 |
16 |
0 |
1,996 |
85 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,215,436 |
1 |
0 |
0 |
32,928 |
0 |
14,492 |
975 |
bash |
10 |
no-host |
configure.cpython |
2,237,445 |
0 |
0 |
0 |
32,992 |
0 |
14,610 |
1,081 |
dash |
18 |
no-host |
configure.cpython |
6,225,725 |
0 |
0 |
0 |
27,512 |
0 |
13,250 |
1,193 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,226,543 |
0 |
0 |
0 |
27,520 |
0 |
13,276 |
993 |
osh-native |
34 |
no-host |
configure.cpython |
2,210,124 |
0 |
0 |
0 |
27,520 |
0 |
13,275 |
1,036 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,441 |
0 |
0 |
0 |
5,120 |
0 |
1,962 |
185 |
bash |
12 |
no-host |
configure.ocaml |
390,937 |
0 |
0 |
0 |
5,112 |
0 |
1,882 |
157 |
dash |
20 |
no-host |
configure.ocaml |
646,311 |
0 |
0 |
0 |
5,112 |
0 |
1,869 |
176 |
osh-cpython |
28 |
no-host |
configure.ocaml |
412,478 |
0 |
0 |
0 |
5,120 |
0 |
1,932 |
153 |
osh-native |
36 |
no-host |
configure.ocaml |
411,829 |
0 |
0 |
0 |
5,120 |
0 |
1,926 |
157 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,554 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,489 |
0 |
0 |
0 |
96 |
0 |
46 |
2 |
dash |
21 |
no-host |
configure.tcc |
24,412 |
0 |
0 |
0 |
96 |
0 |
53 |
11 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,950 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
37 |
no-host |
configure.tcc |
6,937 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,105,689 |
1 |
0 |
0 |
42,400 |
0 |
18,566 |
917 |
bash |
11 |
no-host |
configure.util-linux |
2,262,463 |
1 |
0 |
0 |
42,584 |
0 |
17,509 |
1,019 |
dash |
19 |
no-host |
configure.util-linux |
5,387,779 |
11 |
0 |
0 |
39,112 |
0 |
16,992 |
1,195 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,991,896 |
0 |
0 |
0 |
39,128 |
0 |
16,941 |
885 |
osh-native |
35 |
no-host |
configure.util-linux |
1,984,558 |
2 |
0 |
0 |
39,136 |
0 |
16,941 |
859 |
osh-native-souffle |
6 |
no-host |
configure.yash |
255,047 |
0 |
0 |
0 |
4,120 |
0 |
873 |
74 |
bash |
14 |
no-host |
configure.yash |
245,172 |
0 |
0 |
0 |
3,720 |
0 |
871 |
73 |
dash |
22 |
no-host |
configure.yash |
388,699 |
0 |
0 |
0 |
3,728 |
0 |
852 |
101 |
osh-cpython |
30 |
no-host |
configure.yash |
256,921 |
0 |
0 |
0 |
3,736 |
0 |
850 |
81 |
osh-native |
38 |
no-host |
configure.yash |
257,328 |
0 |
0 |
0 |
3,736 |
0 |
849 |
89 |
osh-native-souffle |
0 |
no-host |
hello-world |
152 |
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 |
4,000 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
350 |
0 |
0 |
0 |
16 |
0 |
0 |
1 |
osh-native |
32 |
no-host |
hello-world |
342 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host