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 |
10 |
463 |
23 |
21 |
23.32 |
1.15 |
bin-true |
no-host |
681 |
556 |
2,316 |
819 |
816 |
3.40 |
1.20 |
configure.cpython |
no-host |
15,701 |
15,623 |
30,319 |
16,013 |
15,941 |
1.93 |
1.02 |
configure.ocaml |
no-host |
3,961 |
3,879 |
4,828 |
3,971 |
3,963 |
1.22 |
1.00 |
configure.tcc |
no-host |
50 |
43 |
197 |
50 |
49 |
3.93 |
1.00 |
configure.util-linux |
no-host |
14,728 |
15,605 |
33,224 |
15,020 |
14,963 |
2.26 |
1.02 |
configure.yash |
no-host |
1,895 |
1,836 |
2,582 |
1,907 |
1,897 |
1.36 |
1.01 |
hello-world |
no-host |
2 |
1 |
52 |
3 |
3 |
32.31 |
1.82 |
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,534 |
1,133 |
23,240 |
3,169 |
3,067 |
9.17 |
1.25 |
bin-true |
no-host |
106,379 |
65,467 |
765,937 |
123,835 |
124,830 |
7.20 |
1.16 |
configure.cpython |
no-host |
2,222,293 |
2,245,967 |
6,246,189 |
2,229,760 |
2,213,966 |
2.81 |
1.00 |
configure.ocaml |
no-host |
410,437 |
391,819 |
646,178 |
413,020 |
412,143 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,559 |
5,478 |
23,609 |
6,963 |
6,936 |
3.60 |
1.06 |
configure.util-linux |
no-host |
2,102,599 |
2,265,924 |
5,374,777 |
2,002,974 |
1,991,709 |
2.56 |
0.95 |
configure.yash |
no-host |
256,436 |
244,551 |
388,071 |
257,099 |
258,299 |
1.51 |
1.00 |
hello-world |
no-host |
152 |
83 |
3,743 |
353 |
350 |
24.62 |
2.32 |
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 |
696 |
1,851 |
1,228 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
819 |
1 |
2 |
2.6 |
8.1 |
154,740 |
13,220 |
2,877 |
9,746 |
78,320 |
66,674 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
16,013 |
1 |
64 |
15.0 |
27.4 |
1,772,722 |
49,854 |
28,587 |
86,399 |
908,072 |
778,251 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
15,020 |
3 |
64 |
21.3 |
30.1 |
2,703,490 |
29,745 |
65,870 |
109,677 |
1,320,578 |
1,273,235 |
27,391 |
41 |
131,740 |
1 |
configure.ocaml |
no-host |
3,971 |
1 |
2 |
2.6 |
20.6 |
150,096 |
11,051 |
5,221 |
7,533 |
71,605 |
70,958 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.3 |
30,581 |
30,581 |
0 |
1,522 |
14,775 |
14,284 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,907 |
1 |
2 |
2.6 |
24.4 |
139,749 |
8,020 |
6,679 |
6,338 |
70,280 |
63,131 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
9.0 |
116,324 |
64,530 |
42,740 |
4,573 |
54,520 |
57,231 |
270 |
3 |
85,480 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.9 |
3,774 |
3,774 |
0 |
697 |
1,851 |
1,226 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
816 |
1 |
2 |
2.6 |
7.7 |
154,739 |
13,063 |
2,815 |
9,747 |
78,320 |
66,672 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,941 |
2 |
65 |
14.9 |
27.4 |
1,772,721 |
49,105 |
28,525 |
86,400 |
908,072 |
778,249 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,963 |
3 |
66 |
21.3 |
30.1 |
2,703,490 |
42,741 |
65,808 |
109,679 |
1,320,578 |
1,273,233 |
27,391 |
41 |
131,616 |
1 |
configure.ocaml |
no-host |
3,963 |
1 |
2 |
2.6 |
20.6 |
150,096 |
10,989 |
5,159 |
7,535 |
71,605 |
70,956 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.1 |
30,581 |
30,581 |
0 |
1,524 |
14,775 |
14,282 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,897 |
1 |
2 |
2.6 |
24.4 |
139,749 |
7,958 |
6,617 |
6,340 |
70,280 |
63,129 |
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,574 |
54,520 |
57,229 |
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 |
20 |
12 |
8 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
463 |
411 |
55 |
22.0 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
21 |
2 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
12 |
10 |
8.5 |
osh-native-souffle |
1 |
no-host |
bin-true |
681 |
495 |
220 |
3.0 |
bash |
9 |
no-host |
bin-true |
556 |
423 |
139 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,316 |
1,440 |
1,149 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
819 |
573 |
258 |
8.1 |
osh-native |
33 |
no-host |
bin-true |
816 |
581 |
249 |
7.7 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,701 |
9,560 |
6,538 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,623 |
9,342 |
6,687 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
30,319 |
18,169 |
14,140 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
16,013 |
9,448 |
6,841 |
27.4 |
osh-native |
34 |
no-host |
configure.cpython |
15,941 |
9,187 |
6,934 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,961 |
1,762 |
1,237 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,879 |
1,695 |
1,206 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,828 |
2,263 |
1,784 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,971 |
1,704 |
1,305 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,963 |
1,606 |
1,392 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
50 |
36 |
15 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
43 |
31 |
12 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
197 |
143 |
58 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
31 |
20 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
49 |
24 |
26 |
19.1 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,728 |
9,175 |
6,035 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,605 |
9,472 |
6,620 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
33,224 |
22,161 |
12,223 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
15,020 |
8,960 |
6,256 |
30.1 |
osh-native |
35 |
no-host |
configure.util-linux |
14,963 |
8,945 |
6,216 |
30.1 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,895 |
1,060 |
844 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,836 |
1,009 |
831 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,582 |
1,567 |
1,060 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,907 |
1,057 |
854 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,897 |
993 |
908 |
24.4 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
52 |
20 |
31 |
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.9 |
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,534 |
0 |
0 |
0 |
16 |
0 |
40 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,133 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,240 |
0 |
0 |
0 |
8 |
0 |
45 |
12 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,169 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
39 |
no-host |
abuild-print-help |
3,067 |
0 |
0 |
0 |
16 |
0 |
38 |
2 |
osh-native-souffle |
1 |
no-host |
bin-true |
106,379 |
0 |
0 |
0 |
8 |
0 |
1,988 |
52 |
bash |
9 |
no-host |
bin-true |
65,467 |
0 |
0 |
0 |
8 |
0 |
1,988 |
67 |
dash |
17 |
no-host |
bin-true |
765,937 |
0 |
0 |
0 |
8 |
0 |
1,999 |
287 |
osh-cpython |
25 |
no-host |
bin-true |
123,835 |
0 |
0 |
0 |
16 |
0 |
1,988 |
50 |
osh-native |
33 |
no-host |
bin-true |
124,830 |
0 |
0 |
0 |
16 |
0 |
1,994 |
50 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,222,293 |
1 |
0 |
0 |
32,928 |
0 |
14,380 |
951 |
bash |
10 |
no-host |
configure.cpython |
2,245,967 |
0 |
0 |
0 |
32,992 |
0 |
14,669 |
1,070 |
dash |
18 |
no-host |
configure.cpython |
6,246,189 |
0 |
0 |
0 |
27,512 |
0 |
13,253 |
1,270 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,229,760 |
1 |
0 |
0 |
27,520 |
0 |
13,333 |
988 |
osh-native |
34 |
no-host |
configure.cpython |
2,213,966 |
0 |
0 |
0 |
27,520 |
0 |
13,304 |
979 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,437 |
0 |
0 |
0 |
5,120 |
0 |
1,953 |
153 |
bash |
12 |
no-host |
configure.ocaml |
391,819 |
0 |
0 |
0 |
5,112 |
0 |
1,929 |
178 |
dash |
20 |
no-host |
configure.ocaml |
646,178 |
0 |
0 |
0 |
5,112 |
0 |
1,861 |
198 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,020 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
152 |
osh-native |
36 |
no-host |
configure.ocaml |
412,143 |
0 |
0 |
0 |
5,120 |
0 |
1,935 |
144 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,559 |
0 |
0 |
0 |
104 |
0 |
49 |
12 |
bash |
13 |
no-host |
configure.tcc |
5,478 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,609 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,963 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
37 |
no-host |
configure.tcc |
6,936 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,102,599 |
0 |
0 |
0 |
42,400 |
0 |
18,615 |
1,105 |
bash |
11 |
no-host |
configure.util-linux |
2,265,924 |
1 |
0 |
0 |
42,592 |
0 |
17,450 |
1,104 |
dash |
19 |
no-host |
configure.util-linux |
5,374,777 |
5 |
0 |
0 |
39,120 |
0 |
16,956 |
1,297 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,002,974 |
0 |
0 |
0 |
39,128 |
0 |
16,969 |
989 |
osh-native |
35 |
no-host |
configure.util-linux |
1,991,709 |
1 |
0 |
0 |
39,136 |
0 |
17,034 |
1,090 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,436 |
0 |
0 |
0 |
4,120 |
0 |
870 |
86 |
bash |
14 |
no-host |
configure.yash |
244,551 |
0 |
0 |
0 |
3,720 |
0 |
867 |
75 |
dash |
22 |
no-host |
configure.yash |
388,071 |
0 |
0 |
0 |
3,728 |
0 |
856 |
156 |
osh-cpython |
30 |
no-host |
configure.yash |
257,099 |
0 |
0 |
0 |
3,736 |
0 |
849 |
75 |
osh-native |
38 |
no-host |
configure.yash |
258,299 |
0 |
0 |
0 |
3,736 |
0 |
847 |
93 |
osh-native-souffle |
0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
83 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,743 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
353 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
350 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host