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 |
454 |
22 |
23.67 |
1.16 |
bin-true |
no-host |
678 |
547 |
2,223 |
835 |
3.28 |
1.23 |
configure.cpython |
no-host |
15,223 |
15,274 |
28,760 |
15,515 |
1.89 |
1.02 |
configure.ocaml |
no-host |
3,820 |
3,774 |
4,670 |
3,868 |
1.22 |
1.01 |
configure.tcc |
no-host |
48 |
42 |
189 |
49 |
3.95 |
1.03 |
configure.util-linux |
no-host |
14,219 |
15,121 |
31,604 |
14,676 |
2.22 |
1.03 |
configure.yash |
no-host |
1,855 |
1,785 |
2,463 |
1,856 |
1.33 |
1.00 |
hello-world |
no-host |
2 |
1 |
50 |
3 |
32.43 |
1.84 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,551 |
1,102 |
23,086 |
3,179 |
9.05 |
1.25 |
bin-true |
no-host |
105,348 |
66,421 |
742,999 |
131,578 |
7.05 |
1.25 |
configure.cpython |
no-host |
2,219,496 |
2,235,471 |
6,063,534 |
2,244,026 |
2.73 |
1.01 |
configure.ocaml |
no-host |
411,350 |
391,318 |
633,309 |
413,160 |
1.54 |
1.00 |
configure.tcc |
no-host |
6,581 |
5,489 |
22,943 |
6,957 |
3.49 |
1.06 |
configure.util-linux |
no-host |
2,111,263 |
2,258,717 |
5,296,067 |
2,017,747 |
2.51 |
0.96 |
configure.yash |
no-host |
256,385 |
244,576 |
382,761 |
258,736 |
1.49 |
1.01 |
hello-world |
no-host |
152 |
84 |
3,631 |
339 |
23.89 |
2.23 |
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.0 |
3,673 |
3,673 |
0 |
681 |
1,828 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
835 |
1 |
2 |
2.7 |
8.0 |
154,619 |
12,860 |
2,762 |
12,730 |
77,280 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,515 |
1 |
62 |
15.9 |
27.4 |
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,676 |
3 |
60 |
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,868 |
1 |
2 |
2.7 |
20.4 |
149,110 |
10,969 |
5,100 |
8,602 |
70,893 |
69,615 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,387 |
30,387 |
0 |
1,599 |
14,663 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,856 |
1 |
2 |
2.6 |
24.5 |
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 |
19 |
16 |
4 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
10 |
0 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
454 |
411 |
46 |
21.4 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
22 |
1 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
678 |
506 |
202 |
2.9 |
bash |
9 |
no-host |
bin-true |
547 |
411 |
146 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,223 |
1,413 |
1,058 |
17.2 |
osh-cpython |
25 |
no-host |
bin-true |
835 |
593 |
256 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,223 |
9,152 |
6,456 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,274 |
9,289 |
6,382 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,760 |
17,375 |
13,191 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,515 |
9,130 |
6,645 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,820 |
1,600 |
1,261 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,774 |
1,588 |
1,206 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,670 |
2,197 |
1,674 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,868 |
1,622 |
1,280 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
19 |
29 |
19.1 |
bash |
13 |
no-host |
configure.tcc |
42 |
24 |
19 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
189 |
142 |
50 |
19.1 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
20 |
30 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,219 |
8,772 |
5,912 |
30.4 |
bash |
11 |
no-host |
configure.util-linux |
15,121 |
9,277 |
6,300 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,604 |
20,932 |
11,732 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,676 |
8,935 |
5,908 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,855 |
1,105 |
744 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,785 |
1,070 |
719 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,463 |
1,478 |
1,027 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,856 |
1,075 |
785 |
24.5 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
50 |
24 |
26 |
17.0 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.0 |
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,551 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,102 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,086 |
0 |
0 |
0 |
8 |
0 |
47 |
13 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,179 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
105,348 |
0 |
0 |
0 |
8 |
0 |
1,990 |
66 |
bash |
9 |
no-host |
bin-true |
66,421 |
0 |
0 |
0 |
8 |
0 |
1,984 |
44 |
dash |
17 |
no-host |
bin-true |
742,999 |
0 |
0 |
0 |
8 |
0 |
2,002 |
168 |
osh-cpython |
25 |
no-host |
bin-true |
131,578 |
0 |
0 |
0 |
16 |
0 |
1,986 |
152 |
osh-native |
2 |
no-host |
configure.cpython |
2,219,496 |
0 |
0 |
0 |
32,928 |
0 |
14,598 |
1,187 |
bash |
10 |
no-host |
configure.cpython |
2,235,471 |
0 |
0 |
0 |
32,992 |
0 |
14,714 |
1,201 |
dash |
18 |
no-host |
configure.cpython |
6,063,534 |
0 |
0 |
0 |
27,512 |
0 |
13,245 |
1,169 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,244,026 |
0 |
0 |
0 |
27,520 |
0 |
13,414 |
934 |
osh-native |
4 |
no-host |
configure.ocaml |
411,350 |
0 |
0 |
0 |
5,120 |
0 |
1,950 |
160 |
bash |
12 |
no-host |
configure.ocaml |
391,318 |
0 |
0 |
0 |
5,112 |
0 |
1,942 |
137 |
dash |
20 |
no-host |
configure.ocaml |
633,309 |
1 |
0 |
0 |
5,112 |
0 |
1,858 |
171 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,160 |
0 |
0 |
0 |
5,120 |
0 |
1,939 |
176 |
osh-native |
5 |
no-host |
configure.tcc |
6,581 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,489 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
22,943 |
0 |
0 |
0 |
96 |
0 |
53 |
9 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,957 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,111,263 |
0 |
0 |
0 |
42,400 |
0 |
18,667 |
1,051 |
bash |
11 |
no-host |
configure.util-linux |
2,258,717 |
0 |
0 |
0 |
42,584 |
0 |
17,408 |
1,339 |
dash |
19 |
no-host |
configure.util-linux |
5,296,067 |
15 |
0 |
0 |
39,112 |
0 |
17,035 |
1,297 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,017,747 |
1 |
0 |
0 |
39,120 |
0 |
17,087 |
1,136 |
osh-native |
6 |
no-host |
configure.yash |
256,385 |
0 |
0 |
0 |
4,120 |
0 |
872 |
84 |
bash |
14 |
no-host |
configure.yash |
244,576 |
0 |
0 |
0 |
3,720 |
0 |
871 |
89 |
dash |
22 |
no-host |
configure.yash |
382,761 |
0 |
0 |
0 |
3,728 |
0 |
858 |
94 |
osh-cpython |
30 |
no-host |
configure.yash |
258,736 |
0 |
0 |
0 |
3,736 |
0 |
855 |
92 |
osh-native |
0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
84 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,631 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
24 |
no-host |
hello-world |
339 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host