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 |
24 |
10 |
452 |
22 |
18.61 |
0.91 |
bin-true |
no-host |
678 |
559 |
2,220 |
821 |
3.27 |
1.21 |
configure.cpython |
no-host |
15,058 |
14,845 |
28,102 |
15,166 |
1.87 |
1.01 |
configure.ocaml |
no-host |
3,820 |
3,707 |
4,614 |
3,807 |
1.21 |
1.00 |
configure.tcc |
no-host |
47 |
41 |
189 |
49 |
4.00 |
1.03 |
configure.util-linux |
no-host |
13,952 |
14,802 |
31,236 |
14,514 |
2.24 |
1.04 |
configure.yash |
no-host |
1,803 |
1,743 |
2,431 |
1,829 |
1.35 |
1.01 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
30.20 |
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,537 |
1,128 |
23,163 |
3,209 |
9.13 |
1.26 |
bin-true |
no-host |
105,385 |
65,427 |
750,392 |
129,085 |
7.12 |
1.22 |
configure.cpython |
no-host |
2,215,537 |
2,239,843 |
6,103,640 |
2,235,587 |
2.75 |
1.01 |
configure.ocaml |
no-host |
410,251 |
391,350 |
636,609 |
413,268 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,550 |
5,489 |
23,168 |
6,977 |
3.54 |
1.07 |
configure.util-linux |
no-host |
2,103,463 |
2,260,789 |
5,307,759 |
2,019,660 |
2.52 |
0.96 |
configure.yash |
no-host |
256,266 |
245,178 |
384,858 |
258,654 |
1.50 |
1.01 |
hello-world |
no-host |
152 |
84 |
3,652 |
346 |
24.03 |
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,720 |
3,720 |
0 |
684 |
1,872 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
821 |
1 |
2 |
2.7 |
7.9 |
154,685 |
12,990 |
2,797 |
11,737 |
78,341 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,166 |
1 |
61 |
15.8 |
27.4 |
1,772,601 |
49,195 |
28,506 |
101,770 |
908,048 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,514 |
3 |
62 |
22.2 |
30.1 |
2,703,265 |
44,764 |
65,810 |
126,121 |
1,320,492 |
1,256,652 |
49,081 |
41 |
131,620 |
1 |
configure.ocaml |
no-host |
3,807 |
1 |
2 |
2.7 |
20.6 |
150,027 |
11,043 |
5,136 |
8,602 |
71,626 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,520 |
30,520 |
0 |
1,599 |
14,796 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,829 |
1 |
2 |
2.6 |
24.4 |
139,684 |
7,962 |
6,598 |
7,554 |
70,298 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,263 |
64,453 |
42,661 |
4,609 |
54,541 |
57,113 |
478 |
3 |
85,322 |
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 |
24 |
22 |
3 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
5 |
5 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
452 |
395 |
59 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
21 |
1 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
678 |
496 |
212 |
2.9 |
bash |
9 |
no-host |
bin-true |
559 |
430 |
139 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,220 |
1,482 |
993 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
821 |
578 |
256 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,058 |
9,148 |
6,326 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
14,845 |
8,942 |
6,325 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
28,102 |
17,151 |
12,757 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,166 |
9,073 |
6,369 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,820 |
1,648 |
1,205 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,707 |
1,504 |
1,223 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,614 |
2,203 |
1,613 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,807 |
1,644 |
1,203 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
27 |
21 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
28 |
13 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
189 |
136 |
56 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
24 |
26 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
13,952 |
8,871 |
5,566 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,802 |
9,156 |
6,150 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,236 |
20,907 |
11,414 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,514 |
8,693 |
6,022 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,803 |
1,056 |
756 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,743 |
1,047 |
700 |
24.5 |
dash |
22 |
no-host |
configure.yash |
2,431 |
1,516 |
957 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,829 |
1,028 |
805 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
16 |
no-host |
hello-world |
48 |
28 |
20 |
17.2 |
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,537 |
0 |
0 |
0 |
16 |
0 |
41 |
5 |
bash |
15 |
no-host |
abuild-print-help |
1,128 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,163 |
0 |
0 |
0 |
8 |
0 |
47 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,209 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
osh-native |
1 |
no-host |
bin-true |
105,385 |
0 |
0 |
0 |
8 |
0 |
1,989 |
58 |
bash |
9 |
no-host |
bin-true |
65,427 |
0 |
0 |
0 |
8 |
0 |
1,983 |
129 |
dash |
17 |
no-host |
bin-true |
750,392 |
0 |
0 |
0 |
8 |
0 |
1,996 |
120 |
osh-cpython |
25 |
no-host |
bin-true |
129,085 |
0 |
0 |
0 |
16 |
0 |
1,993 |
52 |
osh-native |
2 |
no-host |
configure.cpython |
2,215,537 |
0 |
0 |
0 |
32,928 |
0 |
14,504 |
1,066 |
bash |
10 |
no-host |
configure.cpython |
2,239,843 |
0 |
0 |
0 |
32,992 |
0 |
14,614 |
972 |
dash |
18 |
no-host |
configure.cpython |
6,103,640 |
1 |
0 |
0 |
27,512 |
0 |
13,235 |
1,360 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,235,587 |
0 |
0 |
0 |
27,520 |
0 |
13,272 |
1,199 |
osh-native |
4 |
no-host |
configure.ocaml |
410,251 |
0 |
0 |
0 |
5,120 |
0 |
1,958 |
191 |
bash |
12 |
no-host |
configure.ocaml |
391,350 |
0 |
0 |
0 |
5,112 |
0 |
1,946 |
144 |
dash |
20 |
no-host |
configure.ocaml |
636,609 |
0 |
0 |
0 |
5,112 |
0 |
1,862 |
254 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,268 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
149 |
osh-native |
5 |
no-host |
configure.tcc |
6,550 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,489 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,168 |
0 |
0 |
0 |
96 |
0 |
53 |
6 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,977 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,103,463 |
0 |
0 |
0 |
42,400 |
0 |
18,613 |
992 |
bash |
11 |
no-host |
configure.util-linux |
2,260,789 |
1 |
0 |
0 |
42,584 |
0 |
17,456 |
1,136 |
dash |
19 |
no-host |
configure.util-linux |
5,307,759 |
12 |
0 |
0 |
39,120 |
0 |
17,064 |
1,103 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,019,660 |
2 |
0 |
0 |
39,120 |
0 |
17,050 |
1,076 |
osh-native |
6 |
no-host |
configure.yash |
256,266 |
0 |
0 |
0 |
4,120 |
0 |
871 |
74 |
bash |
14 |
no-host |
configure.yash |
245,178 |
0 |
0 |
0 |
3,720 |
0 |
866 |
73 |
dash |
22 |
no-host |
configure.yash |
384,858 |
0 |
0 |
0 |
3,728 |
0 |
858 |
85 |
osh-cpython |
30 |
no-host |
configure.yash |
258,654 |
0 |
0 |
0 |
3,736 |
0 |
855 |
85 |
osh-native |
0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
bash |
8 |
no-host |
hello-world |
84 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,652 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host