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 |
466 |
23 |
21 |
23.93 |
1.16 |
bin-true |
no-host |
677 |
551 |
2,319 |
818 |
833 |
3.42 |
1.21 |
configure.cpython |
no-host |
15,357 |
15,264 |
28,943 |
15,411 |
15,690 |
1.88 |
1.00 |
configure.ocaml |
no-host |
3,872 |
3,774 |
4,720 |
3,918 |
3,899 |
1.22 |
1.01 |
configure.tcc |
no-host |
48 |
42 |
199 |
50 |
49 |
4.14 |
1.03 |
configure.util-linux |
no-host |
14,217 |
15,014 |
31,421 |
14,713 |
14,577 |
2.21 |
1.03 |
configure.yash |
no-host |
1,844 |
1,783 |
2,502 |
1,866 |
1,868 |
1.36 |
1.01 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
3 |
31.70 |
1.89 |
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,546 |
1,088 |
23,432 |
3,200 |
3,069 |
9.20 |
1.26 |
bin-true |
no-host |
105,425 |
66,456 |
779,568 |
126,859 |
126,930 |
7.39 |
1.20 |
configure.cpython |
no-host |
2,218,773 |
2,252,169 |
6,246,955 |
2,218,850 |
2,210,620 |
2.82 |
1.00 |
configure.ocaml |
no-host |
410,927 |
390,699 |
647,633 |
413,164 |
412,197 |
1.58 |
1.01 |
configure.tcc |
no-host |
6,556 |
5,487 |
23,797 |
6,956 |
6,931 |
3.63 |
1.06 |
configure.util-linux |
no-host |
2,103,388 |
2,267,441 |
5,367,324 |
2,001,082 |
1,994,120 |
2.55 |
0.95 |
configure.yash |
no-host |
254,995 |
245,122 |
388,454 |
258,213 |
257,761 |
1.52 |
1.01 |
hello-world |
no-host |
151 |
80 |
3,748 |
349 |
344 |
24.82 |
2.31 |
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,774 |
3,774 |
0 |
695 |
1,851 |
1,228 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
818 |
1 |
2 |
2.6 |
8.1 |
154,739 |
13,221 |
2,878 |
9,745 |
78,320 |
66,674 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,411 |
1 |
64 |
15.0 |
27.5 |
1,772,721 |
49,855 |
28,588 |
86,398 |
908,072 |
778,251 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,713 |
3 |
63 |
21.3 |
30.0 |
2,703,489 |
29,746 |
65,871 |
109,676 |
1,320,578 |
1,273,235 |
27,391 |
41 |
131,742 |
1 |
configure.ocaml |
no-host |
3,918 |
1 |
2 |
2.6 |
20.6 |
150,095 |
11,052 |
5,222 |
7,532 |
71,605 |
70,958 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.3 |
30,580 |
30,580 |
0 |
1,521 |
14,775 |
14,284 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,866 |
1 |
2 |
2.6 |
24.2 |
139,748 |
8,021 |
6,680 |
6,337 |
70,280 |
63,131 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
9.0 |
116,323 |
64,531 |
42,741 |
4,572 |
54,520 |
57,231 |
270 |
3 |
85,482 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.8 |
3,773 |
3,773 |
0 |
696 |
1,851 |
1,226 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
833 |
1 |
2 |
2.6 |
7.7 |
154,738 |
13,064 |
2,816 |
9,746 |
78,320 |
66,672 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,690 |
1 |
66 |
14.9 |
27.4 |
1,772,720 |
49,106 |
28,526 |
86,399 |
908,072 |
778,249 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,577 |
3 |
65 |
21.3 |
30.3 |
2,703,489 |
42,742 |
65,829 |
109,678 |
1,320,578 |
1,273,233 |
27,391 |
41 |
131,658 |
1 |
configure.ocaml |
no-host |
3,899 |
1 |
2 |
2.6 |
20.6 |
150,095 |
10,990 |
5,160 |
7,534 |
71,605 |
70,956 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.1 |
30,580 |
30,580 |
0 |
1,523 |
14,775 |
14,282 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,868 |
1 |
2 |
2.6 |
24.4 |
139,748 |
7,959 |
6,618 |
6,339 |
70,280 |
63,129 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.3 |
116,322 |
64,469 |
42,679 |
4,573 |
54,520 |
57,229 |
270 |
3 |
85,358 |
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.4 |
dash |
23 |
no-host |
abuild-print-help |
466 |
404 |
65 |
22.2 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
21 |
2 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
11 |
10 |
8.3 |
osh-native-souffle |
1 |
no-host |
bin-true |
677 |
532 |
176 |
3.0 |
bash |
9 |
no-host |
bin-true |
551 |
419 |
140 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,319 |
1,478 |
1,115 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
818 |
588 |
243 |
8.1 |
osh-native |
33 |
no-host |
bin-true |
833 |
601 |
247 |
7.7 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,357 |
9,174 |
6,586 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,264 |
9,180 |
6,505 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,943 |
17,660 |
13,155 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,411 |
9,199 |
6,475 |
27.5 |
osh-native |
34 |
no-host |
configure.cpython |
15,690 |
9,264 |
6,609 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,872 |
1,630 |
1,277 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,774 |
1,596 |
1,198 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,720 |
2,374 |
1,566 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,918 |
1,665 |
1,292 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,899 |
1,698 |
1,238 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
26 |
23 |
19.1 |
bash |
13 |
no-host |
configure.tcc |
42 |
23 |
19 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
199 |
156 |
47 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
31 |
19 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
49 |
35 |
14 |
19.1 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,217 |
8,847 |
5,849 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
15,014 |
9,285 |
6,216 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,421 |
21,253 |
11,258 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,713 |
8,830 |
6,085 |
30.0 |
osh-native |
35 |
no-host |
configure.util-linux |
14,577 |
8,909 |
5,864 |
30.3 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,844 |
1,096 |
757 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,783 |
1,061 |
726 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,502 |
1,569 |
977 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,866 |
1,068 |
801 |
24.2 |
osh-native |
38 |
no-host |
configure.yash |
1,868 |
1,082 |
787 |
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.4 |
dash |
16 |
no-host |
hello-world |
49 |
33 |
16 |
17.7 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.3 |
osh-native |
32 |
no-host |
hello-world |
3 |
0 |
3 |
5.8 |
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,546 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,088 |
0 |
0 |
0 |
8 |
0 |
39 |
2 |
dash |
23 |
no-host |
abuild-print-help |
23,432 |
0 |
0 |
0 |
8 |
0 |
45 |
12 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,200 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
39 |
no-host |
abuild-print-help |
3,069 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native-souffle |
1 |
no-host |
bin-true |
105,425 |
0 |
0 |
0 |
8 |
0 |
1,992 |
127 |
bash |
9 |
no-host |
bin-true |
66,456 |
0 |
0 |
0 |
8 |
0 |
1,991 |
90 |
dash |
17 |
no-host |
bin-true |
779,568 |
0 |
0 |
0 |
8 |
0 |
1,999 |
286 |
osh-cpython |
25 |
no-host |
bin-true |
126,859 |
0 |
0 |
0 |
16 |
0 |
1,998 |
154 |
osh-native |
33 |
no-host |
bin-true |
126,930 |
0 |
0 |
0 |
16 |
0 |
1,987 |
177 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,218,773 |
0 |
0 |
0 |
32,928 |
0 |
14,518 |
1,067 |
bash |
10 |
no-host |
configure.cpython |
2,252,169 |
0 |
0 |
0 |
32,992 |
0 |
14,532 |
1,076 |
dash |
18 |
no-host |
configure.cpython |
6,246,955 |
2 |
0 |
0 |
27,512 |
0 |
13,124 |
1,294 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,218,850 |
0 |
0 |
0 |
27,520 |
0 |
13,265 |
1,049 |
osh-native |
34 |
no-host |
configure.cpython |
2,210,620 |
0 |
0 |
0 |
27,520 |
0 |
13,210 |
940 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,927 |
0 |
0 |
0 |
5,120 |
0 |
1,957 |
161 |
bash |
12 |
no-host |
configure.ocaml |
390,699 |
0 |
0 |
0 |
5,112 |
0 |
1,941 |
153 |
dash |
20 |
no-host |
configure.ocaml |
647,633 |
0 |
0 |
0 |
5,112 |
0 |
1,858 |
215 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,164 |
0 |
0 |
0 |
5,120 |
0 |
1,929 |
184 |
osh-native |
36 |
no-host |
configure.ocaml |
412,197 |
0 |
0 |
0 |
5,120 |
0 |
1,929 |
156 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,556 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,487 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,797 |
0 |
0 |
0 |
96 |
0 |
53 |
7 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,956 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
37 |
no-host |
configure.tcc |
6,931 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,103,388 |
1 |
0 |
0 |
42,400 |
0 |
18,591 |
1,059 |
bash |
11 |
no-host |
configure.util-linux |
2,267,441 |
0 |
0 |
0 |
42,584 |
0 |
17,481 |
1,171 |
dash |
19 |
no-host |
configure.util-linux |
5,367,324 |
6 |
0 |
0 |
39,112 |
0 |
16,965 |
1,246 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,001,082 |
0 |
0 |
0 |
39,128 |
0 |
17,110 |
1,042 |
osh-native |
35 |
no-host |
configure.util-linux |
1,994,120 |
0 |
0 |
0 |
39,136 |
0 |
16,983 |
1,063 |
osh-native-souffle |
6 |
no-host |
configure.yash |
254,995 |
0 |
0 |
0 |
4,120 |
0 |
873 |
87 |
bash |
14 |
no-host |
configure.yash |
245,122 |
0 |
0 |
0 |
3,720 |
0 |
870 |
89 |
dash |
22 |
no-host |
configure.yash |
388,454 |
0 |
0 |
0 |
3,728 |
0 |
854 |
111 |
osh-cpython |
30 |
no-host |
configure.yash |
258,213 |
0 |
0 |
0 |
3,736 |
0 |
847 |
73 |
osh-native |
38 |
no-host |
configure.yash |
257,761 |
0 |
0 |
0 |
3,736 |
0 |
851 |
79 |
osh-native-souffle |
0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
80 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,748 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native-souffle |
Shell and Host