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 |
459 |
22 |
23.56 |
1.14 |
bin-true |
no-host |
693 |
546 |
2,255 |
827 |
3.25 |
1.19 |
configure.cpython |
no-host |
15,529 |
15,594 |
29,779 |
15,730 |
1.92 |
1.01 |
configure.ocaml |
no-host |
3,942 |
3,800 |
4,777 |
3,881 |
1.21 |
0.98 |
configure.tcc |
no-host |
49 |
42 |
198 |
50 |
4.05 |
1.02 |
configure.util-linux |
no-host |
14,534 |
15,309 |
31,873 |
14,820 |
2.19 |
1.02 |
configure.yash |
no-host |
1,883 |
1,789 |
2,503 |
1,873 |
1.33 |
0.99 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
31.73 |
1.85 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,511 |
1,095 |
22,968 |
3,160 |
9.15 |
1.26 |
bin-true |
no-host |
105,302 |
66,438 |
759,829 |
127,124 |
7.22 |
1.21 |
configure.cpython |
no-host |
2,221,140 |
2,245,934 |
6,189,265 |
2,225,207 |
2.79 |
1.00 |
configure.ocaml |
no-host |
411,231 |
390,870 |
640,938 |
413,261 |
1.56 |
1.00 |
configure.tcc |
no-host |
6,540 |
5,481 |
23,311 |
7,016 |
3.56 |
1.07 |
configure.util-linux |
no-host |
2,105,510 |
2,260,796 |
5,334,635 |
1,994,983 |
2.53 |
0.95 |
configure.yash |
no-host |
256,596 |
244,664 |
385,731 |
258,322 |
1.50 |
1.01 |
hello-world |
no-host |
152 |
79 |
3,695 |
347 |
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.3 |
3,749 |
3,749 |
0 |
684 |
1,892 |
1,173 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
827 |
1 |
2 |
2.6 |
7.9 |
154,714 |
13,066 |
2,818 |
9,734 |
78,361 |
66,619 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,730 |
1 |
64 |
15.0 |
27.5 |
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,820 |
3 |
62 |
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,881 |
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.3 |
30,549 |
30,549 |
0 |
1,504 |
14,816 |
14,229 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,873 |
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 |
22 |
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 |
7 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
7 |
3 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
459 |
416 |
45 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
21 |
2 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
693 |
502 |
219 |
2.9 |
bash |
9 |
no-host |
bin-true |
546 |
432 |
125 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,255 |
1,463 |
1,061 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
827 |
600 |
242 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,529 |
9,502 |
6,403 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,594 |
9,306 |
6,697 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
29,779 |
17,905 |
13,838 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,730 |
9,109 |
6,889 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,942 |
1,689 |
1,262 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,800 |
1,636 |
1,183 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,777 |
2,249 |
1,741 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,881 |
1,721 |
1,200 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
49 |
28 |
21 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
21 |
21 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
198 |
130 |
71 |
19.1 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
27 |
23 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,534 |
9,065 |
5,945 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,309 |
9,267 |
6,537 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,873 |
21,103 |
11,882 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,820 |
8,859 |
6,131 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,883 |
1,028 |
859 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,789 |
1,030 |
762 |
24.5 |
dash |
22 |
no-host |
configure.yash |
2,503 |
1,490 |
1,058 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,873 |
1,076 |
800 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
25 |
24 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
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,511 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,095 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
22,968 |
0 |
0 |
0 |
8 |
0 |
45 |
13 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,160 |
0 |
0 |
0 |
16 |
0 |
39 |
3 |
osh-native |
1 |
no-host |
bin-true |
105,302 |
0 |
0 |
0 |
8 |
0 |
1,983 |
61 |
bash |
9 |
no-host |
bin-true |
66,438 |
0 |
0 |
0 |
8 |
0 |
1,985 |
102 |
dash |
17 |
no-host |
bin-true |
759,829 |
0 |
0 |
0 |
8 |
0 |
2,001 |
93 |
osh-cpython |
25 |
no-host |
bin-true |
127,124 |
0 |
0 |
0 |
16 |
0 |
1,988 |
89 |
osh-native |
2 |
no-host |
configure.cpython |
2,221,140 |
0 |
0 |
0 |
32,928 |
0 |
14,483 |
1,328 |
bash |
10 |
no-host |
configure.cpython |
2,245,934 |
0 |
0 |
0 |
32,992 |
0 |
14,694 |
1,039 |
dash |
18 |
no-host |
configure.cpython |
6,189,265 |
0 |
0 |
0 |
27,512 |
0 |
13,234 |
1,377 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,225,207 |
1 |
0 |
0 |
27,520 |
0 |
13,235 |
1,151 |
osh-native |
4 |
no-host |
configure.ocaml |
411,231 |
0 |
0 |
0 |
5,120 |
0 |
1,958 |
167 |
bash |
12 |
no-host |
configure.ocaml |
390,870 |
0 |
0 |
0 |
5,112 |
0 |
1,880 |
147 |
dash |
20 |
no-host |
configure.ocaml |
640,938 |
0 |
0 |
0 |
5,112 |
0 |
1,850 |
300 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,261 |
0 |
0 |
0 |
5,120 |
0 |
1,926 |
163 |
osh-native |
5 |
no-host |
configure.tcc |
6,540 |
0 |
0 |
0 |
104 |
0 |
48 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,481 |
0 |
0 |
0 |
96 |
0 |
46 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,311 |
0 |
0 |
0 |
96 |
0 |
53 |
17 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,016 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
3 |
no-host |
configure.util-linux |
2,105,510 |
2 |
0 |
0 |
42,408 |
0 |
18,604 |
1,299 |
bash |
11 |
no-host |
configure.util-linux |
2,260,796 |
0 |
0 |
0 |
42,592 |
0 |
17,424 |
1,177 |
dash |
19 |
no-host |
configure.util-linux |
5,334,635 |
5 |
0 |
0 |
39,120 |
0 |
16,935 |
1,327 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,994,983 |
0 |
0 |
0 |
39,128 |
0 |
16,992 |
941 |
osh-native |
6 |
no-host |
configure.yash |
256,596 |
0 |
0 |
0 |
4,120 |
0 |
872 |
75 |
bash |
14 |
no-host |
configure.yash |
244,664 |
0 |
0 |
0 |
3,720 |
0 |
867 |
91 |
dash |
22 |
no-host |
configure.yash |
385,731 |
0 |
0 |
0 |
3,728 |
0 |
851 |
103 |
osh-cpython |
30 |
no-host |
configure.yash |
258,322 |
0 |
0 |
0 |
3,736 |
0 |
853 |
81 |
osh-native |
0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
79 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,695 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
347 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host