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 |
446 |
22 |
21 |
23.32 |
1.16 |
bin-true |
no-host |
676 |
546 |
2,229 |
813 |
815 |
3.30 |
1.20 |
configure.cpython |
no-host |
14,975 |
14,983 |
28,478 |
15,184 |
15,249 |
1.90 |
1.01 |
configure.ocaml |
no-host |
3,841 |
3,707 |
4,616 |
3,807 |
3,807 |
1.20 |
0.99 |
configure.tcc |
no-host |
48 |
42 |
196 |
49 |
49 |
4.10 |
1.02 |
configure.util-linux |
no-host |
13,968 |
14,830 |
31,085 |
14,306 |
14,319 |
2.23 |
1.02 |
configure.yash |
no-host |
1,811 |
1,762 |
2,450 |
1,827 |
1,833 |
1.35 |
1.01 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
3 |
32.78 |
1.91 |
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,537 |
1,105 |
23,191 |
3,188 |
3,078 |
9.14 |
1.26 |
bin-true |
no-host |
105,386 |
66,480 |
756,288 |
125,108 |
125,873 |
7.18 |
1.19 |
configure.cpython |
no-host |
2,224,946 |
2,236,331 |
6,217,922 |
2,222,521 |
2,213,324 |
2.79 |
1.00 |
configure.ocaml |
no-host |
410,602 |
391,428 |
645,252 |
413,633 |
412,895 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,544 |
5,476 |
23,533 |
6,989 |
6,910 |
3.60 |
1.07 |
configure.util-linux |
no-host |
2,100,351 |
2,257,590 |
5,327,107 |
2,006,391 |
1,999,020 |
2.54 |
0.96 |
configure.yash |
no-host |
255,094 |
244,987 |
386,918 |
258,636 |
257,458 |
1.52 |
1.01 |
hello-world |
no-host |
149 |
78 |
3,729 |
351 |
344 |
25.03 |
2.36 |
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,775 |
3,775 |
0 |
694 |
1,852 |
1,229 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
813 |
1 |
2 |
2.6 |
8.0 |
154,740 |
13,220 |
2,877 |
9,744 |
78,321 |
66,675 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,184 |
1 |
62 |
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,306 |
3 |
60 |
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,807 |
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 |
49 |
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,827 |
1 |
2 |
2.6 |
24.5 |
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 |
8.8 |
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 |
5.6 |
3,774 |
3,774 |
0 |
695 |
1,852 |
1,227 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
815 |
1 |
2 |
2.6 |
7.6 |
154,739 |
13,063 |
2,815 |
9,745 |
78,321 |
66,673 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,249 |
1 |
61 |
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,319 |
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,807 |
1 |
2 |
2.6 |
20.6 |
150,096 |
10,989 |
5,159 |
7,533 |
71,606 |
70,957 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
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,833 |
1 |
2 |
2.6 |
24.5 |
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.5 |
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 |
14 |
6 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
7 |
3 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
446 |
408 |
42 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
16 |
7 |
8.8 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
14 |
7 |
8.5 |
osh-native-souffle |
1 |
no-host |
bin-true |
676 |
510 |
200 |
3.0 |
bash |
9 |
no-host |
bin-true |
546 |
417 |
138 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,229 |
1,529 |
961 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
813 |
574 |
251 |
8.0 |
osh-native |
33 |
no-host |
bin-true |
815 |
591 |
237 |
7.6 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
14,975 |
9,070 |
6,309 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
14,983 |
8,999 |
6,409 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,478 |
16,988 |
13,347 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,184 |
9,027 |
6,423 |
27.4 |
osh-native |
34 |
no-host |
configure.cpython |
15,249 |
9,050 |
6,379 |
27.5 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,841 |
1,665 |
1,190 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,707 |
1,578 |
1,147 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,616 |
2,100 |
1,722 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,807 |
1,615 |
1,233 |
20.4 |
osh-native |
36 |
no-host |
configure.ocaml |
3,807 |
1,592 |
1,252 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
39 |
9 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
39 |
4 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
196 |
126 |
73 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
30 |
19 |
19.4 |
osh-native |
37 |
no-host |
configure.tcc |
49 |
27 |
22 |
19.3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
13,968 |
8,827 |
5,622 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,830 |
9,054 |
6,264 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,085 |
20,698 |
11,469 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,306 |
8,543 |
5,965 |
30.3 |
osh-native |
35 |
no-host |
configure.util-linux |
14,319 |
8,765 |
5,745 |
30.3 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,811 |
1,034 |
786 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,762 |
965 |
799 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,450 |
1,448 |
1,045 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,827 |
1,070 |
761 |
24.5 |
osh-native |
38 |
no-host |
configure.yash |
1,833 |
1,032 |
801 |
24.5 |
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 |
49 |
34 |
15 |
17.6 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.3 |
osh-native |
32 |
no-host |
hello-world |
3 |
0 |
3 |
5.6 |
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,537 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,105 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,191 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,188 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
39 |
no-host |
abuild-print-help |
3,078 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
1 |
no-host |
bin-true |
105,386 |
0 |
0 |
0 |
8 |
0 |
1,995 |
88 |
bash |
9 |
no-host |
bin-true |
66,480 |
0 |
0 |
0 |
8 |
0 |
1,990 |
99 |
dash |
17 |
no-host |
bin-true |
756,288 |
0 |
0 |
0 |
8 |
0 |
1,996 |
95 |
osh-cpython |
25 |
no-host |
bin-true |
125,108 |
0 |
0 |
0 |
16 |
0 |
1,997 |
62 |
osh-native |
33 |
no-host |
bin-true |
125,873 |
0 |
0 |
0 |
16 |
0 |
1,987 |
67 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,224,946 |
0 |
0 |
0 |
32,928 |
0 |
14,418 |
1,521 |
bash |
10 |
no-host |
configure.cpython |
2,236,331 |
0 |
0 |
0 |
32,992 |
0 |
14,625 |
1,164 |
dash |
18 |
no-host |
configure.cpython |
6,217,922 |
0 |
0 |
0 |
27,512 |
0 |
13,248 |
1,205 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,222,521 |
0 |
0 |
0 |
27,520 |
0 |
13,169 |
1,043 |
osh-native |
34 |
no-host |
configure.cpython |
2,213,324 |
0 |
0 |
0 |
27,520 |
0 |
13,261 |
1,182 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,602 |
0 |
0 |
0 |
5,120 |
0 |
1,962 |
166 |
bash |
12 |
no-host |
configure.ocaml |
391,428 |
0 |
0 |
0 |
5,112 |
0 |
1,937 |
163 |
dash |
20 |
no-host |
configure.ocaml |
645,252 |
0 |
0 |
0 |
5,112 |
0 |
1,857 |
203 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,633 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
158 |
osh-native |
36 |
no-host |
configure.ocaml |
412,895 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
157 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,544 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,476 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,533 |
0 |
0 |
0 |
96 |
0 |
53 |
19 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,989 |
0 |
0 |
0 |
104 |
0 |
47 |
0 |
osh-native |
37 |
no-host |
configure.tcc |
6,910 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,100,351 |
0 |
0 |
0 |
42,400 |
0 |
18,589 |
1,024 |
bash |
11 |
no-host |
configure.util-linux |
2,257,590 |
0 |
0 |
0 |
42,584 |
0 |
17,375 |
1,234 |
dash |
19 |
no-host |
configure.util-linux |
5,327,107 |
11 |
0 |
0 |
39,112 |
0 |
17,000 |
1,325 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,006,391 |
0 |
0 |
0 |
39,120 |
0 |
16,955 |
1,000 |
osh-native |
35 |
no-host |
configure.util-linux |
1,999,020 |
2 |
0 |
0 |
39,136 |
0 |
16,984 |
970 |
osh-native-souffle |
6 |
no-host |
configure.yash |
255,094 |
0 |
0 |
0 |
4,120 |
0 |
868 |
78 |
bash |
14 |
no-host |
configure.yash |
244,987 |
0 |
0 |
0 |
3,720 |
0 |
863 |
95 |
dash |
22 |
no-host |
configure.yash |
386,918 |
0 |
0 |
0 |
3,728 |
0 |
852 |
71 |
osh-cpython |
30 |
no-host |
configure.yash |
258,636 |
0 |
0 |
0 |
3,736 |
0 |
851 |
72 |
osh-native |
38 |
no-host |
configure.yash |
257,458 |
0 |
0 |
0 |
3,736 |
0 |
847 |
79 |
osh-native-souffle |
0 |
no-host |
hello-world |
149 |
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,729 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
351 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host