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 |
465 |
22 |
21 |
24.06 |
1.15 |
bin-true |
no-host |
683 |
548 |
2,317 |
807 |
818 |
3.39 |
1.18 |
configure.cpython |
no-host |
15,164 |
15,167 |
28,747 |
15,253 |
15,725 |
1.90 |
1.01 |
configure.ocaml |
no-host |
3,793 |
3,743 |
4,661 |
3,854 |
3,829 |
1.23 |
1.02 |
configure.tcc |
no-host |
55 |
42 |
197 |
49 |
48 |
3.56 |
0.89 |
configure.util-linux |
no-host |
14,104 |
14,972 |
31,355 |
14,429 |
14,539 |
2.22 |
1.02 |
configure.yash |
no-host |
1,828 |
1,774 |
2,449 |
1,861 |
1,830 |
1.34 |
1.02 |
hello-world |
no-host |
2 |
1 |
52 |
3 |
3 |
31.08 |
1.72 |
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,522 |
1,118 |
23,361 |
3,165 |
3,078 |
9.26 |
1.25 |
bin-true |
no-host |
105,357 |
65,404 |
778,747 |
124,866 |
127,874 |
7.39 |
1.19 |
configure.cpython |
no-host |
2,223,655 |
2,236,600 |
6,223,497 |
2,221,507 |
2,213,598 |
2.80 |
1.00 |
configure.ocaml |
no-host |
410,547 |
391,159 |
646,708 |
412,782 |
412,346 |
1.58 |
1.01 |
configure.tcc |
no-host |
6,575 |
5,481 |
23,729 |
6,933 |
6,930 |
3.61 |
1.05 |
configure.util-linux |
no-host |
2,101,462 |
2,265,103 |
5,369,446 |
2,004,749 |
1,986,105 |
2.56 |
0.95 |
configure.yash |
no-host |
256,431 |
245,042 |
387,274 |
258,451 |
258,051 |
1.51 |
1.01 |
hello-world |
no-host |
153 |
82 |
3,742 |
351 |
344 |
24.46 |
2.29 |
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,774 |
3,774 |
0 |
695 |
1,851 |
1,228 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
807 |
1 |
2 |
2.6 |
8.1 |
154,739 |
13,221 |
2,878 |
9,745 |
78,320 |
66,674 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,253 |
1 |
63 |
15.0 |
27.5 |
1,772,721 |
49,855 |
28,588 |
86,398 |
908,072 |
778,251 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,429 |
3 |
61 |
21.3 |
30.0 |
2,703,489 |
29,147 |
65,891 |
109,676 |
1,320,578 |
1,273,235 |
27,391 |
41 |
131,782 |
1 |
configure.ocaml |
no-host |
3,854 |
1 |
2 |
2.6 |
20.6 |
150,095 |
11,052 |
5,222 |
7,532 |
71,605 |
70,958 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,580 |
30,580 |
0 |
1,521 |
14,775 |
14,284 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,861 |
1 |
2 |
2.6 |
24.2 |
139,748 |
8,021 |
6,680 |
6,337 |
70,280 |
63,131 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.9 |
116,323 |
64,531 |
42,741 |
4,572 |
54,520 |
57,231 |
270 |
3 |
85,482 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.8 |
3,773 |
3,773 |
0 |
696 |
1,851 |
1,226 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
818 |
1 |
2 |
2.6 |
7.6 |
154,738 |
13,064 |
2,816 |
9,746 |
78,320 |
66,672 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,725 |
1 |
64 |
14.9 |
27.5 |
1,772,720 |
49,106 |
28,526 |
86,399 |
908,072 |
778,249 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,539 |
3 |
62 |
21.3 |
30.1 |
2,703,489 |
42,742 |
65,809 |
109,678 |
1,320,578 |
1,273,233 |
27,391 |
41 |
131,618 |
1 |
configure.ocaml |
no-host |
3,829 |
1 |
2 |
2.6 |
20.6 |
150,095 |
10,990 |
5,160 |
7,534 |
71,605 |
70,956 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.3 |
30,580 |
30,580 |
0 |
1,523 |
14,775 |
14,282 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,830 |
1 |
2 |
2.6 |
24.2 |
139,748 |
7,959 |
6,618 |
6,339 |
70,280 |
63,129 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.5 |
116,322 |
64,469 |
42,679 |
4,573 |
54,520 |
57,229 |
270 |
3 |
85,358 |
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 |
18 |
2 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
465 |
401 |
67 |
22.0 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
15 |
8 |
8.9 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
15 |
6 |
8.5 |
osh-native-souffle |
1 |
no-host |
bin-true |
683 |
525 |
188 |
3.0 |
bash |
9 |
no-host |
bin-true |
548 |
422 |
136 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,317 |
1,532 |
1,048 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
807 |
576 |
246 |
8.1 |
osh-native |
33 |
no-host |
bin-true |
818 |
573 |
256 |
7.6 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,164 |
9,167 |
6,388 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,167 |
9,255 |
6,329 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,747 |
17,622 |
12,967 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,253 |
8,959 |
6,555 |
27.5 |
osh-native |
34 |
no-host |
configure.cpython |
15,725 |
9,144 |
6,624 |
27.5 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,793 |
1,526 |
1,308 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,743 |
1,601 |
1,164 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,661 |
2,219 |
1,653 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,854 |
1,648 |
1,248 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,829 |
1,618 |
1,247 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
55 |
36 |
19 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
34 |
8 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
197 |
138 |
63 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
30 |
20 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
48 |
28 |
21 |
19.3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,104 |
8,973 |
5,600 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,972 |
9,259 |
6,223 |
30.4 |
dash |
19 |
no-host |
configure.util-linux |
31,355 |
20,829 |
11,609 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,429 |
8,734 |
5,886 |
30.0 |
osh-native |
35 |
no-host |
configure.util-linux |
14,539 |
8,714 |
6,021 |
30.1 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,828 |
1,015 |
822 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,774 |
1,089 |
689 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,449 |
1,512 |
979 |
24.6 |
osh-cpython |
30 |
no-host |
configure.yash |
1,861 |
1,067 |
794 |
24.2 |
osh-native |
38 |
no-host |
configure.yash |
1,830 |
1,094 |
739 |
24.2 |
osh-native-souffle |
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 |
52 |
48 |
4 |
17.6 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.3 |
osh-native |
32 |
no-host |
hello-world |
3 |
0 |
3 |
5.8 |
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,522 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,118 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,361 |
0 |
0 |
0 |
8 |
0 |
45 |
7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,165 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
39 |
no-host |
abuild-print-help |
3,078 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
1 |
no-host |
bin-true |
105,357 |
0 |
0 |
0 |
8 |
0 |
1,994 |
316 |
bash |
9 |
no-host |
bin-true |
65,404 |
0 |
0 |
0 |
8 |
0 |
1,996 |
78 |
dash |
17 |
no-host |
bin-true |
778,747 |
0 |
0 |
0 |
8 |
0 |
1,999 |
266 |
osh-cpython |
25 |
no-host |
bin-true |
124,866 |
0 |
0 |
0 |
16 |
0 |
1,993 |
64 |
osh-native |
33 |
no-host |
bin-true |
127,874 |
0 |
0 |
0 |
16 |
0 |
1,989 |
63 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,223,655 |
0 |
0 |
0 |
32,928 |
0 |
14,508 |
1,337 |
bash |
10 |
no-host |
configure.cpython |
2,236,600 |
0 |
0 |
0 |
32,992 |
0 |
14,638 |
1,201 |
dash |
18 |
no-host |
configure.cpython |
6,223,497 |
1 |
0 |
0 |
27,512 |
0 |
13,199 |
1,170 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,221,507 |
0 |
0 |
0 |
27,520 |
0 |
13,186 |
1,103 |
osh-native |
34 |
no-host |
configure.cpython |
2,213,598 |
0 |
0 |
0 |
27,520 |
0 |
13,273 |
934 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,547 |
0 |
0 |
0 |
5,120 |
0 |
1,947 |
155 |
bash |
12 |
no-host |
configure.ocaml |
391,159 |
0 |
0 |
0 |
5,112 |
0 |
1,950 |
153 |
dash |
20 |
no-host |
configure.ocaml |
646,708 |
1 |
0 |
0 |
5,112 |
0 |
1,860 |
218 |
osh-cpython |
28 |
no-host |
configure.ocaml |
412,782 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
157 |
osh-native |
36 |
no-host |
configure.ocaml |
412,346 |
0 |
0 |
0 |
5,120 |
0 |
1,921 |
168 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,575 |
0 |
0 |
0 |
104 |
0 |
54 |
6 |
bash |
13 |
no-host |
configure.tcc |
5,481 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,729 |
0 |
0 |
0 |
96 |
0 |
53 |
7 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,933 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
37 |
no-host |
configure.tcc |
6,930 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,101,462 |
1 |
0 |
0 |
42,400 |
0 |
18,557 |
1,009 |
bash |
11 |
no-host |
configure.util-linux |
2,265,103 |
0 |
0 |
0 |
42,584 |
0 |
17,489 |
1,195 |
dash |
19 |
no-host |
configure.util-linux |
5,369,446 |
10 |
0 |
0 |
39,112 |
0 |
16,973 |
1,512 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,004,749 |
2 |
0 |
0 |
39,120 |
0 |
16,951 |
1,077 |
osh-native |
35 |
no-host |
configure.util-linux |
1,986,105 |
2 |
0 |
0 |
39,136 |
0 |
16,934 |
1,033 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,431 |
0 |
0 |
0 |
4,120 |
0 |
869 |
92 |
bash |
14 |
no-host |
configure.yash |
245,042 |
0 |
0 |
0 |
3,720 |
0 |
867 |
68 |
dash |
22 |
no-host |
configure.yash |
387,274 |
0 |
0 |
0 |
3,728 |
0 |
855 |
114 |
osh-cpython |
30 |
no-host |
configure.yash |
258,451 |
0 |
0 |
0 |
3,736 |
0 |
849 |
196 |
osh-native |
38 |
no-host |
configure.yash |
258,051 |
0 |
0 |
0 |
3,736 |
0 |
850 |
81 |
osh-native-souffle |
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,742 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
351 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
32 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host