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 |
osh-native-souffle |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
19 |
10 |
473 |
22 |
21 |
24.36 |
1.14 |
bin-true |
no-host |
688 |
556 |
2,372 |
841 |
821 |
3.45 |
1.22 |
configure.cpython |
no-host |
15,630 |
15,765 |
29,920 |
15,884 |
15,857 |
1.91 |
1.02 |
configure.ocaml |
no-host |
3,906 |
3,862 |
4,858 |
3,930 |
3,927 |
1.24 |
1.01 |
configure.tcc |
no-host |
48 |
43 |
208 |
50 |
51 |
4.32 |
1.04 |
configure.util-linux |
no-host |
14,679 |
15,463 |
32,735 |
14,907 |
14,824 |
2.23 |
1.02 |
configure.yash |
no-host |
1,884 |
1,851 |
2,553 |
1,896 |
1,896 |
1.36 |
1.01 |
hello-world |
no-host |
2 |
1 |
59 |
3 |
3 |
39.34 |
1.91 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
osh-native-souffle |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,562 |
1,101 |
23,762 |
3,169 |
3,080 |
9.27 |
1.24 |
bin-true |
no-host |
107,249 |
68,434 |
763,490 |
128,201 |
123,175 |
7.12 |
1.20 |
configure.cpython |
no-host |
2,219,906 |
2,244,325 |
6,230,520 |
2,217,505 |
2,208,399 |
2.81 |
1.00 |
configure.ocaml |
no-host |
410,836 |
390,660 |
647,091 |
412,862 |
412,338 |
1.58 |
1.00 |
configure.tcc |
no-host |
6,556 |
5,489 |
24,029 |
6,966 |
6,902 |
3.67 |
1.06 |
configure.util-linux |
no-host |
2,104,982 |
2,262,980 |
5,375,567 |
2,001,790 |
1,992,571 |
2.55 |
0.95 |
configure.yash |
no-host |
255,990 |
245,003 |
386,701 |
258,269 |
257,851 |
1.51 |
1.01 |
hello-world |
no-host |
153 |
81 |
3,926 |
342 |
334 |
25.66 |
2.24 |
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,782 |
3,782 |
0 |
694 |
1,858 |
1,230 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
841 |
1 |
2 |
2.6 |
8.0 |
153,746 |
12,267 |
2,887 |
8,743 |
78,327 |
66,676 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,884 |
1 |
70 |
14.9 |
27.3 |
1,771,747 |
49,125 |
28,512 |
85,415 |
908,079 |
778,253 |
25,733 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,907 |
3 |
69 |
21.2 |
30.1 |
2,702,513 |
53,766 |
65,691 |
108,691 |
1,320,585 |
1,273,237 |
32,239 |
41 |
131,382 |
1 |
configure.ocaml |
no-host |
3,930 |
1 |
2 |
2.6 |
20.6 |
150,080 |
11,112 |
5,207 |
7,508 |
71,612 |
70,960 |
1,695 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.0 |
30,586 |
30,586 |
0 |
1,518 |
14,782 |
14,286 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,896 |
1 |
2 |
2.5 |
24.4 |
139,412 |
8,024 |
6,686 |
5,989 |
70,287 |
63,136 |
2,095 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,292 |
64,403 |
42,613 |
4,532 |
54,527 |
57,233 |
277 |
3 |
85,226 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.9 |
3,781 |
3,781 |
0 |
695 |
1,858 |
1,228 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
821 |
1 |
2 |
2.6 |
7.6 |
153,745 |
12,111 |
2,825 |
8,744 |
78,327 |
66,674 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,857 |
1 |
65 |
14.9 |
27.3 |
1,771,746 |
44,577 |
28,450 |
85,416 |
908,079 |
778,251 |
25,733 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,824 |
3 |
65 |
21.2 |
30.3 |
2,702,513 |
53,693 |
65,629 |
108,693 |
1,320,585 |
1,273,235 |
32,239 |
41 |
131,258 |
1 |
configure.ocaml |
no-host |
3,927 |
1 |
2 |
2.6 |
20.6 |
150,080 |
11,050 |
5,145 |
7,510 |
71,612 |
70,958 |
1,695 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
51 |
0 |
0 |
1.3 |
19.3 |
30,586 |
30,586 |
0 |
1,520 |
14,782 |
14,284 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,896 |
1 |
2 |
2.5 |
24.2 |
139,412 |
7,962 |
6,624 |
5,991 |
70,287 |
63,134 |
2,095 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.5 |
116,291 |
64,341 |
42,551 |
4,533 |
54,527 |
57,231 |
277 |
3 |
85,102 |
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 |
17 |
3 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
473 |
421 |
55 |
22.7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
17 |
6 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
19 |
2 |
8.5 |
osh-native-souffle |
1 |
no-host |
bin-true |
688 |
504 |
216 |
3.0 |
bash |
9 |
no-host |
bin-true |
556 |
424 |
140 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,372 |
1,559 |
1,086 |
18.3 |
osh-cpython |
25 |
no-host |
bin-true |
841 |
590 |
266 |
8.0 |
osh-native |
33 |
no-host |
bin-true |
821 |
572 |
264 |
7.6 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,630 |
9,461 |
6,584 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,765 |
9,619 |
6,581 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,920 |
18,095 |
13,772 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,884 |
9,301 |
6,855 |
27.3 |
osh-native |
34 |
no-host |
configure.cpython |
15,857 |
9,400 |
6,591 |
27.3 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,906 |
1,686 |
1,261 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,862 |
1,653 |
1,229 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,858 |
2,300 |
1,780 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,930 |
1,663 |
1,307 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,927 |
1,659 |
1,307 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
28 |
21 |
19.1 |
bash |
13 |
no-host |
configure.tcc |
43 |
29 |
14 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
208 |
170 |
42 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
28 |
23 |
19.0 |
osh-native |
37 |
no-host |
configure.tcc |
51 |
35 |
16 |
19.3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,679 |
9,162 |
6,008 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,463 |
9,366 |
6,596 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
32,735 |
21,700 |
12,173 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,907 |
8,988 |
6,123 |
30.1 |
osh-native |
35 |
no-host |
configure.util-linux |
14,824 |
8,768 |
6,260 |
30.3 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,884 |
1,055 |
838 |
24.5 |
bash |
14 |
no-host |
configure.yash |
1,851 |
1,010 |
841 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,553 |
1,573 |
1,024 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,896 |
1,055 |
846 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,896 |
1,165 |
736 |
24.2 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.3 |
dash |
16 |
no-host |
hello-world |
59 |
46 |
13 |
18.2 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.3 |
osh-native |
32 |
no-host |
hello-world |
3 |
0 |
3 |
5.9 |
osh-native-souffle |
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,562 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,101 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,762 |
0 |
0 |
0 |
8 |
0 |
45 |
13 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,169 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
39 |
no-host |
abuild-print-help |
3,080 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
1 |
no-host |
bin-true |
107,249 |
0 |
0 |
0 |
8 |
0 |
1,989 |
41 |
bash |
9 |
no-host |
bin-true |
68,434 |
0 |
0 |
0 |
8 |
0 |
1,991 |
39 |
dash |
17 |
no-host |
bin-true |
763,490 |
0 |
0 |
0 |
8 |
0 |
1,997 |
135 |
osh-cpython |
25 |
no-host |
bin-true |
128,201 |
0 |
0 |
0 |
16 |
0 |
1,988 |
133 |
osh-native |
33 |
no-host |
bin-true |
123,175 |
0 |
0 |
0 |
16 |
0 |
1,987 |
120 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,219,906 |
0 |
0 |
0 |
32,928 |
0 |
14,434 |
944 |
bash |
10 |
no-host |
configure.cpython |
2,244,325 |
0 |
0 |
0 |
32,992 |
0 |
14,614 |
1,150 |
dash |
18 |
no-host |
configure.cpython |
6,230,520 |
0 |
0 |
0 |
27,512 |
0 |
13,249 |
1,079 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,217,505 |
0 |
0 |
0 |
27,520 |
0 |
13,300 |
934 |
osh-native |
34 |
no-host |
configure.cpython |
2,208,399 |
0 |
0 |
0 |
27,520 |
0 |
13,156 |
921 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,836 |
0 |
0 |
0 |
5,120 |
0 |
1,949 |
135 |
bash |
12 |
no-host |
configure.ocaml |
390,660 |
0 |
0 |
0 |
5,112 |
0 |
1,892 |
142 |
dash |
20 |
no-host |
configure.ocaml |
647,091 |
0 |
0 |
0 |
5,112 |
0 |
1,861 |
172 |
osh-cpython |
28 |
no-host |
configure.ocaml |
412,862 |
0 |
0 |
0 |
5,120 |
0 |
1,927 |
179 |
osh-native |
36 |
no-host |
configure.ocaml |
412,338 |
0 |
0 |
0 |
5,120 |
0 |
1,932 |
144 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,556 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,489 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
dash |
21 |
no-host |
configure.tcc |
24,029 |
0 |
0 |
0 |
96 |
0 |
53 |
6 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,966 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native |
37 |
no-host |
configure.tcc |
6,902 |
0 |
0 |
0 |
104 |
0 |
47 |
5 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,104,982 |
1 |
0 |
0 |
42,408 |
0 |
18,635 |
1,044 |
bash |
11 |
no-host |
configure.util-linux |
2,262,980 |
0 |
0 |
0 |
42,592 |
0 |
17,354 |
1,049 |
dash |
19 |
no-host |
configure.util-linux |
5,375,567 |
5 |
0 |
0 |
39,112 |
0 |
16,972 |
1,257 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,001,790 |
0 |
0 |
0 |
39,128 |
0 |
16,920 |
1,055 |
osh-native |
35 |
no-host |
configure.util-linux |
1,992,571 |
1 |
0 |
0 |
39,136 |
0 |
16,992 |
931 |
osh-native-souffle |
6 |
no-host |
configure.yash |
255,990 |
0 |
0 |
0 |
4,120 |
0 |
869 |
81 |
bash |
14 |
no-host |
configure.yash |
245,003 |
0 |
0 |
0 |
3,720 |
0 |
868 |
82 |
dash |
22 |
no-host |
configure.yash |
386,701 |
0 |
0 |
0 |
3,728 |
0 |
854 |
105 |
osh-cpython |
30 |
no-host |
configure.yash |
258,269 |
0 |
0 |
0 |
3,736 |
0 |
848 |
71 |
osh-native |
38 |
no-host |
configure.yash |
257,851 |
0 |
0 |
0 |
3,736 |
0 |
849 |
80 |
osh-native-souffle |
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,926 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
342 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
334 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host