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 |
468 |
22 |
21 |
24.55 |
1.17 |
bin-true |
no-host |
663 |
542 |
2,247 |
813 |
803 |
3.39 |
1.23 |
configure.cpython |
no-host |
14,954 |
15,207 |
28,874 |
15,237 |
15,240 |
1.93 |
1.02 |
configure.ocaml |
no-host |
3,804 |
3,769 |
4,635 |
3,937 |
3,814 |
1.22 |
1.03 |
configure.tcc |
no-host |
48 |
42 |
194 |
48 |
48 |
4.04 |
1.00 |
configure.util-linux |
no-host |
13,987 |
14,951 |
31,217 |
14,354 |
14,294 |
2.23 |
1.03 |
configure.yash |
no-host |
1,812 |
1,782 |
2,460 |
1,824 |
1,836 |
1.36 |
1.01 |
hello-world |
no-host |
1 |
1 |
50 |
3 |
3 |
34.52 |
2.06 |
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,542 |
1,129 |
23,403 |
3,146 |
3,120 |
9.21 |
1.24 |
bin-true |
no-host |
104,349 |
66,510 |
777,008 |
124,888 |
124,784 |
7.45 |
1.20 |
configure.cpython |
no-host |
2,218,688 |
2,236,564 |
6,235,745 |
2,234,113 |
2,209,636 |
2.81 |
1.01 |
configure.ocaml |
no-host |
410,499 |
390,970 |
645,793 |
413,235 |
412,677 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,566 |
5,480 |
23,695 |
6,953 |
6,898 |
3.61 |
1.06 |
configure.util-linux |
no-host |
2,100,471 |
2,261,716 |
5,370,890 |
2,001,830 |
1,987,406 |
2.56 |
0.95 |
configure.yash |
no-host |
255,744 |
244,601 |
386,828 |
258,358 |
257,653 |
1.51 |
1.01 |
hello-world |
no-host |
155 |
81 |
3,747 |
354 |
347 |
24.17 |
2.28 |
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.4 |
3,780 |
3,780 |
0 |
695 |
1,857 |
1,228 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
813 |
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,237 |
1 |
59 |
15.0 |
27.3 |
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,354 |
3 |
59 |
21.3 |
30.1 |
2,703,495 |
29,153 |
65,897 |
109,676 |
1,320,584 |
1,273,235 |
27,391 |
41 |
131,794 |
1 |
configure.ocaml |
no-host |
3,937 |
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 |
48 |
0 |
0 |
1.3 |
19.4 |
30,586 |
30,586 |
0 |
1,521 |
14,781 |
14,284 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,824 |
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 |
22 |
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 |
6.0 |
3,779 |
3,779 |
0 |
696 |
1,857 |
1,226 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
803 |
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,240 |
1 |
60 |
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 |
14,294 |
3 |
59 |
21.3 |
30.1 |
2,703,495 |
42,748 |
65,835 |
109,678 |
1,320,584 |
1,273,233 |
27,391 |
41 |
131,670 |
1 |
configure.ocaml |
no-host |
3,814 |
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 |
48 |
0 |
0 |
1.3 |
19.4 |
30,586 |
30,586 |
0 |
1,523 |
14,781 |
14,282 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,836 |
1 |
2 |
2.6 |
24.4 |
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 |
19 |
10 |
10 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
468 |
431 |
39 |
22.0 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
17 |
6 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
15 |
7 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
663 |
503 |
192 |
2.9 |
bash |
9 |
no-host |
bin-true |
542 |
419 |
129 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,247 |
1,452 |
1,062 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
813 |
578 |
250 |
8.0 |
osh-native |
33 |
no-host |
bin-true |
803 |
592 |
228 |
7.6 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
14,954 |
9,138 |
6,213 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,207 |
9,161 |
6,470 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
28,874 |
17,862 |
12,896 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,237 |
9,141 |
6,366 |
27.3 |
osh-native |
34 |
no-host |
configure.cpython |
15,240 |
8,887 |
6,536 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,804 |
1,647 |
1,193 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,769 |
1,655 |
1,132 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,635 |
2,299 |
1,547 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,937 |
1,759 |
1,216 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,814 |
1,696 |
1,154 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
33 |
15 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
17 |
25 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
194 |
139 |
58 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
48 |
29 |
19 |
19.4 |
osh-native |
37 |
no-host |
configure.tcc |
48 |
31 |
17 |
19.4 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
13,987 |
8,772 |
5,688 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,951 |
9,166 |
6,287 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,217 |
20,716 |
11,605 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,354 |
8,657 |
5,899 |
30.1 |
osh-native |
35 |
no-host |
configure.util-linux |
14,294 |
8,749 |
5,741 |
30.1 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,812 |
1,081 |
739 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,782 |
1,030 |
754 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,460 |
1,462 |
1,039 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,824 |
1,064 |
764 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,836 |
1,063 |
770 |
24.4 |
osh-native-souffle |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
16 |
no-host |
hello-world |
50 |
37 |
12 |
17.6 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.4 |
osh-native |
32 |
no-host |
hello-world |
3 |
0 |
3 |
6.0 |
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,542 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,129 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,403 |
0 |
0 |
0 |
8 |
0 |
45 |
6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,146 |
0 |
0 |
0 |
16 |
0 |
39 |
3 |
osh-native |
39 |
no-host |
abuild-print-help |
3,120 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native-souffle |
1 |
no-host |
bin-true |
104,349 |
0 |
0 |
0 |
8 |
0 |
1,993 |
51 |
bash |
9 |
no-host |
bin-true |
66,510 |
0 |
0 |
0 |
8 |
0 |
1,986 |
40 |
dash |
17 |
no-host |
bin-true |
777,008 |
0 |
0 |
0 |
8 |
0 |
1,992 |
78 |
osh-cpython |
25 |
no-host |
bin-true |
124,888 |
0 |
0 |
0 |
16 |
0 |
1,993 |
190 |
osh-native |
33 |
no-host |
bin-true |
124,784 |
0 |
0 |
0 |
16 |
0 |
1,996 |
60 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,218,688 |
0 |
0 |
0 |
32,928 |
0 |
14,482 |
1,028 |
bash |
10 |
no-host |
configure.cpython |
2,236,564 |
0 |
0 |
0 |
32,992 |
0 |
14,639 |
1,070 |
dash |
18 |
no-host |
configure.cpython |
6,235,745 |
0 |
0 |
0 |
27,512 |
0 |
13,220 |
1,167 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,234,113 |
0 |
0 |
0 |
27,520 |
0 |
13,298 |
907 |
osh-native |
34 |
no-host |
configure.cpython |
2,209,636 |
2 |
0 |
0 |
27,520 |
0 |
13,291 |
859 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,499 |
0 |
0 |
0 |
5,120 |
0 |
1,953 |
172 |
bash |
12 |
no-host |
configure.ocaml |
390,970 |
0 |
0 |
0 |
5,112 |
0 |
1,887 |
167 |
dash |
20 |
no-host |
configure.ocaml |
645,793 |
1 |
0 |
0 |
5,112 |
0 |
1,858 |
184 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,235 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
205 |
osh-native |
36 |
no-host |
configure.ocaml |
412,677 |
0 |
0 |
0 |
5,120 |
0 |
1,934 |
166 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,566 |
0 |
0 |
0 |
104 |
0 |
49 |
4 |
bash |
13 |
no-host |
configure.tcc |
5,480 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,695 |
0 |
0 |
0 |
96 |
0 |
53 |
9 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,953 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
37 |
no-host |
configure.tcc |
6,898 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,100,471 |
1 |
0 |
0 |
42,400 |
0 |
18,588 |
1,013 |
bash |
11 |
no-host |
configure.util-linux |
2,261,716 |
1 |
0 |
0 |
42,584 |
0 |
17,517 |
1,098 |
dash |
19 |
no-host |
configure.util-linux |
5,370,890 |
7 |
0 |
0 |
39,112 |
0 |
16,946 |
1,308 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,001,830 |
1 |
0 |
0 |
39,120 |
0 |
16,976 |
951 |
osh-native |
35 |
no-host |
configure.util-linux |
1,987,406 |
1 |
0 |
0 |
39,128 |
0 |
17,098 |
982 |
osh-native-souffle |
6 |
no-host |
configure.yash |
255,744 |
0 |
0 |
0 |
4,120 |
0 |
871 |
88 |
bash |
14 |
no-host |
configure.yash |
244,601 |
0 |
0 |
0 |
3,720 |
0 |
868 |
86 |
dash |
22 |
no-host |
configure.yash |
386,828 |
0 |
0 |
0 |
3,728 |
0 |
852 |
99 |
osh-cpython |
30 |
no-host |
configure.yash |
258,358 |
0 |
0 |
0 |
3,736 |
0 |
844 |
84 |
osh-native |
38 |
no-host |
configure.yash |
257,653 |
0 |
0 |
0 |
3,736 |
0 |
851 |
75 |
osh-native-souffle |
0 |
no-host |
hello-world |
155 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
81 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,747 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
354 |
0 |
0 |
0 |
16 |
0 |
0 |
1 |
osh-native |
32 |
no-host |
hello-world |
347 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native-souffle |
Shell and Host