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 |
9 |
465 |
23 |
23.86 |
1.16 |
bin-true |
no-host |
683 |
548 |
2,244 |
817 |
3.29 |
1.20 |
configure.cpython |
no-host |
15,006 |
14,972 |
28,770 |
15,417 |
1.92 |
1.03 |
configure.ocaml |
no-host |
3,766 |
3,733 |
4,709 |
3,876 |
1.25 |
1.03 |
configure.tcc |
no-host |
48 |
41 |
194 |
50 |
4.09 |
1.05 |
configure.util-linux |
no-host |
13,888 |
14,898 |
31,624 |
14,574 |
2.28 |
1.05 |
configure.yash |
no-host |
1,803 |
1,758 |
2,465 |
1,856 |
1.37 |
1.03 |
hello-world |
no-host |
1 |
1 |
47 |
3 |
32.09 |
2.02 |
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,099 |
22,890 |
3,156 |
8.97 |
1.24 |
bin-true |
no-host |
107,371 |
66,472 |
761,436 |
128,181 |
7.09 |
1.19 |
configure.cpython |
no-host |
2,216,321 |
2,240,510 |
6,177,878 |
2,227,260 |
2.79 |
1.00 |
configure.ocaml |
no-host |
410,265 |
391,611 |
641,007 |
413,837 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,599 |
5,469 |
23,310 |
6,998 |
3.53 |
1.06 |
configure.util-linux |
no-host |
2,103,185 |
2,265,893 |
5,326,798 |
1,999,694 |
2.53 |
0.95 |
configure.yash |
no-host |
255,614 |
245,153 |
384,642 |
258,507 |
1.50 |
1.01 |
hello-world |
no-host |
152 |
83 |
3,695 |
346 |
24.31 |
2.28 |
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 |
817 |
1 |
2 |
2.6 |
8.1 |
154,714 |
13,066 |
2,818 |
9,734 |
78,361 |
66,619 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,417 |
2 |
64 |
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,574 |
3 |
63 |
21.3 |
30.3 |
2,703,426 |
42,745 |
65,812 |
109,643 |
1,320,611 |
1,273,172 |
27,391 |
41 |
131,624 |
1 |
configure.ocaml |
no-host |
3,876 |
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 |
50 |
0 |
0 |
1.3 |
19.4 |
30,549 |
30,549 |
0 |
1,504 |
14,816 |
14,229 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,856 |
1 |
2 |
2.6 |
24.2 |
139,717 |
7,961 |
6,620 |
6,320 |
70,321 |
63,076 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
9.0 |
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 |
12 |
8 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
2 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
465 |
410 |
58 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
13 |
10 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
683 |
504 |
207 |
3.0 |
bash |
9 |
no-host |
bin-true |
548 |
416 |
140 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,244 |
1,462 |
1,040 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
817 |
578 |
253 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,006 |
9,158 |
6,246 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
14,972 |
9,212 |
6,164 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
28,770 |
17,665 |
12,960 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,417 |
9,083 |
6,605 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,766 |
1,635 |
1,172 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,733 |
1,562 |
1,192 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,709 |
2,315 |
1,603 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,876 |
1,671 |
1,244 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
28 |
20 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
41 |
31 |
11 |
19.1 |
dash |
21 |
no-host |
configure.tcc |
194 |
139 |
59 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
26 |
24 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
13,888 |
8,742 |
5,608 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,898 |
9,117 |
6,275 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,624 |
20,777 |
11,938 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,574 |
8,730 |
6,040 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,803 |
1,093 |
719 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,758 |
1,026 |
736 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,465 |
1,513 |
995 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,856 |
1,053 |
806 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
16 |
no-host |
hello-world |
47 |
24 |
23 |
17.4 |
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,099 |
0 |
0 |
0 |
8 |
0 |
39 |
6 |
dash |
23 |
no-host |
abuild-print-help |
22,890 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,156 |
0 |
0 |
0 |
16 |
0 |
39 |
3 |
osh-native |
1 |
no-host |
bin-true |
107,371 |
0 |
0 |
0 |
8 |
0 |
1,995 |
61 |
bash |
9 |
no-host |
bin-true |
66,472 |
0 |
0 |
0 |
8 |
0 |
1,985 |
209 |
dash |
17 |
no-host |
bin-true |
761,436 |
0 |
0 |
0 |
8 |
0 |
1,996 |
200 |
osh-cpython |
25 |
no-host |
bin-true |
128,181 |
0 |
0 |
0 |
16 |
0 |
1,988 |
95 |
osh-native |
2 |
no-host |
configure.cpython |
2,216,321 |
0 |
0 |
0 |
32,928 |
0 |
14,447 |
1,073 |
bash |
10 |
no-host |
configure.cpython |
2,240,510 |
1 |
0 |
0 |
32,992 |
0 |
14,584 |
1,162 |
dash |
18 |
no-host |
configure.cpython |
6,177,878 |
1 |
0 |
0 |
27,512 |
0 |
13,246 |
1,190 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,227,260 |
0 |
0 |
0 |
27,520 |
0 |
13,320 |
990 |
osh-native |
4 |
no-host |
configure.ocaml |
410,265 |
0 |
0 |
0 |
5,120 |
0 |
1,949 |
185 |
bash |
12 |
no-host |
configure.ocaml |
391,611 |
0 |
0 |
0 |
5,112 |
0 |
1,922 |
172 |
dash |
20 |
no-host |
configure.ocaml |
641,007 |
1 |
0 |
0 |
5,112 |
0 |
1,857 |
206 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,837 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
159 |
osh-native |
5 |
no-host |
configure.tcc |
6,599 |
0 |
0 |
0 |
104 |
0 |
48 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,469 |
0 |
0 |
0 |
96 |
0 |
47 |
0 |
dash |
21 |
no-host |
configure.tcc |
23,310 |
0 |
0 |
0 |
96 |
0 |
53 |
6 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,998 |
0 |
0 |
0 |
104 |
0 |
46 |
0 |
osh-native |
3 |
no-host |
configure.util-linux |
2,103,185 |
0 |
0 |
0 |
42,408 |
0 |
18,593 |
1,005 |
bash |
11 |
no-host |
configure.util-linux |
2,265,893 |
0 |
0 |
0 |
42,592 |
0 |
17,502 |
1,082 |
dash |
19 |
no-host |
configure.util-linux |
5,326,798 |
4 |
0 |
0 |
39,112 |
0 |
16,990 |
1,262 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,999,694 |
0 |
0 |
0 |
39,128 |
0 |
16,973 |
1,139 |
osh-native |
6 |
no-host |
configure.yash |
255,614 |
0 |
0 |
0 |
4,120 |
0 |
869 |
78 |
bash |
14 |
no-host |
configure.yash |
245,153 |
0 |
0 |
0 |
3,720 |
0 |
867 |
70 |
dash |
22 |
no-host |
configure.yash |
384,642 |
0 |
0 |
0 |
3,728 |
0 |
851 |
99 |
osh-cpython |
30 |
no-host |
configure.yash |
258,507 |
0 |
0 |
0 |
3,736 |
0 |
852 |
85 |
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,695 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host