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 |
20 |
9 |
446 |
22 |
22.70 |
1.14 |
bin-true |
no-host |
670 |
544 |
2,233 |
829 |
3.33 |
1.24 |
configure.cpython |
no-host |
15,145 |
15,256 |
28,627 |
15,629 |
1.89 |
1.03 |
configure.ocaml |
no-host |
3,833 |
3,750 |
4,632 |
3,858 |
1.21 |
1.01 |
configure.tcc |
no-host |
48 |
43 |
195 |
51 |
4.08 |
1.07 |
configure.util-linux |
no-host |
14,099 |
15,025 |
31,284 |
14,666 |
2.22 |
1.04 |
configure.yash |
no-host |
1,823 |
1,778 |
2,465 |
1,867 |
1.35 |
1.02 |
hello-world |
no-host |
1 |
1 |
51 |
3 |
34.63 |
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,522 |
1,104 |
23,068 |
3,207 |
9.15 |
1.27 |
bin-true |
no-host |
104,398 |
66,463 |
744,987 |
128,588 |
7.14 |
1.23 |
configure.cpython |
no-host |
2,217,477 |
2,242,529 |
6,065,970 |
2,250,893 |
2.74 |
1.02 |
configure.ocaml |
no-host |
410,690 |
391,012 |
633,816 |
413,546 |
1.54 |
1.01 |
configure.tcc |
no-host |
6,536 |
5,495 |
22,982 |
6,972 |
3.52 |
1.07 |
configure.util-linux |
no-host |
2,105,828 |
2,258,792 |
5,290,496 |
2,017,467 |
2.51 |
0.96 |
configure.yash |
no-host |
256,220 |
245,129 |
382,274 |
257,616 |
1.49 |
1.01 |
hello-world |
no-host |
154 |
85 |
3,633 |
341 |
23.59 |
2.21 |
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.3 |
3,673 |
3,673 |
0 |
681 |
1,828 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
829 |
1 |
2 |
2.7 |
7.9 |
154,619 |
12,860 |
2,762 |
12,730 |
77,280 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,629 |
1 |
66 |
15.9 |
27.5 |
1,765,934 |
39,052 |
24,503 |
101,923 |
901,347 |
762,664 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,666 |
3 |
63 |
22.2 |
30.1 |
2,695,085 |
29,056 |
65,754 |
126,121 |
1,312,366 |
1,256,598 |
49,081 |
41 |
131,508 |
1 |
configure.ocaml |
no-host |
3,858 |
1 |
2 |
2.7 |
20.6 |
149,110 |
10,969 |
5,100 |
8,602 |
70,893 |
69,615 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
51 |
0 |
0 |
1.3 |
19.3 |
30,387 |
30,387 |
0 |
1,599 |
14,663 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,867 |
1 |
2 |
2.6 |
24.4 |
138,968 |
6,642 |
6,495 |
7,554 |
69,574 |
61,840 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.8 |
116,013 |
64,388 |
42,627 |
4,601 |
54,295 |
57,117 |
478 |
3 |
85,254 |
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 |
20 |
9 |
11 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
9 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
446 |
385 |
65 |
21.5 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
15 |
8 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
670 |
493 |
208 |
2.9 |
bash |
9 |
no-host |
bin-true |
544 |
415 |
138 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,233 |
1,363 |
1,123 |
17.2 |
osh-cpython |
25 |
no-host |
bin-true |
829 |
595 |
249 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,145 |
9,137 |
6,412 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,256 |
9,369 |
6,314 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,627 |
17,303 |
13,150 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,629 |
9,141 |
6,760 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,833 |
1,680 |
1,188 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,750 |
1,681 |
1,088 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,632 |
2,301 |
1,530 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,858 |
1,649 |
1,247 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
26 |
22 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
43 |
24 |
19 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
195 |
156 |
42 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
51 |
28 |
24 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,099 |
8,922 |
5,659 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,025 |
9,265 |
6,268 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,284 |
20,734 |
11,620 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,666 |
8,836 |
6,029 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,823 |
1,010 |
820 |
24.5 |
bash |
14 |
no-host |
configure.yash |
1,778 |
1,049 |
732 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,465 |
1,638 |
870 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,867 |
1,098 |
773 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
16 |
no-host |
hello-world |
51 |
46 |
4 |
17.0 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
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,522 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,104 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,068 |
0 |
0 |
0 |
8 |
0 |
47 |
11 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,207 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
104,398 |
0 |
0 |
0 |
8 |
0 |
1,991 |
53 |
bash |
9 |
no-host |
bin-true |
66,463 |
0 |
0 |
0 |
8 |
0 |
1,988 |
40 |
dash |
17 |
no-host |
bin-true |
744,987 |
0 |
0 |
0 |
8 |
0 |
1,996 |
180 |
osh-cpython |
25 |
no-host |
bin-true |
128,588 |
0 |
0 |
0 |
16 |
0 |
1,990 |
122 |
osh-native |
2 |
no-host |
configure.cpython |
2,217,477 |
1 |
0 |
0 |
32,928 |
0 |
14,297 |
1,003 |
bash |
10 |
no-host |
configure.cpython |
2,242,529 |
1 |
0 |
0 |
32,992 |
0 |
14,600 |
1,017 |
dash |
18 |
no-host |
configure.cpython |
6,065,970 |
1 |
0 |
0 |
27,512 |
0 |
13,399 |
1,318 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,250,893 |
0 |
0 |
0 |
27,520 |
0 |
13,294 |
1,117 |
osh-native |
4 |
no-host |
configure.ocaml |
410,690 |
0 |
0 |
0 |
5,120 |
0 |
1,960 |
187 |
bash |
12 |
no-host |
configure.ocaml |
391,012 |
0 |
0 |
0 |
5,112 |
0 |
1,884 |
149 |
dash |
20 |
no-host |
configure.ocaml |
633,816 |
1 |
0 |
0 |
5,112 |
0 |
1,865 |
189 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,546 |
0 |
0 |
0 |
5,120 |
0 |
1,935 |
163 |
osh-native |
5 |
no-host |
configure.tcc |
6,536 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,495 |
0 |
0 |
0 |
96 |
0 |
47 |
8 |
dash |
21 |
no-host |
configure.tcc |
22,982 |
0 |
0 |
0 |
96 |
0 |
53 |
10 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,972 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,105,828 |
1 |
0 |
0 |
42,400 |
0 |
18,676 |
1,097 |
bash |
11 |
no-host |
configure.util-linux |
2,258,792 |
0 |
0 |
0 |
42,584 |
0 |
17,417 |
1,090 |
dash |
19 |
no-host |
configure.util-linux |
5,290,496 |
9 |
0 |
0 |
39,112 |
0 |
17,212 |
1,235 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,017,467 |
1 |
0 |
0 |
39,120 |
0 |
17,066 |
1,004 |
osh-native |
6 |
no-host |
configure.yash |
256,220 |
0 |
0 |
0 |
4,120 |
0 |
865 |
89 |
bash |
14 |
no-host |
configure.yash |
245,129 |
0 |
0 |
0 |
3,720 |
0 |
872 |
77 |
dash |
22 |
no-host |
configure.yash |
382,274 |
0 |
0 |
0 |
3,728 |
0 |
857 |
86 |
osh-cpython |
30 |
no-host |
configure.yash |
257,616 |
0 |
0 |
0 |
3,736 |
0 |
852 |
99 |
osh-native |
0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
85 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
dash |
16 |
no-host |
hello-world |
3,633 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
341 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host