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 |
489 |
22 |
21 |
24.79 |
1.14 |
bin-true |
no-host |
690 |
552 |
2,374 |
831 |
823 |
3.44 |
1.21 |
configure.cpython |
no-host |
15,692 |
15,767 |
30,478 |
15,957 |
15,915 |
1.94 |
1.02 |
configure.ocaml |
no-host |
3,956 |
3,888 |
4,835 |
3,960 |
3,940 |
1.22 |
1.00 |
configure.tcc |
no-host |
49 |
44 |
203 |
50 |
50 |
4.16 |
1.03 |
configure.util-linux |
no-host |
14,631 |
15,582 |
33,393 |
14,989 |
14,927 |
2.28 |
1.02 |
configure.yash |
no-host |
1,906 |
1,842 |
2,576 |
1,911 |
1,900 |
1.35 |
1.00 |
hello-world |
no-host |
2 |
1 |
54 |
3 |
3 |
33.35 |
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,580 |
1,136 |
23,515 |
3,178 |
3,040 |
9.11 |
1.23 |
bin-true |
no-host |
104,323 |
66,411 |
775,714 |
125,842 |
124,889 |
7.44 |
1.21 |
configure.cpython |
no-host |
2,222,647 |
2,240,791 |
6,232,158 |
2,225,029 |
2,204,843 |
2.80 |
1.00 |
configure.ocaml |
no-host |
410,632 |
391,284 |
646,607 |
413,519 |
411,995 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,537 |
5,495 |
23,774 |
6,983 |
6,903 |
3.64 |
1.07 |
configure.util-linux |
no-host |
2,097,126 |
2,265,243 |
5,373,940 |
2,009,022 |
1,989,029 |
2.56 |
0.96 |
configure.yash |
no-host |
256,608 |
245,191 |
387,387 |
258,133 |
257,331 |
1.51 |
1.01 |
hello-world |
no-host |
149 |
82 |
3,745 |
349 |
341 |
25.13 |
2.34 |
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 |
831 |
1 |
2 |
2.6 |
8.3 |
154,745 |
13,282 |
2,884 |
9,745 |
78,326 |
66,674 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,957 |
1 |
63 |
15.0 |
27.3 |
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,989 |
3 |
63 |
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,960 |
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.4 |
30,586 |
30,586 |
0 |
1,521 |
14,781 |
14,284 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,911 |
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 |
8.8 |
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 |
823 |
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,915 |
1 |
63 |
14.9 |
27.4 |
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,927 |
3 |
64 |
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,940 |
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,900 |
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 |
12 |
9 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
7 |
3 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
489 |
425 |
67 |
22.0 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
16 |
7 |
8.8 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
11 |
11 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
690 |
509 |
213 |
2.9 |
bash |
9 |
no-host |
bin-true |
552 |
422 |
140 |
1.3 |
dash |
17 |
no-host |
bin-true |
2,374 |
1,553 |
1,099 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
831 |
571 |
274 |
8.3 |
osh-native |
33 |
no-host |
bin-true |
823 |
594 |
241 |
7.7 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,692 |
9,392 |
6,706 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,767 |
9,534 |
6,664 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
30,478 |
18,454 |
14,018 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,957 |
9,310 |
6,923 |
27.3 |
osh-native |
34 |
no-host |
configure.cpython |
15,915 |
9,304 |
6,796 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,956 |
1,729 |
1,269 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,888 |
1,639 |
1,268 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,835 |
2,291 |
1,764 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,960 |
1,703 |
1,296 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,940 |
1,701 |
1,277 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
49 |
25 |
24 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
44 |
35 |
8 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
203 |
148 |
59 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
25 |
26 |
19.4 |
osh-native |
37 |
no-host |
configure.tcc |
50 |
28 |
22 |
19.3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,631 |
9,175 |
5,937 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
15,582 |
9,440 |
6,639 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
33,393 |
22,349 |
12,215 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,989 |
8,994 |
6,195 |
30.3 |
osh-native |
35 |
no-host |
configure.util-linux |
14,927 |
8,864 |
6,247 |
30.1 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,906 |
1,091 |
823 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,842 |
1,094 |
751 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,576 |
1,564 |
1,056 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,911 |
1,133 |
782 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,900 |
1,119 |
786 |
24.4 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
54 |
35 |
19 |
17.6 |
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,580 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,136 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,515 |
0 |
0 |
0 |
8 |
0 |
45 |
7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,178 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
39 |
no-host |
abuild-print-help |
3,040 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native-souffle |
1 |
no-host |
bin-true |
104,323 |
0 |
0 |
0 |
8 |
0 |
1,985 |
63 |
bash |
9 |
no-host |
bin-true |
66,411 |
0 |
0 |
0 |
8 |
0 |
1,990 |
36 |
dash |
17 |
no-host |
bin-true |
775,714 |
0 |
0 |
0 |
8 |
0 |
2,001 |
381 |
osh-cpython |
25 |
no-host |
bin-true |
125,842 |
0 |
0 |
0 |
16 |
0 |
1,987 |
102 |
osh-native |
33 |
no-host |
bin-true |
124,889 |
0 |
0 |
0 |
16 |
0 |
1,993 |
97 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,222,647 |
0 |
0 |
0 |
32,928 |
0 |
14,528 |
1,005 |
bash |
10 |
no-host |
configure.cpython |
2,240,791 |
0 |
0 |
0 |
32,992 |
0 |
14,655 |
1,091 |
dash |
18 |
no-host |
configure.cpython |
6,232,158 |
0 |
0 |
0 |
27,512 |
0 |
13,301 |
1,352 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,225,029 |
0 |
0 |
0 |
27,520 |
0 |
13,224 |
1,118 |
osh-native |
34 |
no-host |
configure.cpython |
2,204,843 |
1 |
0 |
0 |
27,520 |
0 |
13,245 |
1,006 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,632 |
0 |
0 |
0 |
5,120 |
0 |
1,953 |
171 |
bash |
12 |
no-host |
configure.ocaml |
391,284 |
0 |
0 |
0 |
5,112 |
0 |
1,864 |
170 |
dash |
20 |
no-host |
configure.ocaml |
646,607 |
0 |
0 |
0 |
5,112 |
0 |
1,858 |
173 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,519 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
182 |
osh-native |
36 |
no-host |
configure.ocaml |
411,995 |
0 |
0 |
0 |
5,120 |
0 |
1,935 |
146 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,537 |
0 |
0 |
0 |
104 |
0 |
49 |
4 |
bash |
13 |
no-host |
configure.tcc |
5,495 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,774 |
0 |
0 |
0 |
96 |
0 |
53 |
15 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,983 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
37 |
no-host |
configure.tcc |
6,903 |
0 |
0 |
0 |
104 |
0 |
46 |
1 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,097,126 |
1 |
0 |
0 |
42,400 |
0 |
18,625 |
1,195 |
bash |
11 |
no-host |
configure.util-linux |
2,265,243 |
1 |
0 |
0 |
42,592 |
0 |
17,373 |
1,127 |
dash |
19 |
no-host |
configure.util-linux |
5,373,940 |
16 |
0 |
0 |
39,144 |
0 |
16,959 |
1,314 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,009,022 |
1 |
0 |
0 |
39,128 |
0 |
16,972 |
982 |
osh-native |
35 |
no-host |
configure.util-linux |
1,989,029 |
0 |
0 |
0 |
39,136 |
0 |
16,930 |
1,156 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,608 |
0 |
0 |
0 |
4,120 |
0 |
870 |
161 |
bash |
14 |
no-host |
configure.yash |
245,191 |
0 |
0 |
0 |
3,720 |
0 |
871 |
94 |
dash |
22 |
no-host |
configure.yash |
387,387 |
1 |
0 |
0 |
3,728 |
0 |
849 |
100 |
osh-cpython |
30 |
no-host |
configure.yash |
258,133 |
0 |
0 |
0 |
3,736 |
0 |
848 |
100 |
osh-native |
38 |
no-host |
configure.yash |
257,331 |
0 |
0 |
0 |
3,736 |
0 |
849 |
83 |
osh-native-souffle |
0 |
no-host |
hello-world |
149 |
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,745 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
32 |
no-host |
hello-world |
341 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host