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 |
9 |
451 |
22 |
24.17 |
1.18 |
bin-true |
no-host |
666 |
545 |
2,212 |
810 |
3.32 |
1.22 |
configure.cpython |
no-host |
14,819 |
14,869 |
27,987 |
15,029 |
1.89 |
1.01 |
configure.ocaml |
no-host |
3,776 |
3,703 |
4,569 |
3,797 |
1.21 |
1.01 |
configure.tcc |
no-host |
47 |
42 |
190 |
48 |
4.01 |
1.03 |
configure.util-linux |
no-host |
13,779 |
14,704 |
30,620 |
14,191 |
2.22 |
1.03 |
configure.yash |
no-host |
1,792 |
1,753 |
2,407 |
1,810 |
1.34 |
1.01 |
hello-world |
no-host |
1 |
1 |
48 |
3 |
32.10 |
1.87 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,532 |
1,091 |
23,463 |
3,209 |
9.27 |
1.27 |
bin-true |
no-host |
104,297 |
67,390 |
749,914 |
128,171 |
7.19 |
1.23 |
configure.cpython |
no-host |
2,228,152 |
2,242,090 |
6,133,722 |
2,234,209 |
2.75 |
1.00 |
configure.ocaml |
no-host |
410,253 |
391,066 |
637,702 |
413,360 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,548 |
5,469 |
23,125 |
6,973 |
3.53 |
1.06 |
configure.util-linux |
no-host |
2,096,266 |
2,268,376 |
5,308,083 |
2,007,715 |
2.53 |
0.96 |
configure.yash |
no-host |
255,207 |
244,633 |
385,101 |
258,920 |
1.51 |
1.01 |
hello-world |
no-host |
151 |
81 |
3,668 |
348 |
24.29 |
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.2 |
3,729 |
3,729 |
0 |
684 |
1,881 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
810 |
1 |
2 |
2.7 |
8.1 |
154,694 |
12,996 |
2,803 |
11,737 |
78,350 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,029 |
1 |
58 |
15.8 |
27.3 |
1,772,610 |
49,201 |
28,512 |
101,770 |
908,057 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,191 |
3 |
58 |
22.2 |
30.3 |
2,703,274 |
42,775 |
65,816 |
126,121 |
1,320,501 |
1,256,652 |
49,081 |
41 |
131,632 |
1 |
configure.ocaml |
no-host |
3,797 |
0 |
2 |
2.7 |
20.6 |
150,036 |
11,049 |
5,142 |
8,602 |
71,635 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.3 |
30,529 |
30,529 |
0 |
1,599 |
14,805 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,810 |
1 |
2 |
2.6 |
24.4 |
139,693 |
7,968 |
6,604 |
7,554 |
70,307 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.8 |
116,272 |
64,459 |
42,667 |
4,610 |
54,550 |
57,112 |
478 |
3 |
85,334 |
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 |
17 |
2 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
10 |
0 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
451 |
396 |
58 |
21.5 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
17 |
6 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
666 |
512 |
186 |
3.0 |
bash |
9 |
no-host |
bin-true |
545 |
412 |
143 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,212 |
1,427 |
1,037 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
810 |
581 |
245 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
14,819 |
8,745 |
6,476 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
14,869 |
9,005 |
6,284 |
27.1 |
dash |
18 |
no-host |
configure.cpython |
27,987 |
17,298 |
12,465 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,029 |
8,758 |
6,538 |
27.3 |
osh-native |
4 |
no-host |
configure.ocaml |
3,776 |
1,530 |
1,283 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,703 |
1,576 |
1,147 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,569 |
2,237 |
1,533 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,797 |
1,663 |
1,171 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
29 |
19 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
23 |
19 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
190 |
153 |
40 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
48 |
27 |
22 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
13,779 |
8,834 |
5,419 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,704 |
9,021 |
6,178 |
30.4 |
dash |
19 |
no-host |
configure.util-linux |
30,620 |
20,604 |
11,061 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,191 |
8,611 |
5,778 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,792 |
1,024 |
775 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,753 |
1,050 |
707 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,407 |
1,409 |
1,038 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,810 |
1,007 |
807 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
1 |
0 |
2 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
48 |
39 |
9 |
17.3 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.2 |
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,532 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,091 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,463 |
0 |
0 |
0 |
8 |
0 |
47 |
13 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,209 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
osh-native |
1 |
no-host |
bin-true |
104,297 |
0 |
0 |
0 |
8 |
0 |
1,992 |
51 |
bash |
9 |
no-host |
bin-true |
67,390 |
0 |
0 |
0 |
8 |
0 |
1,989 |
161 |
dash |
17 |
no-host |
bin-true |
749,914 |
0 |
0 |
0 |
8 |
0 |
1,992 |
217 |
osh-cpython |
25 |
no-host |
bin-true |
128,171 |
0 |
0 |
0 |
16 |
0 |
1,993 |
99 |
osh-native |
2 |
no-host |
configure.cpython |
2,228,152 |
0 |
0 |
0 |
32,928 |
0 |
14,493 |
1,216 |
bash |
10 |
no-host |
configure.cpython |
2,242,090 |
0 |
0 |
0 |
32,992 |
0 |
14,779 |
1,066 |
dash |
18 |
no-host |
configure.cpython |
6,133,722 |
2 |
0 |
0 |
27,512 |
0 |
13,228 |
1,119 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,234,209 |
0 |
0 |
0 |
27,520 |
0 |
13,315 |
982 |
osh-native |
4 |
no-host |
configure.ocaml |
410,253 |
0 |
0 |
0 |
5,120 |
0 |
1,953 |
183 |
bash |
12 |
no-host |
configure.ocaml |
391,066 |
0 |
0 |
0 |
5,112 |
0 |
1,942 |
169 |
dash |
20 |
no-host |
configure.ocaml |
637,702 |
0 |
0 |
0 |
5,112 |
0 |
1,871 |
176 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,360 |
0 |
0 |
0 |
5,120 |
0 |
1,935 |
159 |
osh-native |
5 |
no-host |
configure.tcc |
6,548 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,469 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,125 |
0 |
0 |
0 |
96 |
0 |
53 |
4 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,973 |
0 |
0 |
0 |
104 |
0 |
47 |
5 |
osh-native |
3 |
no-host |
configure.util-linux |
2,096,266 |
0 |
0 |
0 |
42,400 |
0 |
18,589 |
991 |
bash |
11 |
no-host |
configure.util-linux |
2,268,376 |
0 |
0 |
0 |
42,584 |
0 |
17,422 |
1,073 |
dash |
19 |
no-host |
configure.util-linux |
5,308,083 |
17 |
0 |
0 |
39,120 |
0 |
17,070 |
1,098 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,007,715 |
1 |
0 |
0 |
39,120 |
0 |
17,040 |
1,013 |
osh-native |
6 |
no-host |
configure.yash |
255,207 |
0 |
0 |
0 |
4,120 |
0 |
871 |
81 |
bash |
14 |
no-host |
configure.yash |
244,633 |
0 |
0 |
0 |
3,720 |
0 |
870 |
84 |
dash |
22 |
no-host |
configure.yash |
385,101 |
0 |
0 |
0 |
3,728 |
0 |
855 |
78 |
osh-cpython |
30 |
no-host |
configure.yash |
258,920 |
0 |
0 |
0 |
3,736 |
0 |
850 |
74 |
osh-native |
0 |
no-host |
hello-world |
151 |
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,668 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
348 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host