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 |
21 |
10 |
449 |
23 |
21.01 |
1.07 |
bin-true |
no-host |
681 |
556 |
2,243 |
824 |
3.29 |
1.21 |
configure.cpython |
no-host |
15,202 |
15,541 |
29,297 |
15,489 |
1.93 |
1.02 |
configure.ocaml |
no-host |
3,838 |
3,823 |
4,647 |
3,890 |
1.21 |
1.01 |
configure.tcc |
no-host |
49 |
42 |
193 |
51 |
3.94 |
1.04 |
configure.util-linux |
no-host |
14,158 |
15,081 |
31,782 |
14,623 |
2.24 |
1.03 |
configure.yash |
no-host |
1,854 |
1,782 |
2,458 |
1,893 |
1.33 |
1.02 |
hello-world |
no-host |
1 |
1 |
50 |
3 |
34.01 |
1.92 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,552 |
1,091 |
23,068 |
3,218 |
9.04 |
1.26 |
bin-true |
no-host |
107,345 |
65,439 |
745,978 |
129,609 |
6.95 |
1.21 |
configure.cpython |
no-host |
2,219,133 |
2,246,097 |
6,062,490 |
2,242,132 |
2.73 |
1.01 |
configure.ocaml |
no-host |
410,682 |
391,237 |
633,772 |
413,570 |
1.54 |
1.01 |
configure.tcc |
no-host |
6,524 |
5,467 |
22,977 |
6,997 |
3.52 |
1.07 |
configure.util-linux |
no-host |
2,102,476 |
2,257,359 |
5,299,979 |
2,010,801 |
2.52 |
0.96 |
configure.yash |
no-host |
256,008 |
244,695 |
383,980 |
258,499 |
1.50 |
1.01 |
hello-world |
no-host |
152 |
83 |
3,634 |
339 |
23.91 |
2.23 |
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,673 |
3,673 |
0 |
681 |
1,828 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
824 |
1 |
2 |
2.7 |
7.9 |
154,619 |
12,860 |
2,762 |
12,730 |
77,280 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,489 |
1 |
67 |
15.9 |
27.3 |
1,765,934 |
39,052 |
24,503 |
101,923 |
901,347 |
762,664 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,623 |
3 |
64 |
22.2 |
30.3 |
2,695,085 |
29,056 |
65,754 |
126,121 |
1,312,366 |
1,256,598 |
49,081 |
41 |
131,508 |
1 |
configure.ocaml |
no-host |
3,890 |
1 |
2 |
2.7 |
20.6 |
149,110 |
10,969 |
5,100 |
8,602 |
70,893 |
69,615 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
51 |
0 |
0 |
1.3 |
19.3 |
30,387 |
30,387 |
0 |
1,599 |
14,663 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,893 |
1 |
2 |
2.6 |
24.4 |
138,968 |
6,642 |
6,495 |
7,554 |
69,574 |
61,840 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
9.0 |
116,013 |
64,388 |
42,627 |
4,601 |
54,295 |
57,117 |
478 |
3 |
85,254 |
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 |
21 |
20 |
2 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
6 |
4 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
449 |
398 |
55 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
15 |
9 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
681 |
541 |
172 |
2.9 |
bash |
9 |
no-host |
bin-true |
556 |
431 |
135 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,243 |
1,462 |
1,034 |
17.2 |
osh-cpython |
25 |
no-host |
bin-true |
824 |
600 |
238 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,202 |
9,368 |
6,247 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,541 |
9,255 |
6,717 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,297 |
17,759 |
13,411 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,489 |
9,004 |
6,760 |
27.3 |
osh-native |
4 |
no-host |
configure.ocaml |
3,838 |
1,662 |
1,210 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,823 |
1,590 |
1,252 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,647 |
2,303 |
1,545 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,890 |
1,695 |
1,235 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
49 |
28 |
22 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
18 |
24 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
193 |
167 |
29 |
19.1 |
osh-cpython |
29 |
no-host |
configure.tcc |
51 |
35 |
16 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,158 |
9,041 |
5,609 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
15,081 |
9,293 |
6,289 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,782 |
21,146 |
11,726 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,623 |
8,951 |
5,877 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,854 |
1,063 |
800 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,782 |
1,089 |
696 |
24.5 |
dash |
22 |
no-host |
configure.yash |
2,458 |
1,497 |
1,002 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,893 |
1,127 |
770 |
24.4 |
osh-native |
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 |
38 |
12 |
17.0 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
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,552 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,091 |
0 |
0 |
0 |
8 |
0 |
39 |
2 |
dash |
23 |
no-host |
abuild-print-help |
23,068 |
0 |
0 |
0 |
8 |
0 |
47 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,218 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
osh-native |
1 |
no-host |
bin-true |
107,345 |
0 |
0 |
0 |
8 |
0 |
1,990 |
42 |
bash |
9 |
no-host |
bin-true |
65,439 |
0 |
0 |
0 |
8 |
0 |
1,989 |
64 |
dash |
17 |
no-host |
bin-true |
745,978 |
0 |
0 |
0 |
8 |
0 |
1,999 |
155 |
osh-cpython |
25 |
no-host |
bin-true |
129,609 |
0 |
0 |
0 |
16 |
0 |
1,987 |
54 |
osh-native |
2 |
no-host |
configure.cpython |
2,219,133 |
1 |
0 |
0 |
32,928 |
0 |
14,615 |
1,167 |
bash |
10 |
no-host |
configure.cpython |
2,246,097 |
0 |
0 |
0 |
32,992 |
0 |
14,673 |
1,244 |
dash |
18 |
no-host |
configure.cpython |
6,062,490 |
0 |
0 |
0 |
27,512 |
0 |
13,387 |
1,231 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,242,132 |
0 |
0 |
0 |
27,520 |
0 |
13,338 |
1,055 |
osh-native |
4 |
no-host |
configure.ocaml |
410,682 |
0 |
0 |
0 |
5,120 |
0 |
1,946 |
240 |
bash |
12 |
no-host |
configure.ocaml |
391,237 |
0 |
0 |
0 |
5,112 |
0 |
1,875 |
149 |
dash |
20 |
no-host |
configure.ocaml |
633,772 |
1 |
0 |
0 |
5,112 |
0 |
1,854 |
181 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,570 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
177 |
osh-native |
5 |
no-host |
configure.tcc |
6,524 |
0 |
0 |
0 |
104 |
0 |
49 |
7 |
bash |
13 |
no-host |
configure.tcc |
5,467 |
0 |
0 |
0 |
96 |
0 |
47 |
14 |
dash |
21 |
no-host |
configure.tcc |
22,977 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,997 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,102,476 |
1 |
0 |
0 |
42,400 |
0 |
18,522 |
1,027 |
bash |
11 |
no-host |
configure.util-linux |
2,257,359 |
1 |
0 |
0 |
42,592 |
0 |
17,215 |
1,107 |
dash |
19 |
no-host |
configure.util-linux |
5,299,979 |
12 |
0 |
0 |
39,136 |
0 |
17,198 |
1,226 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,010,801 |
0 |
0 |
0 |
39,120 |
0 |
17,035 |
973 |
osh-native |
6 |
no-host |
configure.yash |
256,008 |
0 |
0 |
0 |
4,120 |
0 |
868 |
71 |
bash |
14 |
no-host |
configure.yash |
244,695 |
0 |
0 |
0 |
3,720 |
0 |
874 |
73 |
dash |
22 |
no-host |
configure.yash |
383,980 |
0 |
0 |
0 |
3,728 |
0 |
858 |
93 |
osh-cpython |
30 |
no-host |
configure.yash |
258,499 |
0 |
0 |
0 |
3,736 |
0 |
853 |
89 |
osh-native |
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,634 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
339 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host