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 |
10 |
457 |
23 |
23.22 |
1.14 |
bin-true |
no-host |
682 |
551 |
2,236 |
826 |
3.28 |
1.21 |
configure.cpython |
no-host |
15,152 |
15,284 |
28,714 |
15,673 |
1.90 |
1.03 |
configure.ocaml |
no-host |
3,869 |
3,744 |
4,663 |
3,888 |
1.21 |
1.01 |
configure.tcc |
no-host |
48 |
43 |
192 |
49 |
3.97 |
1.01 |
configure.util-linux |
no-host |
14,211 |
14,997 |
31,532 |
14,616 |
2.22 |
1.03 |
configure.yash |
no-host |
1,891 |
1,794 |
2,466 |
1,863 |
1.30 |
0.99 |
hello-world |
no-host |
1 |
1 |
49 |
3 |
33.30 |
1.97 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,567 |
1,118 |
23,062 |
3,208 |
8.98 |
1.25 |
bin-true |
no-host |
108,299 |
66,498 |
741,927 |
129,609 |
6.85 |
1.20 |
configure.cpython |
no-host |
2,215,687 |
2,240,801 |
6,053,471 |
2,250,800 |
2.73 |
1.02 |
configure.ocaml |
no-host |
410,431 |
391,127 |
634,552 |
413,919 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,546 |
5,466 |
22,969 |
6,979 |
3.51 |
1.07 |
configure.util-linux |
no-host |
2,104,926 |
2,259,563 |
5,288,364 |
2,010,753 |
2.51 |
0.96 |
configure.yash |
no-host |
255,923 |
244,486 |
383,063 |
258,941 |
1.50 |
1.01 |
hello-world |
no-host |
153 |
81 |
3,627 |
344 |
23.71 |
2.25 |
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.2 |
3,673 |
3,673 |
0 |
681 |
1,828 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
826 |
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,673 |
1 |
64 |
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,616 |
3 |
60 |
22.2 |
29.9 |
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,888 |
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 |
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,863 |
1 |
2 |
2.6 |
24.2 |
138,968 |
6,642 |
6,495 |
7,554 |
69,574 |
61,840 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
9.0 |
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 |
17 |
3 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.7 |
dash |
23 |
no-host |
abuild-print-help |
457 |
398 |
62 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
11 |
12 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
682 |
508 |
206 |
2.9 |
bash |
9 |
no-host |
bin-true |
551 |
427 |
134 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,236 |
1,478 |
1,003 |
17.2 |
osh-cpython |
25 |
no-host |
bin-true |
826 |
573 |
272 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,152 |
9,187 |
6,358 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,284 |
9,190 |
6,519 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,714 |
17,441 |
13,089 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,673 |
9,163 |
6,777 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,869 |
1,588 |
1,317 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,744 |
1,635 |
1,128 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,663 |
2,320 |
1,543 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,888 |
1,617 |
1,312 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
23 |
26 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
43 |
31 |
12 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
192 |
139 |
57 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
24 |
25 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,211 |
8,783 |
5,909 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,997 |
9,195 |
6,287 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,532 |
20,995 |
11,600 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,616 |
8,787 |
6,026 |
29.9 |
osh-native |
6 |
no-host |
configure.yash |
1,891 |
1,113 |
767 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,794 |
1,002 |
793 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,466 |
1,501 |
1,006 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,863 |
1,032 |
835 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
37 |
12 |
17.0 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
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,567 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,118 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,062 |
0 |
0 |
0 |
8 |
0 |
47 |
7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,208 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
108,299 |
0 |
0 |
0 |
8 |
0 |
1,989 |
78 |
bash |
9 |
no-host |
bin-true |
66,498 |
0 |
0 |
0 |
8 |
0 |
1,986 |
111 |
dash |
17 |
no-host |
bin-true |
741,927 |
0 |
0 |
0 |
8 |
0 |
2,003 |
389 |
osh-cpython |
25 |
no-host |
bin-true |
129,609 |
0 |
0 |
0 |
16 |
0 |
1,989 |
46 |
osh-native |
2 |
no-host |
configure.cpython |
2,215,687 |
0 |
0 |
0 |
32,928 |
0 |
14,591 |
1,038 |
bash |
10 |
no-host |
configure.cpython |
2,240,801 |
0 |
0 |
0 |
32,992 |
0 |
14,733 |
1,125 |
dash |
18 |
no-host |
configure.cpython |
6,053,471 |
0 |
0 |
0 |
27,512 |
0 |
13,399 |
1,178 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,250,800 |
0 |
0 |
0 |
27,520 |
0 |
13,215 |
1,022 |
osh-native |
4 |
no-host |
configure.ocaml |
410,431 |
0 |
0 |
0 |
5,120 |
0 |
1,950 |
141 |
bash |
12 |
no-host |
configure.ocaml |
391,127 |
0 |
0 |
0 |
5,112 |
0 |
1,902 |
140 |
dash |
20 |
no-host |
configure.ocaml |
634,552 |
0 |
0 |
0 |
5,112 |
0 |
1,858 |
182 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,919 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
144 |
osh-native |
5 |
no-host |
configure.tcc |
6,546 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,466 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
22,969 |
0 |
0 |
0 |
96 |
0 |
53 |
13 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,979 |
0 |
0 |
0 |
104 |
0 |
46 |
4 |
osh-native |
3 |
no-host |
configure.util-linux |
2,104,926 |
1 |
0 |
0 |
42,400 |
0 |
18,592 |
1,032 |
bash |
11 |
no-host |
configure.util-linux |
2,259,563 |
0 |
0 |
0 |
42,584 |
0 |
17,415 |
963 |
dash |
19 |
no-host |
configure.util-linux |
5,288,364 |
14 |
0 |
0 |
39,136 |
0 |
17,079 |
1,249 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,010,753 |
1 |
0 |
0 |
39,120 |
0 |
17,064 |
1,122 |
osh-native |
6 |
no-host |
configure.yash |
255,923 |
0 |
0 |
0 |
4,120 |
0 |
873 |
85 |
bash |
14 |
no-host |
configure.yash |
244,486 |
0 |
0 |
0 |
3,720 |
0 |
865 |
92 |
dash |
22 |
no-host |
configure.yash |
383,063 |
0 |
0 |
0 |
3,728 |
0 |
851 |
96 |
osh-cpython |
30 |
no-host |
configure.yash |
258,941 |
0 |
0 |
0 |
3,736 |
0 |
856 |
75 |
osh-native |
0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
81 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,627 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
24 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host