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 |
9 |
455 |
22 |
21 |
23.60 |
1.14 |
bin-true |
no-host |
673 |
550 |
2,254 |
808 |
812 |
3.35 |
1.20 |
configure.cpython |
no-host |
14,774 |
14,866 |
28,269 |
14,991 |
15,050 |
1.91 |
1.01 |
configure.ocaml |
no-host |
3,754 |
3,697 |
4,589 |
3,778 |
3,776 |
1.22 |
1.01 |
configure.tcc |
no-host |
47 |
41 |
195 |
49 |
48 |
4.15 |
1.03 |
configure.util-linux |
no-host |
13,793 |
14,648 |
30,778 |
14,180 |
14,083 |
2.23 |
1.03 |
configure.yash |
no-host |
1,806 |
1,736 |
2,429 |
1,798 |
1,794 |
1.35 |
1.00 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
3 |
32.31 |
1.92 |
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,558 |
1,099 |
23,362 |
3,138 |
3,086 |
9.13 |
1.23 |
bin-true |
no-host |
106,316 |
66,462 |
770,942 |
125,849 |
123,854 |
7.25 |
1.18 |
configure.cpython |
no-host |
2,214,515 |
2,247,608 |
6,227,685 |
2,223,576 |
2,212,157 |
2.81 |
1.00 |
configure.ocaml |
no-host |
410,533 |
390,705 |
646,096 |
413,091 |
411,908 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,542 |
5,497 |
23,747 |
6,934 |
6,909 |
3.63 |
1.06 |
configure.util-linux |
no-host |
2,101,477 |
2,256,243 |
5,371,782 |
2,001,868 |
1,992,891 |
2.56 |
0.95 |
configure.yash |
no-host |
255,993 |
242,983 |
386,829 |
257,245 |
257,008 |
1.51 |
1.00 |
hello-world |
no-host |
148 |
82 |
3,746 |
350 |
344 |
25.31 |
2.36 |
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,780 |
3,780 |
0 |
695 |
1,857 |
1,228 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
808 |
1 |
2 |
2.6 |
8.1 |
154,745 |
13,282 |
2,884 |
9,745 |
78,326 |
66,674 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
14,991 |
1 |
59 |
15.0 |
27.4 |
1,772,727 |
49,861 |
28,594 |
86,398 |
908,078 |
778,251 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,180 |
3 |
59 |
21.3 |
30.0 |
2,703,495 |
29,153 |
65,897 |
109,676 |
1,320,584 |
1,273,235 |
27,391 |
41 |
131,794 |
1 |
configure.ocaml |
no-host |
3,778 |
1 |
2 |
2.6 |
20.4 |
150,101 |
11,058 |
5,228 |
7,532 |
71,611 |
70,958 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,586 |
30,586 |
0 |
1,521 |
14,781 |
14,284 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,798 |
1 |
2 |
2.6 |
24.4 |
139,754 |
8,027 |
6,686 |
6,337 |
70,286 |
63,131 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,329 |
64,537 |
42,747 |
4,572 |
54,526 |
57,231 |
270 |
3 |
85,494 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.9 |
3,779 |
3,779 |
0 |
696 |
1,857 |
1,226 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
812 |
1 |
2 |
2.6 |
7.7 |
154,744 |
13,070 |
2,822 |
9,746 |
78,326 |
66,672 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,050 |
1 |
60 |
14.9 |
27.5 |
1,772,726 |
49,112 |
28,532 |
86,399 |
908,078 |
778,249 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,083 |
3 |
59 |
21.3 |
30.1 |
2,703,495 |
42,748 |
65,835 |
109,678 |
1,320,584 |
1,273,233 |
27,391 |
41 |
131,670 |
1 |
configure.ocaml |
no-host |
3,776 |
1 |
2 |
2.6 |
20.6 |
150,101 |
10,996 |
5,166 |
7,534 |
71,611 |
70,956 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.1 |
30,586 |
30,586 |
0 |
1,523 |
14,781 |
14,282 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,794 |
1 |
2 |
2.6 |
24.4 |
139,754 |
7,965 |
6,624 |
6,339 |
70,286 |
63,129 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.7 |
116,328 |
64,475 |
42,685 |
4,573 |
54,526 |
57,229 |
270 |
3 |
85,370 |
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 |
15 |
5 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
455 |
411 |
47 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
11 |
12 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
20 |
1 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
673 |
507 |
200 |
3.0 |
bash |
9 |
no-host |
bin-true |
550 |
411 |
147 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,254 |
1,500 |
1,010 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
808 |
593 |
233 |
8.1 |
osh-native |
33 |
no-host |
bin-true |
812 |
577 |
247 |
7.7 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
14,774 |
8,949 |
6,223 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
14,866 |
9,104 |
6,187 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,269 |
17,069 |
13,033 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
14,991 |
8,882 |
6,375 |
27.4 |
osh-native |
34 |
no-host |
configure.cpython |
15,050 |
8,734 |
6,499 |
27.5 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,754 |
1,608 |
1,186 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,697 |
1,554 |
1,161 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,589 |
2,279 |
1,519 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,778 |
1,561 |
1,256 |
20.4 |
osh-native |
36 |
no-host |
configure.ocaml |
3,776 |
1,638 |
1,173 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
47 |
24 |
24 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
41 |
28 |
14 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
195 |
119 |
79 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
27 |
22 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
48 |
35 |
14 |
19.1 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
13,793 |
8,904 |
5,363 |
29.9 |
bash |
11 |
no-host |
configure.util-linux |
14,648 |
9,117 |
6,016 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
30,778 |
20,812 |
11,035 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,180 |
8,561 |
5,816 |
30.0 |
osh-native |
35 |
no-host |
configure.util-linux |
14,083 |
8,575 |
5,703 |
30.1 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,806 |
1,116 |
692 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,736 |
1,010 |
730 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,429 |
1,481 |
990 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,798 |
1,078 |
723 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,794 |
1,109 |
689 |
24.4 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
21 |
28 |
17.7 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.2 |
osh-native |
32 |
no-host |
hello-world |
3 |
3 |
0 |
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,558 |
0 |
0 |
0 |
16 |
0 |
40 |
3 |
bash |
15 |
no-host |
abuild-print-help |
1,099 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,362 |
0 |
0 |
0 |
8 |
0 |
45 |
8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,138 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
39 |
no-host |
abuild-print-help |
3,086 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
1 |
no-host |
bin-true |
106,316 |
0 |
0 |
0 |
8 |
0 |
1,989 |
62 |
bash |
9 |
no-host |
bin-true |
66,462 |
0 |
0 |
0 |
8 |
0 |
1,989 |
135 |
dash |
17 |
no-host |
bin-true |
770,942 |
0 |
0 |
0 |
8 |
0 |
2,000 |
207 |
osh-cpython |
25 |
no-host |
bin-true |
125,849 |
0 |
0 |
0 |
16 |
0 |
1,998 |
148 |
osh-native |
33 |
no-host |
bin-true |
123,854 |
0 |
0 |
0 |
16 |
0 |
1,991 |
250 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,214,515 |
1 |
0 |
0 |
32,928 |
0 |
14,492 |
1,207 |
bash |
10 |
no-host |
configure.cpython |
2,247,608 |
0 |
0 |
0 |
32,992 |
0 |
14,648 |
1,300 |
dash |
18 |
no-host |
configure.cpython |
6,227,685 |
1 |
0 |
0 |
27,512 |
0 |
13,240 |
1,210 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,223,576 |
0 |
0 |
0 |
27,520 |
0 |
13,143 |
1,095 |
osh-native |
34 |
no-host |
configure.cpython |
2,212,157 |
0 |
0 |
0 |
27,520 |
0 |
13,175 |
1,225 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,533 |
0 |
0 |
0 |
5,120 |
0 |
1,947 |
155 |
bash |
12 |
no-host |
configure.ocaml |
390,705 |
0 |
0 |
0 |
5,112 |
0 |
1,889 |
197 |
dash |
20 |
no-host |
configure.ocaml |
646,096 |
0 |
0 |
0 |
5,112 |
0 |
1,859 |
219 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,091 |
0 |
0 |
0 |
5,120 |
0 |
1,926 |
174 |
osh-native |
36 |
no-host |
configure.ocaml |
411,908 |
0 |
0 |
0 |
5,120 |
0 |
1,929 |
180 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,542 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,497 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,747 |
0 |
0 |
0 |
96 |
0 |
52 |
15 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,934 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
37 |
no-host |
configure.tcc |
6,909 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,101,477 |
2 |
0 |
0 |
42,400 |
0 |
18,517 |
1,047 |
bash |
11 |
no-host |
configure.util-linux |
2,256,243 |
0 |
0 |
0 |
42,584 |
0 |
17,484 |
1,063 |
dash |
19 |
no-host |
configure.util-linux |
5,371,782 |
9 |
0 |
0 |
39,112 |
0 |
16,975 |
1,157 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,001,868 |
4 |
0 |
0 |
39,120 |
0 |
16,958 |
1,093 |
osh-native |
35 |
no-host |
configure.util-linux |
1,992,891 |
0 |
0 |
0 |
39,128 |
0 |
16,972 |
1,080 |
osh-native-souffle |
6 |
no-host |
configure.yash |
255,993 |
0 |
0 |
0 |
4,120 |
0 |
874 |
84 |
bash |
14 |
no-host |
configure.yash |
242,983 |
0 |
0 |
0 |
3,720 |
0 |
869 |
64 |
dash |
22 |
no-host |
configure.yash |
386,829 |
0 |
0 |
0 |
3,728 |
0 |
855 |
92 |
osh-cpython |
30 |
no-host |
configure.yash |
257,245 |
0 |
0 |
0 |
3,736 |
0 |
849 |
77 |
osh-native |
38 |
no-host |
configure.yash |
257,008 |
0 |
0 |
0 |
3,736 |
0 |
849 |
84 |
osh-native-souffle |
0 |
no-host |
hello-world |
148 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
82 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
dash |
16 |
no-host |
hello-world |
3,746 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
24 |
no-host |
hello-world |
350 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host