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 |
20 |
9 |
463 |
23 |
21 |
23.57 |
1.17 |
bin-true |
no-host |
685 |
557 |
2,276 |
821 |
819 |
3.32 |
1.20 |
configure.cpython |
no-host |
15,684 |
15,667 |
29,711 |
15,831 |
15,986 |
1.89 |
1.01 |
configure.ocaml |
no-host |
3,923 |
3,840 |
4,798 |
3,985 |
3,947 |
1.22 |
1.02 |
configure.tcc |
no-host |
49 |
43 |
202 |
51 |
50 |
4.13 |
1.04 |
configure.util-linux |
no-host |
14,491 |
15,495 |
32,776 |
14,863 |
15,026 |
2.26 |
1.03 |
configure.yash |
no-host |
1,879 |
1,849 |
2,544 |
1,889 |
1,897 |
1.35 |
1.01 |
hello-world |
no-host |
2 |
1 |
53 |
3 |
3 |
34.14 |
1.81 |
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,573 |
1,108 |
23,387 |
3,142 |
3,074 |
9.09 |
1.22 |
bin-true |
no-host |
105,378 |
66,460 |
770,077 |
125,896 |
124,868 |
7.31 |
1.19 |
configure.cpython |
no-host |
2,222,454 |
2,240,471 |
6,231,229 |
2,221,159 |
2,208,931 |
2.80 |
1.00 |
configure.ocaml |
no-host |
410,476 |
390,477 |
645,757 |
412,856 |
412,405 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,542 |
5,467 |
23,746 |
6,945 |
6,891 |
3.63 |
1.06 |
configure.util-linux |
no-host |
2,105,498 |
2,263,012 |
5,359,141 |
2,000,985 |
1,995,708 |
2.55 |
0.95 |
configure.yash |
no-host |
256,394 |
244,691 |
387,208 |
258,383 |
257,792 |
1.51 |
1.01 |
hello-world |
no-host |
155 |
84 |
3,749 |
350 |
346 |
24.19 |
2.26 |
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,857 |
1,228 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
821 |
1 |
2 |
2.6 |
8.0 |
154,745 |
13,282 |
2,884 |
9,745 |
78,326 |
66,674 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,831 |
2 |
67 |
15.0 |
27.4 |
1,772,727 |
49,861 |
28,594 |
86,398 |
908,078 |
778,251 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,863 |
3 |
65 |
21.3 |
30.3 |
2,703,495 |
29,752 |
65,877 |
109,676 |
1,320,584 |
1,273,235 |
27,391 |
41 |
131,754 |
1 |
configure.ocaml |
no-host |
3,985 |
1 |
2 |
2.6 |
20.6 |
150,101 |
11,058 |
5,228 |
7,532 |
71,611 |
70,958 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
51 |
0 |
0 |
1.3 |
19.3 |
30,586 |
30,586 |
0 |
1,521 |
14,781 |
14,284 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,889 |
1 |
2 |
2.6 |
24.4 |
139,754 |
8,027 |
6,686 |
6,337 |
70,286 |
63,131 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
9.0 |
116,329 |
64,537 |
42,747 |
4,572 |
54,526 |
57,231 |
270 |
3 |
85,494 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.8 |
3,779 |
3,779 |
0 |
696 |
1,857 |
1,226 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
819 |
1 |
2 |
2.6 |
7.6 |
154,744 |
13,070 |
2,822 |
9,746 |
78,326 |
66,672 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,986 |
1 |
68 |
14.9 |
27.4 |
1,772,726 |
49,112 |
28,532 |
86,399 |
908,078 |
778,249 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
15,026 |
3 |
68 |
21.3 |
30.1 |
2,703,495 |
42,748 |
65,815 |
109,678 |
1,320,584 |
1,273,233 |
27,391 |
41 |
131,630 |
1 |
configure.ocaml |
no-host |
3,947 |
1 |
2 |
2.6 |
20.6 |
150,101 |
10,996 |
5,166 |
7,534 |
71,611 |
70,956 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.3 |
30,586 |
30,586 |
0 |
1,523 |
14,781 |
14,282 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,897 |
1 |
2 |
2.6 |
24.2 |
139,754 |
7,965 |
6,624 |
6,339 |
70,286 |
63,129 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.7 |
116,328 |
64,475 |
42,685 |
4,573 |
54,526 |
57,229 |
270 |
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 |
20 |
16 |
4 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
6 |
4 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
463 |
416 |
50 |
22.2 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
16 |
7 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
13 |
9 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
685 |
496 |
219 |
2.9 |
bash |
9 |
no-host |
bin-true |
557 |
420 |
142 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,276 |
1,478 |
1,062 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
821 |
584 |
252 |
8.0 |
osh-native |
33 |
no-host |
bin-true |
819 |
584 |
249 |
7.6 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,684 |
9,474 |
6,608 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,667 |
9,324 |
6,766 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
29,711 |
17,790 |
13,862 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,831 |
9,412 |
6,679 |
27.4 |
osh-native |
34 |
no-host |
configure.cpython |
15,986 |
9,330 |
6,824 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,923 |
1,747 |
1,209 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,840 |
1,641 |
1,214 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,798 |
2,275 |
1,740 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,985 |
1,720 |
1,299 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,947 |
1,664 |
1,319 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
49 |
28 |
22 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
43 |
28 |
15 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
202 |
135 |
71 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
51 |
26 |
25 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
50 |
32 |
18 |
19.3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,491 |
9,191 |
5,761 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,495 |
9,471 |
6,501 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
32,776 |
21,520 |
12,387 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,863 |
9,044 |
6,003 |
30.3 |
osh-native |
35 |
no-host |
configure.util-linux |
15,026 |
9,028 |
6,172 |
30.1 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,879 |
1,104 |
784 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,849 |
1,044 |
794 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,544 |
1,587 |
999 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,889 |
1,079 |
810 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,897 |
1,097 |
804 |
24.2 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
53 |
24 |
29 |
17.6 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.2 |
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,573 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,108 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,387 |
0 |
0 |
0 |
8 |
0 |
45 |
11 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,142 |
0 |
0 |
0 |
16 |
0 |
39 |
3 |
osh-native |
39 |
no-host |
abuild-print-help |
3,074 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
1 |
no-host |
bin-true |
105,378 |
0 |
0 |
0 |
8 |
0 |
1,992 |
89 |
bash |
9 |
no-host |
bin-true |
66,460 |
0 |
0 |
0 |
8 |
0 |
1,983 |
122 |
dash |
17 |
no-host |
bin-true |
770,077 |
0 |
0 |
0 |
8 |
0 |
1,987 |
180 |
osh-cpython |
25 |
no-host |
bin-true |
125,896 |
0 |
0 |
0 |
16 |
0 |
1,987 |
190 |
osh-native |
33 |
no-host |
bin-true |
124,868 |
0 |
0 |
0 |
16 |
0 |
1,993 |
76 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,222,454 |
0 |
0 |
0 |
32,928 |
0 |
14,577 |
1,078 |
bash |
10 |
no-host |
configure.cpython |
2,240,471 |
0 |
0 |
0 |
32,992 |
0 |
14,583 |
1,222 |
dash |
18 |
no-host |
configure.cpython |
6,231,229 |
0 |
0 |
0 |
27,512 |
0 |
13,288 |
1,166 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,221,159 |
0 |
0 |
0 |
27,520 |
0 |
13,174 |
1,053 |
osh-native |
34 |
no-host |
configure.cpython |
2,208,931 |
0 |
0 |
0 |
27,520 |
0 |
13,201 |
982 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,476 |
0 |
0 |
0 |
5,120 |
0 |
1,956 |
268 |
bash |
12 |
no-host |
configure.ocaml |
390,477 |
0 |
0 |
0 |
5,112 |
0 |
1,875 |
144 |
dash |
20 |
no-host |
configure.ocaml |
645,757 |
0 |
0 |
0 |
5,112 |
0 |
1,852 |
181 |
osh-cpython |
28 |
no-host |
configure.ocaml |
412,856 |
0 |
0 |
0 |
5,120 |
0 |
1,924 |
166 |
osh-native |
36 |
no-host |
configure.ocaml |
412,405 |
0 |
0 |
0 |
5,120 |
0 |
1,932 |
158 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,542 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,467 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,746 |
0 |
0 |
0 |
96 |
0 |
53 |
12 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,945 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
37 |
no-host |
configure.tcc |
6,891 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,105,498 |
0 |
0 |
0 |
42,400 |
0 |
18,552 |
1,055 |
bash |
11 |
no-host |
configure.util-linux |
2,263,012 |
0 |
0 |
0 |
42,584 |
0 |
17,513 |
1,099 |
dash |
19 |
no-host |
configure.util-linux |
5,359,141 |
6 |
0 |
0 |
39,112 |
0 |
16,968 |
1,280 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,000,985 |
1 |
0 |
0 |
39,128 |
0 |
16,981 |
921 |
osh-native |
35 |
no-host |
configure.util-linux |
1,995,708 |
1 |
0 |
0 |
39,136 |
0 |
16,963 |
1,053 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,394 |
0 |
0 |
0 |
4,120 |
0 |
868 |
100 |
bash |
14 |
no-host |
configure.yash |
244,691 |
0 |
0 |
0 |
3,720 |
0 |
867 |
68 |
dash |
22 |
no-host |
configure.yash |
387,208 |
0 |
0 |
0 |
3,728 |
0 |
852 |
112 |
osh-cpython |
30 |
no-host |
configure.yash |
258,383 |
0 |
0 |
0 |
3,736 |
0 |
847 |
84 |
osh-native |
38 |
no-host |
configure.yash |
257,792 |
0 |
0 |
0 |
3,736 |
0 |
848 |
132 |
osh-native-souffle |
0 |
no-host |
hello-world |
155 |
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,749 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
24 |
no-host |
hello-world |
350 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host