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 |
454 |
22 |
21 |
23.57 |
1.15 |
bin-true |
no-host |
679 |
550 |
2,282 |
816 |
818 |
3.36 |
1.20 |
configure.cpython |
no-host |
15,089 |
15,240 |
29,174 |
15,120 |
15,235 |
1.93 |
1.00 |
configure.ocaml |
no-host |
3,835 |
3,794 |
4,610 |
3,840 |
3,799 |
1.20 |
1.00 |
configure.tcc |
no-host |
48 |
42 |
193 |
50 |
48 |
4.01 |
1.03 |
configure.util-linux |
no-host |
14,173 |
15,058 |
31,561 |
14,329 |
14,362 |
2.23 |
1.01 |
configure.yash |
no-host |
1,826 |
1,790 |
2,428 |
1,847 |
1,812 |
1.33 |
1.01 |
hello-world |
no-host |
1 |
1 |
50 |
3 |
3 |
33.99 |
1.97 |
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,532 |
1,096 |
23,448 |
3,155 |
3,080 |
9.26 |
1.25 |
bin-true |
no-host |
107,373 |
65,472 |
776,965 |
127,823 |
124,836 |
7.24 |
1.19 |
configure.cpython |
no-host |
2,224,869 |
2,243,352 |
6,255,747 |
2,215,864 |
2,216,924 |
2.81 |
1.00 |
configure.ocaml |
no-host |
410,269 |
391,358 |
647,146 |
413,412 |
412,675 |
1.58 |
1.01 |
configure.tcc |
no-host |
6,551 |
5,509 |
23,751 |
6,964 |
6,915 |
3.63 |
1.06 |
configure.util-linux |
no-host |
2,100,813 |
2,258,661 |
5,356,552 |
2,006,259 |
1,999,148 |
2.55 |
0.95 |
configure.yash |
no-host |
256,009 |
244,654 |
387,492 |
257,787 |
256,666 |
1.51 |
1.01 |
hello-world |
no-host |
150 |
82 |
3,755 |
350 |
345 |
25.03 |
2.33 |
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 |
816 |
1 |
2 |
2.6 |
8.0 |
154,739 |
13,221 |
2,878 |
9,745 |
78,320 |
66,674 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,120 |
1 |
61 |
15.0 |
27.4 |
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,329 |
3 |
60 |
21.3 |
30.1 |
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,840 |
1 |
2 |
2.6 |
20.3 |
150,095 |
11,052 |
5,222 |
7,532 |
71,605 |
70,958 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
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,847 |
1 |
2 |
2.6 |
24.4 |
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 |
9.0 |
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.9 |
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.7 |
154,738 |
13,064 |
2,816 |
9,746 |
78,320 |
66,672 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,235 |
1 |
62 |
14.9 |
27.3 |
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,362 |
3 |
61 |
21.3 |
30.0 |
2,703,489 |
42,742 |
65,829 |
109,678 |
1,320,578 |
1,273,233 |
27,391 |
41 |
131,658 |
1 |
configure.ocaml |
no-host |
3,799 |
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,812 |
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.7 |
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 |
17 |
3 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
6 |
4 |
3.3 |
dash |
23 |
no-host |
abuild-print-help |
454 |
413 |
44 |
22.0 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
13 |
10 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
15 |
6 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
679 |
513 |
197 |
3.0 |
bash |
9 |
no-host |
bin-true |
550 |
417 |
140 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,282 |
1,491 |
1,057 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
816 |
587 |
244 |
8.0 |
osh-native |
33 |
no-host |
bin-true |
818 |
578 |
254 |
7.7 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,089 |
9,184 |
6,312 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,240 |
9,162 |
6,497 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,174 |
17,764 |
13,314 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,120 |
8,868 |
6,512 |
27.4 |
osh-native |
34 |
no-host |
configure.cpython |
15,235 |
9,263 |
6,152 |
27.3 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,835 |
1,610 |
1,255 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,794 |
1,577 |
1,237 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,610 |
2,158 |
1,664 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,840 |
1,613 |
1,267 |
20.3 |
osh-native |
36 |
no-host |
configure.ocaml |
3,799 |
1,578 |
1,257 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
27 |
21 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
23 |
20 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
193 |
137 |
59 |
19.1 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
38 |
12 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
48 |
23 |
26 |
19.3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,173 |
8,711 |
5,941 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,058 |
9,275 |
6,291 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,561 |
21,223 |
11,433 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,329 |
8,794 |
5,722 |
30.1 |
osh-native |
35 |
no-host |
configure.util-linux |
14,362 |
8,667 |
5,885 |
30.0 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,826 |
1,080 |
754 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,790 |
1,024 |
769 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,428 |
1,511 |
958 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,847 |
1,030 |
818 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,812 |
977 |
839 |
24.2 |
osh-native-souffle |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
50 |
24 |
26 |
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.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,532 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,096 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,448 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,155 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
39 |
no-host |
abuild-print-help |
3,080 |
0 |
0 |
0 |
16 |
0 |
39 |
3 |
osh-native-souffle |
1 |
no-host |
bin-true |
107,373 |
0 |
0 |
0 |
8 |
0 |
1,993 |
122 |
bash |
9 |
no-host |
bin-true |
65,472 |
0 |
0 |
0 |
8 |
0 |
1,992 |
114 |
dash |
17 |
no-host |
bin-true |
776,965 |
0 |
0 |
0 |
8 |
0 |
1,992 |
88 |
osh-cpython |
25 |
no-host |
bin-true |
127,823 |
0 |
0 |
0 |
16 |
0 |
1,987 |
59 |
osh-native |
33 |
no-host |
bin-true |
124,836 |
0 |
0 |
0 |
16 |
0 |
1,993 |
78 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,224,869 |
0 |
0 |
0 |
32,928 |
0 |
14,577 |
1,078 |
bash |
10 |
no-host |
configure.cpython |
2,243,352 |
0 |
0 |
0 |
32,992 |
0 |
14,572 |
1,101 |
dash |
18 |
no-host |
configure.cpython |
6,255,747 |
0 |
0 |
0 |
27,512 |
0 |
13,262 |
1,271 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,215,864 |
0 |
0 |
0 |
27,520 |
0 |
13,254 |
1,016 |
osh-native |
34 |
no-host |
configure.cpython |
2,216,924 |
0 |
0 |
0 |
27,520 |
0 |
13,279 |
1,099 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,269 |
0 |
0 |
0 |
5,120 |
0 |
1,954 |
145 |
bash |
12 |
no-host |
configure.ocaml |
391,358 |
0 |
0 |
0 |
5,112 |
0 |
1,925 |
159 |
dash |
20 |
no-host |
configure.ocaml |
647,146 |
1 |
0 |
0 |
5,112 |
0 |
1,864 |
194 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,412 |
0 |
0 |
0 |
5,120 |
0 |
1,932 |
175 |
osh-native |
36 |
no-host |
configure.ocaml |
412,675 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
179 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,551 |
0 |
0 |
0 |
104 |
0 |
49 |
12 |
bash |
13 |
no-host |
configure.tcc |
5,509 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,751 |
0 |
0 |
0 |
96 |
0 |
53 |
10 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,964 |
0 |
0 |
0 |
104 |
0 |
47 |
9 |
osh-native |
37 |
no-host |
configure.tcc |
6,915 |
0 |
0 |
0 |
104 |
0 |
47 |
9 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,100,813 |
1 |
0 |
0 |
42,400 |
0 |
18,613 |
1,103 |
bash |
11 |
no-host |
configure.util-linux |
2,258,661 |
1 |
0 |
0 |
42,584 |
0 |
17,564 |
1,062 |
dash |
19 |
no-host |
configure.util-linux |
5,356,552 |
10 |
0 |
0 |
39,112 |
0 |
16,988 |
1,231 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,006,259 |
1 |
0 |
0 |
39,120 |
0 |
16,926 |
1,009 |
osh-native |
35 |
no-host |
configure.util-linux |
1,999,148 |
0 |
0 |
0 |
39,128 |
0 |
17,003 |
1,082 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,009 |
0 |
0 |
0 |
4,120 |
0 |
869 |
64 |
bash |
14 |
no-host |
configure.yash |
244,654 |
0 |
0 |
0 |
3,720 |
0 |
872 |
70 |
dash |
22 |
no-host |
configure.yash |
387,492 |
0 |
0 |
0 |
3,728 |
0 |
852 |
80 |
osh-cpython |
30 |
no-host |
configure.yash |
257,787 |
0 |
0 |
0 |
3,736 |
0 |
846 |
94 |
osh-native |
38 |
no-host |
configure.yash |
256,666 |
0 |
0 |
0 |
3,736 |
0 |
849 |
61 |
osh-native-souffle |
0 |
no-host |
hello-world |
150 |
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,755 |
0 |
0 |
0 |
8 |
0 |
7 |
7 |
osh-cpython |
24 |
no-host |
hello-world |
350 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
32 |
no-host |
hello-world |
345 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native-souffle |
Shell and Host