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 |
20 |
10 |
454 |
22 |
23.06 |
1.14 |
bin-true |
no-host |
676 |
542 |
2,241 |
819 |
3.31 |
1.21 |
configure.cpython |
no-host |
15,156 |
15,232 |
28,856 |
15,376 |
1.90 |
1.01 |
configure.ocaml |
no-host |
3,839 |
3,780 |
4,701 |
3,870 |
1.22 |
1.01 |
configure.tcc |
no-host |
49 |
42 |
197 |
49 |
4.05 |
1.01 |
configure.util-linux |
no-host |
14,114 |
15,054 |
31,428 |
14,530 |
2.23 |
1.03 |
configure.yash |
no-host |
1,833 |
1,777 |
2,470 |
1,864 |
1.35 |
1.02 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
29.32 |
1.77 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,566 |
1,129 |
23,257 |
3,202 |
9.06 |
1.25 |
bin-true |
no-host |
104,351 |
66,446 |
748,484 |
128,120 |
7.17 |
1.23 |
configure.cpython |
no-host |
2,230,343 |
2,247,396 |
6,097,660 |
2,229,224 |
2.73 |
1.00 |
configure.ocaml |
no-host |
410,330 |
390,483 |
636,934 |
414,297 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,525 |
5,470 |
23,187 |
6,960 |
3.55 |
1.07 |
configure.util-linux |
no-host |
2,094,905 |
2,270,949 |
5,306,773 |
2,016,575 |
2.53 |
0.96 |
configure.yash |
no-host |
255,859 |
245,219 |
385,106 |
257,960 |
1.51 |
1.01 |
hello-world |
no-host |
151 |
83 |
3,653 |
347 |
24.19 |
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.3 |
3,728 |
3,728 |
0 |
684 |
1,880 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
819 |
1 |
2 |
2.7 |
8.0 |
154,693 |
12,995 |
2,802 |
11,737 |
78,349 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,376 |
1 |
61 |
15.8 |
27.5 |
1,772,609 |
49,200 |
28,511 |
101,770 |
908,056 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,530 |
3 |
61 |
22.2 |
30.3 |
2,703,273 |
44,769 |
65,795 |
126,121 |
1,320,500 |
1,256,652 |
49,081 |
41 |
131,590 |
1 |
configure.ocaml |
no-host |
3,870 |
1 |
2 |
2.7 |
20.6 |
150,035 |
11,048 |
5,141 |
8,602 |
71,634 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,528 |
30,528 |
0 |
1,599 |
14,804 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,864 |
1 |
2 |
2.6 |
24.2 |
139,692 |
7,967 |
6,603 |
7,554 |
70,306 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,271 |
64,458 |
42,666 |
4,610 |
54,549 |
57,112 |
478 |
3 |
85,332 |
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 |
15 |
5 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
4 |
6 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
454 |
403 |
54 |
21.5 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
14 |
9 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
676 |
491 |
214 |
3.0 |
bash |
9 |
no-host |
bin-true |
542 |
424 |
127 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,241 |
1,464 |
1,044 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
819 |
598 |
235 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,156 |
8,979 |
6,586 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,232 |
9,195 |
6,458 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,856 |
17,427 |
13,269 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,376 |
9,171 |
6,477 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,839 |
1,696 |
1,182 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,780 |
1,571 |
1,228 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,701 |
2,183 |
1,724 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,870 |
1,599 |
1,311 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
49 |
34 |
15 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
17 |
25 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
197 |
139 |
61 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
24 |
26 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,114 |
8,845 |
5,750 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,054 |
9,309 |
6,252 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,428 |
20,895 |
11,633 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,530 |
8,754 |
5,982 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,833 |
1,095 |
746 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,777 |
1,030 |
750 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,470 |
1,567 |
945 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,864 |
1,121 |
746 |
24.2 |
osh-native |
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 |
48 |
32 |
16 |
17.2 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.3 |
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,566 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,129 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,257 |
0 |
0 |
0 |
8 |
0 |
47 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,202 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
osh-native |
1 |
no-host |
bin-true |
104,351 |
0 |
0 |
0 |
8 |
0 |
1,987 |
52 |
bash |
9 |
no-host |
bin-true |
66,446 |
0 |
0 |
0 |
8 |
0 |
1,993 |
40 |
dash |
17 |
no-host |
bin-true |
748,484 |
0 |
0 |
0 |
8 |
0 |
1,995 |
99 |
osh-cpython |
25 |
no-host |
bin-true |
128,120 |
0 |
0 |
0 |
16 |
0 |
1,989 |
54 |
osh-native |
2 |
no-host |
configure.cpython |
2,230,343 |
0 |
0 |
0 |
32,928 |
0 |
14,526 |
1,158 |
bash |
10 |
no-host |
configure.cpython |
2,247,396 |
0 |
0 |
0 |
32,992 |
0 |
14,603 |
1,277 |
dash |
18 |
no-host |
configure.cpython |
6,097,660 |
1 |
0 |
0 |
27,512 |
0 |
13,325 |
1,150 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,229,224 |
0 |
0 |
0 |
27,520 |
0 |
13,255 |
1,052 |
osh-native |
4 |
no-host |
configure.ocaml |
410,330 |
0 |
0 |
0 |
5,120 |
0 |
1,956 |
170 |
bash |
12 |
no-host |
configure.ocaml |
390,483 |
0 |
0 |
0 |
5,112 |
0 |
1,918 |
167 |
dash |
20 |
no-host |
configure.ocaml |
636,934 |
0 |
0 |
0 |
5,112 |
0 |
1,864 |
181 |
osh-cpython |
28 |
no-host |
configure.ocaml |
414,297 |
0 |
0 |
0 |
5,120 |
0 |
1,937 |
160 |
osh-native |
5 |
no-host |
configure.tcc |
6,525 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,470 |
0 |
0 |
0 |
96 |
0 |
46 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,187 |
0 |
0 |
0 |
96 |
0 |
53 |
6 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,960 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,094,905 |
0 |
0 |
0 |
42,400 |
0 |
18,514 |
1,054 |
bash |
11 |
no-host |
configure.util-linux |
2,270,949 |
2 |
0 |
0 |
42,584 |
0 |
17,427 |
1,103 |
dash |
19 |
no-host |
configure.util-linux |
5,306,773 |
16 |
0 |
0 |
39,120 |
0 |
17,046 |
1,267 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,016,575 |
1 |
0 |
0 |
39,120 |
0 |
17,212 |
980 |
osh-native |
6 |
no-host |
configure.yash |
255,859 |
0 |
0 |
0 |
4,120 |
0 |
870 |
73 |
bash |
14 |
no-host |
configure.yash |
245,219 |
0 |
0 |
0 |
3,720 |
0 |
867 |
96 |
dash |
22 |
no-host |
configure.yash |
385,106 |
0 |
0 |
0 |
3,728 |
0 |
857 |
92 |
osh-cpython |
30 |
no-host |
configure.yash |
257,960 |
0 |
0 |
0 |
3,736 |
0 |
849 |
111 |
osh-native |
0 |
no-host |
hello-world |
151 |
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,653 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
24 |
no-host |
hello-world |
347 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host