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 |
10 |
455 |
22 |
23.40 |
1.15 |
bin-true |
no-host |
677 |
544 |
2,219 |
816 |
3.28 |
1.21 |
configure.cpython |
no-host |
14,877 |
14,953 |
28,439 |
15,175 |
1.91 |
1.02 |
configure.ocaml |
no-host |
3,771 |
3,711 |
4,595 |
3,813 |
1.22 |
1.01 |
configure.tcc |
no-host |
47 |
42 |
192 |
49 |
4.06 |
1.04 |
configure.util-linux |
no-host |
13,965 |
14,820 |
30,996 |
14,391 |
2.22 |
1.03 |
configure.yash |
no-host |
1,846 |
1,757 |
2,429 |
1,830 |
1.32 |
0.99 |
hello-world |
no-host |
1 |
1 |
48 |
3 |
32.73 |
1.97 |
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,100 |
23,241 |
3,188 |
9.11 |
1.25 |
bin-true |
no-host |
106,352 |
66,433 |
754,984 |
126,222 |
7.10 |
1.19 |
configure.cpython |
no-host |
2,216,817 |
2,244,923 |
6,145,427 |
2,224,537 |
2.77 |
1.00 |
configure.ocaml |
no-host |
410,198 |
391,317 |
637,582 |
413,322 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,551 |
5,487 |
23,174 |
7,012 |
3.54 |
1.07 |
configure.util-linux |
no-host |
2,091,042 |
2,258,864 |
5,331,233 |
2,017,220 |
2.55 |
0.96 |
configure.yash |
no-host |
256,782 |
245,034 |
384,504 |
259,282 |
1.50 |
1.01 |
hello-world |
no-host |
152 |
83 |
3,654 |
343 |
24.04 |
2.26 |
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,711 |
3,711 |
0 |
681 |
1,866 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
816 |
1 |
2 |
2.7 |
8.0 |
154,676 |
12,986 |
2,793 |
11,734 |
78,335 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,175 |
2 |
62 |
15.8 |
27.4 |
1,772,595 |
49,191 |
28,502 |
101,770 |
908,042 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,391 |
2 |
60 |
22.2 |
30.1 |
2,703,259 |
44,760 |
65,806 |
126,121 |
1,320,486 |
1,256,652 |
49,081 |
41 |
131,612 |
1 |
configure.ocaml |
no-host |
3,813 |
1 |
2 |
2.7 |
20.6 |
150,021 |
11,039 |
5,132 |
8,602 |
71,620 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,514 |
30,514 |
0 |
1,599 |
14,790 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,830 |
1 |
2 |
2.6 |
24.5 |
139,678 |
7,958 |
6,594 |
7,554 |
70,292 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,257 |
64,449 |
42,657 |
4,609 |
54,535 |
57,113 |
478 |
3 |
85,314 |
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 |
3 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
7 |
3 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
455 |
395 |
63 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
21 |
2 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
677 |
495 |
214 |
3.0 |
bash |
9 |
no-host |
bin-true |
544 |
425 |
129 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,219 |
1,465 |
1,011 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
816 |
596 |
233 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
14,877 |
8,908 |
6,373 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
14,953 |
8,874 |
6,497 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,439 |
17,383 |
12,889 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,175 |
8,886 |
6,557 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,771 |
1,592 |
1,217 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,711 |
1,547 |
1,183 |
20.7 |
dash |
20 |
no-host |
configure.ocaml |
4,595 |
2,213 |
1,588 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,813 |
1,625 |
1,226 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
40 |
8 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
28 |
14 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
192 |
145 |
50 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
24 |
25 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
13,965 |
8,968 |
5,480 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,820 |
9,037 |
6,280 |
30.4 |
dash |
19 |
no-host |
configure.util-linux |
30,996 |
20,616 |
11,471 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,391 |
8,628 |
5,954 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,846 |
1,049 |
781 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,757 |
1,058 |
702 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,429 |
1,413 |
1,057 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,830 |
1,107 |
728 |
24.5 |
osh-native |
0 |
no-host |
hello-world |
1 |
0 |
1 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
16 |
no-host |
hello-world |
48 |
32 |
16 |
17.2 |
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,552 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,100 |
0 |
0 |
0 |
8 |
0 |
39 |
3 |
dash |
23 |
no-host |
abuild-print-help |
23,241 |
0 |
0 |
0 |
8 |
0 |
47 |
11 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,188 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
106,352 |
0 |
0 |
0 |
8 |
0 |
1,991 |
75 |
bash |
9 |
no-host |
bin-true |
66,433 |
0 |
0 |
0 |
8 |
0 |
1,988 |
74 |
dash |
17 |
no-host |
bin-true |
754,984 |
0 |
0 |
0 |
8 |
0 |
2,001 |
156 |
osh-cpython |
25 |
no-host |
bin-true |
126,222 |
0 |
0 |
0 |
16 |
0 |
1,997 |
54 |
osh-native |
2 |
no-host |
configure.cpython |
2,216,817 |
0 |
0 |
0 |
32,928 |
0 |
14,433 |
1,094 |
bash |
10 |
no-host |
configure.cpython |
2,244,923 |
0 |
0 |
0 |
32,992 |
0 |
14,626 |
1,017 |
dash |
18 |
no-host |
configure.cpython |
6,145,427 |
1 |
0 |
0 |
27,512 |
0 |
13,193 |
1,160 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,224,537 |
0 |
0 |
0 |
27,520 |
0 |
13,199 |
979 |
osh-native |
4 |
no-host |
configure.ocaml |
410,198 |
0 |
0 |
0 |
5,120 |
0 |
1,949 |
269 |
bash |
12 |
no-host |
configure.ocaml |
391,317 |
0 |
0 |
0 |
5,112 |
0 |
1,865 |
148 |
dash |
20 |
no-host |
configure.ocaml |
637,582 |
0 |
0 |
0 |
5,112 |
0 |
1,861 |
197 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,322 |
0 |
0 |
0 |
5,120 |
0 |
1,934 |
155 |
osh-native |
5 |
no-host |
configure.tcc |
6,551 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,487 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,174 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,012 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,091,042 |
1 |
0 |
0 |
42,400 |
0 |
18,550 |
1,067 |
bash |
11 |
no-host |
configure.util-linux |
2,258,864 |
3 |
0 |
0 |
42,592 |
0 |
17,479 |
1,093 |
dash |
19 |
no-host |
configure.util-linux |
5,331,233 |
9 |
0 |
0 |
39,112 |
0 |
17,061 |
1,200 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,017,220 |
1 |
0 |
0 |
39,120 |
0 |
17,089 |
1,039 |
osh-native |
6 |
no-host |
configure.yash |
256,782 |
0 |
0 |
0 |
4,120 |
0 |
877 |
98 |
bash |
14 |
no-host |
configure.yash |
245,034 |
0 |
0 |
0 |
3,720 |
0 |
865 |
79 |
dash |
22 |
no-host |
configure.yash |
384,504 |
0 |
0 |
0 |
3,728 |
0 |
858 |
110 |
osh-cpython |
30 |
no-host |
configure.yash |
259,282 |
0 |
0 |
0 |
3,736 |
0 |
855 |
92 |
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 |
1 |
dash |
16 |
no-host |
hello-world |
3,654 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
343 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host