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 |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
19 |
10 |
450 |
22 |
23.65 |
1.17 |
bin-true |
no-host |
685 |
547 |
2,311 |
810 |
3.37 |
1.18 |
configure.cpython |
no-host |
15,199 |
15,249 |
28,985 |
15,439 |
1.91 |
1.02 |
configure.ocaml |
no-host |
3,860 |
3,799 |
4,675 |
3,835 |
1.21 |
0.99 |
configure.tcc |
no-host |
48 |
42 |
195 |
49 |
4.03 |
1.01 |
configure.util-linux |
no-host |
14,233 |
15,114 |
31,417 |
14,476 |
2.21 |
1.02 |
configure.yash |
no-host |
1,841 |
1,828 |
2,478 |
1,853 |
1.35 |
1.01 |
hello-world |
no-host |
1 |
1 |
50 |
3 |
33.57 |
1.89 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,520 |
1,117 |
22,955 |
3,158 |
9.11 |
1.25 |
bin-true |
no-host |
107,347 |
66,409 |
761,770 |
126,185 |
7.10 |
1.18 |
configure.cpython |
no-host |
2,226,863 |
2,241,162 |
6,188,440 |
2,227,099 |
2.78 |
1.00 |
configure.ocaml |
no-host |
410,591 |
390,645 |
641,048 |
412,452 |
1.56 |
1.00 |
configure.tcc |
no-host |
6,546 |
5,499 |
23,277 |
6,998 |
3.56 |
1.07 |
configure.util-linux |
no-host |
2,113,493 |
2,257,038 |
5,334,110 |
1,999,186 |
2.52 |
0.95 |
configure.yash |
no-host |
256,373 |
244,775 |
385,868 |
258,098 |
1.51 |
1.01 |
hello-world |
no-host |
151 |
84 |
3,690 |
348 |
24.44 |
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.3 |
6.3 |
3,749 |
3,749 |
0 |
684 |
1,892 |
1,173 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
810 |
1 |
2 |
2.6 |
8.0 |
154,714 |
13,066 |
2,818 |
9,734 |
78,361 |
66,619 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,439 |
1 |
62 |
15.0 |
27.3 |
1,772,690 |
49,108 |
28,528 |
86,381 |
908,113 |
778,196 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,476 |
3 |
62 |
21.3 |
30.3 |
2,703,426 |
42,745 |
65,832 |
109,643 |
1,320,611 |
1,273,172 |
27,391 |
41 |
131,664 |
1 |
configure.ocaml |
no-host |
3,835 |
1 |
2 |
2.6 |
20.6 |
150,060 |
10,993 |
5,163 |
7,513 |
71,649 |
70,898 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,549 |
30,549 |
0 |
1,504 |
14,816 |
14,229 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,853 |
1 |
2 |
2.6 |
24.2 |
139,717 |
7,961 |
6,620 |
6,320 |
70,321 |
63,076 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.9 |
116,292 |
64,471 |
42,681 |
4,555 |
54,561 |
57,176 |
270 |
3 |
85,362 |
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.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
7 |
3 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
450 |
423 |
31 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
13 |
9 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
685 |
498 |
220 |
2.9 |
bash |
9 |
no-host |
bin-true |
547 |
430 |
126 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,311 |
1,481 |
1,103 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
810 |
587 |
239 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,199 |
9,151 |
6,446 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,249 |
9,145 |
6,535 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,985 |
17,792 |
13,089 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,439 |
9,033 |
6,675 |
27.3 |
osh-native |
4 |
no-host |
configure.ocaml |
3,860 |
1,657 |
1,242 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,799 |
1,604 |
1,216 |
20.9 |
dash |
20 |
no-host |
configure.ocaml |
4,675 |
2,290 |
1,597 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,835 |
1,668 |
1,206 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
33 |
15 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
19 |
24 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
195 |
129 |
69 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
31 |
19 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,233 |
8,981 |
5,736 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
15,114 |
9,263 |
6,347 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,417 |
21,087 |
11,428 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,476 |
8,634 |
6,038 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,841 |
1,059 |
788 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,828 |
1,062 |
770 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,478 |
1,532 |
990 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,853 |
1,067 |
791 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
1 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
50 |
39 |
11 |
17.6 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.3 |
osh-native |
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,520 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,117 |
0 |
0 |
0 |
8 |
0 |
38 |
1 |
dash |
23 |
no-host |
abuild-print-help |
22,955 |
0 |
0 |
0 |
8 |
0 |
45 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,158 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
1 |
no-host |
bin-true |
107,347 |
0 |
0 |
0 |
8 |
0 |
1,997 |
132 |
bash |
9 |
no-host |
bin-true |
66,409 |
0 |
0 |
0 |
8 |
0 |
1,990 |
69 |
dash |
17 |
no-host |
bin-true |
761,770 |
0 |
0 |
0 |
8 |
0 |
1,997 |
354 |
osh-cpython |
25 |
no-host |
bin-true |
126,185 |
0 |
0 |
0 |
16 |
0 |
1,995 |
51 |
osh-native |
2 |
no-host |
configure.cpython |
2,226,863 |
0 |
0 |
0 |
32,928 |
0 |
14,519 |
1,118 |
bash |
10 |
no-host |
configure.cpython |
2,241,162 |
1 |
0 |
0 |
32,992 |
0 |
14,632 |
1,083 |
dash |
18 |
no-host |
configure.cpython |
6,188,440 |
0 |
0 |
0 |
27,512 |
0 |
13,190 |
1,258 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,227,099 |
2 |
0 |
0 |
27,520 |
0 |
13,253 |
1,131 |
osh-native |
4 |
no-host |
configure.ocaml |
410,591 |
0 |
0 |
0 |
5,120 |
0 |
1,960 |
166 |
bash |
12 |
no-host |
configure.ocaml |
390,645 |
0 |
0 |
0 |
5,112 |
0 |
1,908 |
136 |
dash |
20 |
no-host |
configure.ocaml |
641,048 |
0 |
0 |
0 |
5,112 |
0 |
1,859 |
164 |
osh-cpython |
28 |
no-host |
configure.ocaml |
412,452 |
0 |
0 |
0 |
5,120 |
0 |
1,932 |
153 |
osh-native |
5 |
no-host |
configure.tcc |
6,546 |
0 |
0 |
0 |
104 |
0 |
49 |
4 |
bash |
13 |
no-host |
configure.tcc |
5,499 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,277 |
0 |
0 |
0 |
96 |
0 |
53 |
16 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,998 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,113,493 |
0 |
0 |
0 |
42,400 |
0 |
18,542 |
1,136 |
bash |
11 |
no-host |
configure.util-linux |
2,257,038 |
0 |
0 |
0 |
42,584 |
0 |
17,483 |
1,121 |
dash |
19 |
no-host |
configure.util-linux |
5,334,110 |
9 |
0 |
0 |
39,112 |
0 |
16,969 |
1,216 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,999,186 |
1 |
0 |
0 |
39,120 |
0 |
16,971 |
1,096 |
osh-native |
6 |
no-host |
configure.yash |
256,373 |
0 |
0 |
0 |
4,120 |
0 |
872 |
70 |
bash |
14 |
no-host |
configure.yash |
244,775 |
0 |
0 |
0 |
3,720 |
0 |
866 |
81 |
dash |
22 |
no-host |
configure.yash |
385,868 |
0 |
0 |
0 |
3,728 |
0 |
854 |
70 |
osh-cpython |
30 |
no-host |
configure.yash |
258,098 |
0 |
0 |
0 |
3,736 |
0 |
847 |
76 |
osh-native |
0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
84 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,690 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
348 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host