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 |
456 |
22 |
23.66 |
1.16 |
bin-true |
no-host |
676 |
548 |
2,195 |
828 |
3.25 |
1.23 |
configure.cpython |
no-host |
14,984 |
14,965 |
28,129 |
15,163 |
1.88 |
1.01 |
configure.ocaml |
no-host |
3,810 |
3,708 |
4,684 |
3,781 |
1.23 |
0.99 |
configure.tcc |
no-host |
47 |
41 |
193 |
48 |
4.08 |
1.02 |
configure.util-linux |
no-host |
13,881 |
14,700 |
31,046 |
14,312 |
2.24 |
1.03 |
configure.yash |
no-host |
1,807 |
1,749 |
2,463 |
1,810 |
1.36 |
1.00 |
hello-world |
no-host |
2 |
1 |
47 |
3 |
30.60 |
1.89 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,554 |
1,094 |
23,197 |
3,221 |
9.08 |
1.26 |
bin-true |
no-host |
106,397 |
66,420 |
748,500 |
131,150 |
7.03 |
1.23 |
configure.cpython |
no-host |
2,217,822 |
2,243,171 |
6,101,727 |
2,226,868 |
2.75 |
1.00 |
configure.ocaml |
no-host |
410,752 |
391,249 |
636,964 |
414,166 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,546 |
5,487 |
23,181 |
6,953 |
3.54 |
1.06 |
configure.util-linux |
no-host |
2,103,628 |
2,258,518 |
5,311,230 |
2,013,062 |
2.52 |
0.96 |
configure.yash |
no-host |
256,850 |
244,236 |
385,335 |
258,045 |
1.50 |
1.00 |
hello-world |
no-host |
153 |
82 |
3,660 |
347 |
23.92 |
2.27 |
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 |
828 |
1 |
2 |
2.7 |
8.0 |
154,685 |
12,990 |
2,797 |
11,737 |
78,341 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,163 |
2 |
59 |
15.8 |
27.1 |
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,312 |
2 |
57 |
22.2 |
30.4 |
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,781 |
0 |
2 |
2.7 |
20.4 |
150,027 |
11,043 |
5,136 |
8,602 |
71,626 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.3 |
30,520 |
30,520 |
0 |
1,599 |
14,796 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,810 |
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 |
8.8 |
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 |
19 |
11 |
8 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
456 |
397 |
62 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
21 |
2 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
676 |
502 |
204 |
3.0 |
bash |
9 |
no-host |
bin-true |
548 |
421 |
139 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,195 |
1,473 |
969 |
17.2 |
osh-cpython |
25 |
no-host |
bin-true |
828 |
585 |
257 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
14,984 |
8,923 |
6,459 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
14,965 |
8,932 |
6,443 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,129 |
17,016 |
12,909 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,163 |
8,887 |
6,541 |
27.1 |
osh-native |
4 |
no-host |
configure.ocaml |
3,810 |
1,511 |
1,334 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,708 |
1,492 |
1,232 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,684 |
2,184 |
1,706 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,781 |
1,636 |
1,186 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
43 |
5 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
41 |
21 |
20 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
193 |
160 |
36 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
48 |
31 |
18 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
13,881 |
8,835 |
5,521 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,700 |
9,029 |
6,156 |
30.4 |
dash |
19 |
no-host |
configure.util-linux |
31,046 |
20,843 |
11,269 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,312 |
8,642 |
5,870 |
30.4 |
osh-native |
6 |
no-host |
configure.yash |
1,807 |
978 |
838 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,749 |
1,070 |
683 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,463 |
1,604 |
902 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,810 |
1,084 |
731 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
47 |
20 |
27 |
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,554 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,094 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,197 |
0 |
0 |
0 |
8 |
0 |
47 |
12 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,221 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
osh-native |
1 |
no-host |
bin-true |
106,397 |
0 |
0 |
0 |
8 |
0 |
1,988 |
85 |
bash |
9 |
no-host |
bin-true |
66,420 |
0 |
0 |
0 |
8 |
0 |
1,990 |
62 |
dash |
17 |
no-host |
bin-true |
748,500 |
0 |
0 |
0 |
8 |
0 |
1,995 |
96 |
osh-cpython |
25 |
no-host |
bin-true |
131,150 |
0 |
0 |
0 |
16 |
0 |
1,991 |
54 |
osh-native |
2 |
no-host |
configure.cpython |
2,217,822 |
0 |
0 |
0 |
32,928 |
0 |
14,417 |
1,050 |
bash |
10 |
no-host |
configure.cpython |
2,243,171 |
0 |
0 |
0 |
32,992 |
0 |
14,612 |
1,245 |
dash |
18 |
no-host |
configure.cpython |
6,101,727 |
0 |
0 |
0 |
27,512 |
0 |
13,256 |
1,275 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,226,868 |
0 |
0 |
0 |
27,520 |
0 |
13,264 |
1,131 |
osh-native |
4 |
no-host |
configure.ocaml |
410,752 |
0 |
0 |
0 |
5,120 |
0 |
1,960 |
147 |
bash |
12 |
no-host |
configure.ocaml |
391,249 |
0 |
0 |
0 |
5,112 |
0 |
1,891 |
167 |
dash |
20 |
no-host |
configure.ocaml |
636,964 |
0 |
0 |
0 |
5,112 |
0 |
1,861 |
159 |
osh-cpython |
28 |
no-host |
configure.ocaml |
414,166 |
0 |
0 |
0 |
5,120 |
0 |
1,926 |
159 |
osh-native |
5 |
no-host |
configure.tcc |
6,546 |
0 |
0 |
0 |
104 |
0 |
49 |
7 |
bash |
13 |
no-host |
configure.tcc |
5,487 |
0 |
0 |
0 |
96 |
0 |
47 |
0 |
dash |
21 |
no-host |
configure.tcc |
23,181 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,953 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,103,628 |
0 |
0 |
0 |
42,400 |
0 |
18,639 |
1,043 |
bash |
11 |
no-host |
configure.util-linux |
2,258,518 |
2 |
0 |
0 |
42,584 |
0 |
17,424 |
1,023 |
dash |
19 |
no-host |
configure.util-linux |
5,311,230 |
3 |
0 |
0 |
39,120 |
0 |
17,046 |
1,273 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,013,062 |
4 |
0 |
0 |
39,120 |
0 |
17,029 |
984 |
osh-native |
6 |
no-host |
configure.yash |
256,850 |
0 |
0 |
0 |
4,120 |
0 |
868 |
84 |
bash |
14 |
no-host |
configure.yash |
244,236 |
0 |
0 |
0 |
3,720 |
0 |
871 |
86 |
dash |
22 |
no-host |
configure.yash |
385,335 |
0 |
0 |
0 |
3,728 |
0 |
855 |
94 |
osh-cpython |
30 |
no-host |
configure.yash |
258,045 |
0 |
0 |
0 |
3,736 |
0 |
852 |
70 |
osh-native |
0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
82 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,660 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
347 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host