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 |
450 |
22 |
23.88 |
1.18 |
bin-true |
no-host |
727 |
539 |
2,261 |
819 |
3.11 |
1.13 |
configure.cpython |
no-host |
15,401 |
14,994 |
28,496 |
15,152 |
1.85 |
0.98 |
configure.ocaml |
no-host |
3,812 |
3,722 |
4,587 |
3,823 |
1.20 |
1.00 |
configure.tcc |
no-host |
47 |
42 |
193 |
49 |
4.07 |
1.03 |
configure.util-linux |
no-host |
14,035 |
14,830 |
31,053 |
14,272 |
2.21 |
1.02 |
configure.yash |
no-host |
1,803 |
1,761 |
2,430 |
1,815 |
1.35 |
1.01 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
29.82 |
1.95 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,517 |
1,102 |
22,952 |
3,206 |
9.12 |
1.27 |
bin-true |
no-host |
107,344 |
65,475 |
759,796 |
126,189 |
7.08 |
1.18 |
configure.cpython |
no-host |
2,220,134 |
2,242,004 |
6,187,331 |
2,226,085 |
2.79 |
1.00 |
configure.ocaml |
no-host |
410,860 |
391,263 |
640,385 |
413,893 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,546 |
5,472 |
23,295 |
6,984 |
3.56 |
1.07 |
configure.util-linux |
no-host |
2,105,182 |
2,266,476 |
5,339,410 |
1,993,807 |
2.54 |
0.95 |
configure.yash |
no-host |
254,382 |
245,013 |
385,368 |
258,588 |
1.51 |
1.02 |
hello-world |
no-host |
149 |
82 |
3,697 |
347 |
24.81 |
2.33 |
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,749 |
3,749 |
0 |
684 |
1,892 |
1,173 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
819 |
1 |
2 |
2.6 |
8.0 |
154,714 |
13,066 |
2,818 |
9,734 |
78,361 |
66,619 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,152 |
2 |
60 |
15.0 |
27.4 |
1,772,690 |
49,108 |
28,528 |
86,381 |
908,113 |
778,196 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,272 |
3 |
58 |
21.3 |
30.1 |
2,703,426 |
42,745 |
65,832 |
109,643 |
1,320,611 |
1,273,172 |
27,391 |
41 |
131,664 |
1 |
configure.ocaml |
no-host |
3,823 |
1 |
2 |
2.6 |
20.6 |
150,060 |
10,993 |
5,163 |
7,513 |
71,649 |
70,898 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,549 |
30,549 |
0 |
1,504 |
14,816 |
14,229 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,815 |
1 |
2 |
2.6 |
24.4 |
139,717 |
7,961 |
6,620 |
6,320 |
70,321 |
63,076 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.9 |
116,292 |
64,471 |
42,681 |
4,555 |
54,561 |
57,176 |
270 |
3 |
85,362 |
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 |
15 |
4 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
7 |
3 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
450 |
411 |
42 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
20 |
3 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
727 |
532 |
213 |
3.0 |
bash |
9 |
no-host |
bin-true |
539 |
414 |
136 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,261 |
1,490 |
1,032 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
819 |
566 |
267 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,401 |
9,287 |
6,500 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
14,994 |
9,032 |
6,387 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,496 |
17,586 |
12,746 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,152 |
9,117 |
6,294 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,812 |
1,695 |
1,140 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,722 |
1,595 |
1,145 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,587 |
2,242 |
1,551 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,823 |
1,629 |
1,231 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
31 |
17 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
28 |
14 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
193 |
126 |
70 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
26 |
23 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,035 |
8,871 |
5,628 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,830 |
9,111 |
6,211 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,053 |
20,797 |
11,341 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,272 |
8,760 |
5,707 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,803 |
1,058 |
753 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,761 |
1,096 |
668 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,430 |
1,429 |
1,045 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,815 |
1,129 |
689 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.6 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
41 |
8 |
17.4 |
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,517 |
0 |
0 |
0 |
16 |
0 |
40 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,102 |
0 |
0 |
0 |
8 |
0 |
39 |
2 |
dash |
23 |
no-host |
abuild-print-help |
22,952 |
0 |
0 |
0 |
8 |
0 |
45 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,206 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
1 |
no-host |
bin-true |
107,344 |
0 |
0 |
0 |
8 |
0 |
1,989 |
59 |
bash |
9 |
no-host |
bin-true |
65,475 |
0 |
0 |
0 |
8 |
0 |
1,987 |
64 |
dash |
17 |
no-host |
bin-true |
759,796 |
0 |
0 |
0 |
8 |
0 |
1,999 |
237 |
osh-cpython |
25 |
no-host |
bin-true |
126,189 |
0 |
0 |
0 |
16 |
0 |
1,990 |
217 |
osh-native |
2 |
no-host |
configure.cpython |
2,220,134 |
0 |
0 |
0 |
32,928 |
0 |
14,541 |
1,096 |
bash |
10 |
no-host |
configure.cpython |
2,242,004 |
0 |
0 |
0 |
32,992 |
0 |
14,610 |
1,008 |
dash |
18 |
no-host |
configure.cpython |
6,187,331 |
0 |
0 |
0 |
27,512 |
0 |
13,246 |
1,282 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,226,085 |
0 |
0 |
0 |
27,520 |
0 |
13,249 |
1,075 |
osh-native |
4 |
no-host |
configure.ocaml |
410,860 |
0 |
0 |
0 |
5,120 |
0 |
1,965 |
180 |
bash |
12 |
no-host |
configure.ocaml |
391,263 |
0 |
0 |
0 |
5,112 |
0 |
1,909 |
166 |
dash |
20 |
no-host |
configure.ocaml |
640,385 |
0 |
0 |
0 |
5,112 |
0 |
1,856 |
158 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,893 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
178 |
osh-native |
5 |
no-host |
configure.tcc |
6,546 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,472 |
0 |
0 |
0 |
96 |
0 |
47 |
6 |
dash |
21 |
no-host |
configure.tcc |
23,295 |
0 |
0 |
0 |
96 |
0 |
53 |
6 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,984 |
0 |
0 |
0 |
104 |
0 |
47 |
0 |
osh-native |
3 |
no-host |
configure.util-linux |
2,105,182 |
0 |
0 |
0 |
42,400 |
0 |
18,609 |
1,182 |
bash |
11 |
no-host |
configure.util-linux |
2,266,476 |
0 |
0 |
0 |
42,584 |
0 |
17,519 |
1,198 |
dash |
19 |
no-host |
configure.util-linux |
5,339,410 |
9 |
0 |
0 |
39,128 |
0 |
16,978 |
1,434 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,993,807 |
0 |
0 |
0 |
39,120 |
0 |
17,025 |
1,022 |
osh-native |
6 |
no-host |
configure.yash |
254,382 |
0 |
0 |
0 |
4,120 |
0 |
871 |
116 |
bash |
14 |
no-host |
configure.yash |
245,013 |
0 |
0 |
0 |
3,720 |
0 |
866 |
100 |
dash |
22 |
no-host |
configure.yash |
385,368 |
0 |
0 |
0 |
3,728 |
0 |
852 |
87 |
osh-cpython |
30 |
no-host |
configure.yash |
258,588 |
0 |
0 |
0 |
3,736 |
0 |
849 |
93 |
osh-native |
0 |
no-host |
hello-world |
149 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
bash |
8 |
no-host |
hello-world |
82 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,697 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
347 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host