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 |
20 |
10 |
460 |
23 |
21 |
23.50 |
1.16 |
bin-true |
no-host |
708 |
549 |
2,290 |
813 |
816 |
3.24 |
1.15 |
configure.cpython |
no-host |
15,647 |
15,551 |
29,644 |
15,463 |
15,792 |
1.89 |
0.99 |
configure.ocaml |
no-host |
3,896 |
3,799 |
4,698 |
3,942 |
3,961 |
1.21 |
1.01 |
configure.tcc |
no-host |
48 |
42 |
201 |
50 |
50 |
4.17 |
1.04 |
configure.util-linux |
no-host |
14,482 |
15,133 |
32,680 |
14,777 |
14,835 |
2.26 |
1.02 |
configure.yash |
no-host |
1,869 |
1,812 |
2,548 |
1,897 |
1,915 |
1.36 |
1.01 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
3 |
31.84 |
1.87 |
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,514 |
1,104 |
23,430 |
3,174 |
3,112 |
9.32 |
1.26 |
bin-true |
no-host |
106,322 |
66,389 |
777,858 |
127,800 |
123,872 |
7.32 |
1.20 |
configure.cpython |
no-host |
2,223,601 |
2,240,199 |
6,210,167 |
2,227,546 |
2,213,566 |
2.79 |
1.00 |
configure.ocaml |
no-host |
410,997 |
391,339 |
646,524 |
412,529 |
412,192 |
1.57 |
1.00 |
configure.tcc |
no-host |
6,543 |
5,469 |
23,762 |
6,961 |
6,909 |
3.63 |
1.06 |
configure.util-linux |
no-host |
2,103,781 |
2,260,510 |
5,385,878 |
2,006,280 |
1,991,510 |
2.56 |
0.95 |
configure.yash |
no-host |
256,142 |
243,910 |
386,927 |
257,520 |
257,801 |
1.51 |
1.01 |
hello-world |
no-host |
154 |
84 |
3,743 |
352 |
344 |
24.31 |
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,780 |
3,780 |
0 |
695 |
1,857 |
1,228 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
813 |
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 |
15,463 |
2 |
66 |
15.0 |
27.5 |
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,777 |
3 |
65 |
21.3 |
30.3 |
2,703,495 |
29,752 |
65,877 |
109,676 |
1,320,584 |
1,273,235 |
27,391 |
41 |
131,754 |
1 |
configure.ocaml |
no-host |
3,942 |
1 |
2 |
2.6 |
20.6 |
150,101 |
11,058 |
5,228 |
7,532 |
71,611 |
70,958 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
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,897 |
1 |
2 |
2.6 |
24.5 |
139,754 |
8,027 |
6,686 |
6,337 |
70,286 |
63,131 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
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 |
816 |
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,792 |
1 |
68 |
14.9 |
27.1 |
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,835 |
3 |
67 |
21.3 |
30.1 |
2,703,495 |
42,748 |
65,815 |
109,678 |
1,320,584 |
1,273,233 |
27,391 |
41 |
131,630 |
1 |
configure.ocaml |
no-host |
3,961 |
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 |
50 |
0 |
0 |
1.3 |
19.3 |
30,586 |
30,586 |
0 |
1,523 |
14,781 |
14,282 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,915 |
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 |
20 |
14 |
6 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.3 |
dash |
23 |
no-host |
abuild-print-help |
460 |
404 |
59 |
22.0 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
15 |
8 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
13 |
9 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
708 |
530 |
211 |
2.9 |
bash |
9 |
no-host |
bin-true |
549 |
413 |
137 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,290 |
1,500 |
1,059 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
813 |
600 |
229 |
8.1 |
osh-native |
33 |
no-host |
bin-true |
816 |
584 |
246 |
7.7 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,647 |
9,486 |
6,568 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,551 |
9,289 |
6,693 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,644 |
17,790 |
13,829 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,463 |
8,937 |
6,789 |
27.5 |
osh-native |
34 |
no-host |
configure.cpython |
15,792 |
9,225 |
6,742 |
27.1 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,896 |
1,616 |
1,308 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,799 |
1,606 |
1,210 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,698 |
2,215 |
1,699 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,942 |
1,639 |
1,342 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,961 |
1,643 |
1,353 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
20 |
29 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
28 |
13 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
201 |
144 |
61 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
26 |
24 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
50 |
34 |
17 |
19.3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,482 |
9,136 |
5,823 |
30.4 |
bash |
11 |
no-host |
configure.util-linux |
15,133 |
9,346 |
6,272 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
32,680 |
21,267 |
12,591 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,777 |
8,879 |
6,091 |
30.3 |
osh-native |
35 |
no-host |
configure.util-linux |
14,835 |
8,833 |
6,187 |
30.1 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,869 |
1,126 |
751 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,812 |
1,106 |
707 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,548 |
1,561 |
1,033 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,897 |
1,065 |
835 |
24.5 |
osh-native |
38 |
no-host |
configure.yash |
1,915 |
1,115 |
803 |
24.4 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
16 |
no-host |
hello-world |
49 |
33 |
16 |
17.6 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.3 |
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,514 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,104 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,430 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,174 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
39 |
no-host |
abuild-print-help |
3,112 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
1 |
no-host |
bin-true |
106,322 |
0 |
0 |
0 |
8 |
0 |
1,984 |
49 |
bash |
9 |
no-host |
bin-true |
66,389 |
0 |
0 |
0 |
8 |
0 |
1,981 |
40 |
dash |
17 |
no-host |
bin-true |
777,858 |
0 |
0 |
0 |
8 |
0 |
1,997 |
177 |
osh-cpython |
25 |
no-host |
bin-true |
127,800 |
0 |
0 |
0 |
16 |
0 |
1,995 |
45 |
osh-native |
33 |
no-host |
bin-true |
123,872 |
0 |
0 |
0 |
16 |
0 |
1,993 |
107 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,223,601 |
0 |
0 |
0 |
32,928 |
0 |
14,469 |
1,099 |
bash |
10 |
no-host |
configure.cpython |
2,240,199 |
0 |
0 |
0 |
32,992 |
0 |
14,600 |
1,013 |
dash |
18 |
no-host |
configure.cpython |
6,210,167 |
0 |
0 |
0 |
27,512 |
0 |
13,269 |
1,326 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,227,546 |
1 |
0 |
0 |
27,520 |
0 |
13,303 |
1,206 |
osh-native |
34 |
no-host |
configure.cpython |
2,213,566 |
0 |
0 |
0 |
27,520 |
0 |
13,204 |
928 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,997 |
0 |
0 |
0 |
5,120 |
0 |
1,958 |
169 |
bash |
12 |
no-host |
configure.ocaml |
391,339 |
0 |
0 |
0 |
5,112 |
0 |
1,872 |
146 |
dash |
20 |
no-host |
configure.ocaml |
646,524 |
0 |
0 |
0 |
5,112 |
0 |
1,860 |
181 |
osh-cpython |
28 |
no-host |
configure.ocaml |
412,529 |
0 |
0 |
0 |
5,120 |
0 |
1,927 |
169 |
osh-native |
36 |
no-host |
configure.ocaml |
412,192 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
255 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,543 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,469 |
0 |
0 |
0 |
96 |
0 |
47 |
0 |
dash |
21 |
no-host |
configure.tcc |
23,762 |
0 |
0 |
0 |
96 |
0 |
53 |
4 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,961 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native |
37 |
no-host |
configure.tcc |
6,909 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,103,781 |
0 |
0 |
0 |
42,400 |
0 |
18,636 |
1,207 |
bash |
11 |
no-host |
configure.util-linux |
2,260,510 |
1 |
0 |
0 |
42,584 |
0 |
17,509 |
1,169 |
dash |
19 |
no-host |
configure.util-linux |
5,385,878 |
4 |
0 |
0 |
39,112 |
0 |
16,941 |
1,254 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,006,280 |
0 |
0 |
0 |
39,128 |
0 |
16,967 |
1,006 |
osh-native |
35 |
no-host |
configure.util-linux |
1,991,510 |
0 |
0 |
0 |
39,136 |
0 |
16,988 |
966 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,142 |
0 |
0 |
0 |
4,120 |
0 |
871 |
153 |
bash |
14 |
no-host |
configure.yash |
243,910 |
0 |
0 |
0 |
3,720 |
0 |
867 |
73 |
dash |
22 |
no-host |
configure.yash |
386,927 |
0 |
0 |
0 |
3,728 |
0 |
855 |
84 |
osh-cpython |
30 |
no-host |
configure.yash |
257,520 |
0 |
0 |
0 |
3,736 |
0 |
850 |
89 |
osh-native |
38 |
no-host |
configure.yash |
257,801 |
0 |
0 |
0 |
3,736 |
0 |
850 |
85 |
osh-native-souffle |
0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
84 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,743 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
352 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native-souffle |
Shell and Host