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 |
477 |
22 |
25.36 |
1.19 |
bin-true |
no-host |
679 |
539 |
2,239 |
820 |
3.30 |
1.21 |
configure.cpython |
no-host |
14,908 |
14,974 |
28,275 |
15,170 |
1.90 |
1.02 |
configure.ocaml |
no-host |
3,839 |
3,722 |
4,613 |
3,822 |
1.20 |
1.00 |
configure.tcc |
no-host |
48 |
42 |
190 |
49 |
3.95 |
1.02 |
configure.util-linux |
no-host |
13,918 |
14,789 |
30,825 |
14,332 |
2.21 |
1.03 |
configure.yash |
no-host |
1,813 |
1,763 |
2,435 |
1,830 |
1.34 |
1.01 |
hello-world |
no-host |
1 |
1 |
48 |
3 |
31.91 |
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,530 |
1,107 |
23,139 |
3,231 |
9.15 |
1.28 |
bin-true |
no-host |
106,337 |
66,478 |
750,537 |
129,152 |
7.06 |
1.21 |
configure.cpython |
no-host |
2,219,863 |
2,243,666 |
6,095,240 |
2,239,617 |
2.75 |
1.01 |
configure.ocaml |
no-host |
410,274 |
390,687 |
635,742 |
414,168 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,562 |
5,497 |
23,203 |
7,034 |
3.54 |
1.07 |
configure.util-linux |
no-host |
2,096,530 |
2,262,231 |
5,306,759 |
2,026,494 |
2.53 |
0.97 |
configure.yash |
no-host |
256,482 |
244,525 |
385,701 |
258,255 |
1.50 |
1.01 |
hello-world |
no-host |
154 |
83 |
3,656 |
346 |
23.74 |
2.25 |
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 |
820 |
1 |
2 |
2.7 |
8.1 |
154,658 |
12,890 |
2,792 |
11,730 |
78,319 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,170 |
1 |
60 |
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,332 |
3 |
59 |
22.2 |
30.0 |
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,822 |
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.4 |
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 |
8.8 |
116,221 |
64,449 |
42,657 |
4,601 |
54,503 |
57,117 |
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 |
7 |
12 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
477 |
428 |
53 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
17 |
6 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
679 |
505 |
206 |
3.0 |
bash |
9 |
no-host |
bin-true |
539 |
412 |
136 |
1.3 |
dash |
17 |
no-host |
bin-true |
2,239 |
1,485 |
1,006 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
820 |
586 |
248 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
14,908 |
9,082 |
6,226 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
14,974 |
9,085 |
6,309 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,275 |
17,284 |
12,815 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,170 |
8,934 |
6,505 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,839 |
1,631 |
1,243 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,722 |
1,566 |
1,176 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,613 |
2,103 |
1,714 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,822 |
1,629 |
1,231 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
33 |
15 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
32 |
11 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
190 |
147 |
46 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
26 |
23 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
13,918 |
8,855 |
5,539 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,789 |
9,003 |
6,264 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
30,825 |
20,714 |
11,176 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,332 |
8,623 |
5,908 |
30.0 |
osh-native |
6 |
no-host |
configure.yash |
1,813 |
1,071 |
751 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,763 |
964 |
803 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,435 |
1,486 |
991 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,830 |
1,050 |
783 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
1 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
48 |
20 |
27 |
17.2 |
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,530 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,107 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,139 |
0 |
0 |
0 |
8 |
0 |
47 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,231 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
osh-native |
1 |
no-host |
bin-true |
106,337 |
0 |
0 |
0 |
8 |
0 |
1,989 |
48 |
bash |
9 |
no-host |
bin-true |
66,478 |
0 |
0 |
0 |
8 |
0 |
1,987 |
108 |
dash |
17 |
no-host |
bin-true |
750,537 |
0 |
0 |
0 |
8 |
0 |
1,987 |
346 |
osh-cpython |
25 |
no-host |
bin-true |
129,152 |
0 |
0 |
0 |
16 |
0 |
1,990 |
141 |
osh-native |
2 |
no-host |
configure.cpython |
2,219,863 |
0 |
0 |
0 |
32,928 |
0 |
14,542 |
1,151 |
bash |
10 |
no-host |
configure.cpython |
2,243,666 |
1 |
0 |
0 |
32,992 |
0 |
14,659 |
939 |
dash |
18 |
no-host |
configure.cpython |
6,095,240 |
0 |
0 |
0 |
27,512 |
0 |
13,212 |
1,249 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,239,617 |
0 |
0 |
0 |
27,520 |
0 |
13,314 |
1,133 |
osh-native |
4 |
no-host |
configure.ocaml |
410,274 |
0 |
0 |
0 |
5,120 |
0 |
1,952 |
196 |
bash |
12 |
no-host |
configure.ocaml |
390,687 |
0 |
0 |
0 |
5,112 |
0 |
1,927 |
173 |
dash |
20 |
no-host |
configure.ocaml |
635,742 |
0 |
0 |
0 |
5,112 |
0 |
1,868 |
241 |
osh-cpython |
28 |
no-host |
configure.ocaml |
414,168 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
166 |
osh-native |
5 |
no-host |
configure.tcc |
6,562 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,497 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,203 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,034 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,096,530 |
0 |
0 |
0 |
42,400 |
0 |
18,594 |
1,138 |
bash |
11 |
no-host |
configure.util-linux |
2,262,231 |
0 |
0 |
0 |
42,584 |
0 |
17,415 |
1,127 |
dash |
19 |
no-host |
configure.util-linux |
5,306,759 |
6 |
0 |
0 |
39,120 |
0 |
17,275 |
1,233 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,026,494 |
0 |
0 |
0 |
39,128 |
0 |
17,052 |
1,050 |
osh-native |
6 |
no-host |
configure.yash |
256,482 |
0 |
0 |
0 |
4,120 |
0 |
865 |
76 |
bash |
14 |
no-host |
configure.yash |
244,525 |
0 |
0 |
0 |
3,720 |
0 |
866 |
70 |
dash |
22 |
no-host |
configure.yash |
385,701 |
0 |
0 |
0 |
3,728 |
0 |
855 |
88 |
osh-cpython |
30 |
no-host |
configure.yash |
258,255 |
0 |
0 |
0 |
3,736 |
0 |
855 |
91 |
osh-native |
0 |
no-host |
hello-world |
154 |
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,656 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
24 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host