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 |
458 |
22 |
21 |
23.57 |
1.13 |
bin-true |
no-host |
680 |
547 |
2,321 |
813 |
806 |
3.41 |
1.19 |
configure.cpython |
no-host |
15,098 |
15,647 |
29,150 |
15,333 |
15,430 |
1.93 |
1.02 |
configure.ocaml |
no-host |
3,917 |
3,847 |
4,665 |
3,864 |
3,853 |
1.19 |
0.99 |
configure.tcc |
no-host |
48 |
42 |
204 |
49 |
49 |
4.27 |
1.02 |
configure.util-linux |
no-host |
14,460 |
15,345 |
31,812 |
14,511 |
14,408 |
2.20 |
1.00 |
configure.yash |
no-host |
1,830 |
1,773 |
2,525 |
1,838 |
1,843 |
1.38 |
1.00 |
hello-world |
no-host |
2 |
1 |
57 |
3 |
3 |
35.85 |
1.79 |
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,550 |
1,083 |
23,953 |
3,170 |
3,077 |
9.39 |
1.24 |
bin-true |
no-host |
106,311 |
66,378 |
780,777 |
125,243 |
122,208 |
7.34 |
1.18 |
configure.cpython |
no-host |
2,217,817 |
2,239,296 |
6,235,928 |
2,219,573 |
2,207,764 |
2.81 |
1.00 |
configure.ocaml |
no-host |
410,378 |
391,125 |
646,418 |
413,290 |
412,155 |
1.58 |
1.01 |
configure.tcc |
no-host |
6,581 |
5,480 |
24,384 |
6,942 |
6,906 |
3.71 |
1.05 |
configure.util-linux |
no-host |
2,111,403 |
2,261,644 |
5,401,231 |
1,993,250 |
1,989,727 |
2.56 |
0.94 |
configure.yash |
no-host |
256,215 |
245,221 |
389,975 |
258,140 |
258,115 |
1.52 |
1.01 |
hello-world |
no-host |
152 |
85 |
4,004 |
347 |
345 |
26.34 |
2.28 |
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,780 |
3,780 |
0 |
695 |
1,856 |
1,229 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
813 |
1 |
2 |
2.6 |
8.1 |
153,744 |
12,264 |
2,884 |
8,744 |
78,325 |
66,675 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,333 |
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,511 |
2 |
60 |
21.2 |
30.0 |
2,702,511 |
29,749 |
65,877 |
108,692 |
1,320,583 |
1,273,236 |
32,239 |
41 |
131,754 |
1 |
configure.ocaml |
no-host |
3,864 |
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,838 |
1 |
2 |
2.5 |
24.4 |
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 |
9.0 |
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 |
6.0 |
3,779 |
3,779 |
0 |
696 |
1,856 |
1,227 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
806 |
1 |
2 |
2.6 |
7.5 |
153,743 |
12,053 |
2,822 |
8,745 |
78,325 |
66,673 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,430 |
2 |
64 |
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,408 |
3 |
62 |
21.2 |
30.3 |
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,853 |
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.1 |
30,584 |
30,584 |
0 |
1,521 |
14,780 |
14,283 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,843 |
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 |
17 |
3 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
8 |
2 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
458 |
437 |
24 |
23.1 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
15 |
7 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
19 |
3 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
680 |
518 |
192 |
2.9 |
bash |
9 |
no-host |
bin-true |
547 |
424 |
134 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,321 |
1,569 |
1,018 |
18.9 |
osh-cpython |
25 |
no-host |
bin-true |
813 |
597 |
232 |
8.1 |
osh-native |
33 |
no-host |
bin-true |
806 |
576 |
246 |
7.5 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,098 |
8,993 |
6,510 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,647 |
9,371 |
6,706 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,150 |
17,890 |
13,160 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,333 |
9,181 |
6,425 |
27.4 |
osh-native |
34 |
no-host |
configure.cpython |
15,430 |
8,714 |
6,897 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,917 |
1,672 |
1,286 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,847 |
1,675 |
1,188 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,665 |
2,232 |
1,644 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,864 |
1,613 |
1,292 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,853 |
1,704 |
1,186 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
32 |
17 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
23 |
19 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
204 |
152 |
55 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
29 |
21 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
49 |
22 |
28 |
19.1 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,460 |
9,004 |
5,939 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,345 |
9,396 |
6,442 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,812 |
21,253 |
11,664 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,511 |
8,741 |
5,975 |
30.0 |
osh-native |
35 |
no-host |
configure.util-linux |
14,408 |
8,847 |
5,765 |
30.3 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,830 |
1,054 |
784 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,773 |
1,011 |
765 |
24.5 |
dash |
22 |
no-host |
configure.yash |
2,525 |
1,575 |
995 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,838 |
1,070 |
772 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,843 |
1,088 |
759 |
24.4 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
57 |
30 |
26 |
18.8 |
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,550 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,083 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,953 |
0 |
0 |
0 |
8 |
0 |
45 |
6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,170 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
39 |
no-host |
abuild-print-help |
3,077 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
1 |
no-host |
bin-true |
106,311 |
0 |
0 |
0 |
8 |
0 |
1,989 |
80 |
bash |
9 |
no-host |
bin-true |
66,378 |
0 |
0 |
0 |
8 |
0 |
1,983 |
124 |
dash |
17 |
no-host |
bin-true |
780,777 |
0 |
0 |
0 |
8 |
0 |
1,994 |
159 |
osh-cpython |
25 |
no-host |
bin-true |
125,243 |
0 |
0 |
0 |
16 |
0 |
1,994 |
45 |
osh-native |
33 |
no-host |
bin-true |
122,208 |
0 |
0 |
0 |
16 |
0 |
1,990 |
112 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,217,817 |
1 |
0 |
0 |
32,928 |
0 |
14,466 |
1,000 |
bash |
10 |
no-host |
configure.cpython |
2,239,296 |
0 |
0 |
0 |
32,992 |
0 |
14,647 |
1,078 |
dash |
18 |
no-host |
configure.cpython |
6,235,928 |
1 |
0 |
0 |
27,512 |
0 |
13,245 |
1,277 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,219,573 |
0 |
0 |
0 |
27,520 |
0 |
13,268 |
1,052 |
osh-native |
34 |
no-host |
configure.cpython |
2,207,764 |
0 |
0 |
0 |
27,520 |
0 |
13,271 |
1,037 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,378 |
0 |
0 |
0 |
5,120 |
0 |
1,951 |
155 |
bash |
12 |
no-host |
configure.ocaml |
391,125 |
0 |
0 |
0 |
5,112 |
0 |
1,899 |
155 |
dash |
20 |
no-host |
configure.ocaml |
646,418 |
0 |
0 |
0 |
5,112 |
0 |
1,870 |
275 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,290 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
174 |
osh-native |
36 |
no-host |
configure.ocaml |
412,155 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
154 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,581 |
0 |
0 |
0 |
104 |
0 |
49 |
7 |
bash |
13 |
no-host |
configure.tcc |
5,480 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
24,384 |
0 |
0 |
0 |
96 |
0 |
53 |
11 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,942 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
37 |
no-host |
configure.tcc |
6,906 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,111,403 |
0 |
0 |
0 |
42,408 |
0 |
18,577 |
1,078 |
bash |
11 |
no-host |
configure.util-linux |
2,261,644 |
0 |
0 |
0 |
42,592 |
0 |
17,372 |
1,049 |
dash |
19 |
no-host |
configure.util-linux |
5,401,231 |
4 |
0 |
0 |
39,112 |
0 |
16,946 |
1,167 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,993,250 |
0 |
0 |
0 |
39,120 |
0 |
16,928 |
962 |
osh-native |
35 |
no-host |
configure.util-linux |
1,989,727 |
0 |
0 |
0 |
39,136 |
0 |
16,968 |
1,006 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,215 |
0 |
0 |
0 |
4,120 |
0 |
868 |
90 |
bash |
14 |
no-host |
configure.yash |
245,221 |
0 |
0 |
0 |
3,720 |
0 |
868 |
88 |
dash |
22 |
no-host |
configure.yash |
389,975 |
0 |
0 |
0 |
3,728 |
0 |
856 |
86 |
osh-cpython |
30 |
no-host |
configure.yash |
258,140 |
0 |
0 |
0 |
3,736 |
0 |
850 |
76 |
osh-native |
38 |
no-host |
configure.yash |
258,115 |
0 |
0 |
0 |
3,736 |
0 |
848 |
86 |
osh-native-souffle |
0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
2 |
bash |
8 |
no-host |
hello-world |
85 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
4,004 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
347 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
345 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host