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 |
463 |
22 |
21 |
23.78 |
1.15 |
bin-true |
no-host |
695 |
545 |
2,308 |
821 |
817 |
3.32 |
1.18 |
configure.cpython |
no-host |
15,526 |
15,490 |
29,393 |
15,976 |
15,975 |
1.89 |
1.03 |
configure.ocaml |
no-host |
3,891 |
3,811 |
4,784 |
3,953 |
3,908 |
1.23 |
1.02 |
configure.tcc |
no-host |
49 |
42 |
198 |
50 |
49 |
4.04 |
1.03 |
configure.util-linux |
no-host |
14,402 |
15,296 |
32,905 |
14,783 |
14,836 |
2.28 |
1.03 |
configure.yash |
no-host |
1,867 |
1,827 |
2,533 |
1,884 |
1,874 |
1.36 |
1.01 |
hello-world |
no-host |
2 |
1 |
54 |
3 |
3 |
33.38 |
1.89 |
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,548 |
1,106 |
23,409 |
3,192 |
3,089 |
9.19 |
1.25 |
bin-true |
no-host |
108,351 |
66,467 |
773,978 |
123,860 |
122,838 |
7.14 |
1.14 |
configure.cpython |
no-host |
2,217,615 |
2,245,004 |
6,259,824 |
2,223,181 |
2,215,873 |
2.82 |
1.00 |
configure.ocaml |
no-host |
410,416 |
390,838 |
646,407 |
412,794 |
412,023 |
1.58 |
1.01 |
configure.tcc |
no-host |
6,530 |
5,481 |
23,715 |
6,980 |
6,931 |
3.63 |
1.07 |
configure.util-linux |
no-host |
2,105,936 |
2,264,444 |
5,381,123 |
2,001,965 |
1,995,861 |
2.56 |
0.95 |
configure.yash |
no-host |
256,570 |
244,586 |
387,700 |
257,639 |
258,129 |
1.51 |
1.00 |
hello-world |
no-host |
152 |
80 |
3,738 |
350 |
346 |
24.59 |
2.30 |
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 |
821 |
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,976 |
1 |
66 |
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,783 |
3 |
65 |
21.3 |
30.3 |
2,703,489 |
29,746 |
65,871 |
109,676 |
1,320,578 |
1,273,235 |
27,391 |
41 |
131,742 |
1 |
configure.ocaml |
no-host |
3,953 |
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 |
50 |
0 |
0 |
1.3 |
19.4 |
30,580 |
30,580 |
0 |
1,521 |
14,775 |
14,284 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,884 |
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 |
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 |
817 |
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,975 |
1 |
66 |
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,836 |
5 |
70 |
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,908 |
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 |
49 |
0 |
0 |
1.3 |
19.4 |
30,580 |
30,580 |
0 |
1,523 |
14,775 |
14,282 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,874 |
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 |
13 |
7 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
4 |
6 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
463 |
419 |
47 |
22.0 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
14 |
9 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
14 |
7 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
695 |
519 |
211 |
3.0 |
bash |
9 |
no-host |
bin-true |
545 |
417 |
139 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,308 |
1,505 |
1,066 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
821 |
571 |
265 |
8.1 |
osh-native |
33 |
no-host |
bin-true |
817 |
559 |
269 |
7.6 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,526 |
9,429 |
6,509 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,490 |
9,422 |
6,499 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,393 |
17,684 |
13,620 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,976 |
9,396 |
6,847 |
27.4 |
osh-native |
34 |
no-host |
configure.cpython |
15,975 |
9,282 |
6,760 |
27.3 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,891 |
1,685 |
1,238 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,811 |
1,691 |
1,138 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,784 |
2,280 |
1,720 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,953 |
1,714 |
1,276 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,908 |
1,668 |
1,276 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
49 |
27 |
22 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
31 |
12 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
198 |
136 |
65 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
35 |
16 |
19.4 |
osh-native |
37 |
no-host |
configure.tcc |
49 |
31 |
18 |
19.4 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,402 |
8,908 |
5,949 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,296 |
9,292 |
6,494 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
32,905 |
22,001 |
12,035 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,783 |
8,962 |
6,014 |
30.3 |
osh-native |
35 |
no-host |
configure.util-linux |
14,836 |
8,948 |
6,078 |
30.1 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,867 |
1,092 |
782 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,827 |
1,126 |
702 |
24.5 |
dash |
22 |
no-host |
configure.yash |
2,533 |
1,561 |
1,017 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,884 |
1,047 |
841 |
24.2 |
osh-native |
38 |
no-host |
configure.yash |
1,874 |
1,140 |
737 |
24.2 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
54 |
33 |
20 |
17.7 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
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,548 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,106 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,409 |
0 |
0 |
0 |
8 |
0 |
45 |
8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,192 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
39 |
no-host |
abuild-print-help |
3,089 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
1 |
no-host |
bin-true |
108,351 |
0 |
0 |
0 |
8 |
0 |
1,985 |
50 |
bash |
9 |
no-host |
bin-true |
66,467 |
0 |
0 |
0 |
8 |
0 |
1,987 |
44 |
dash |
17 |
no-host |
bin-true |
773,978 |
0 |
0 |
0 |
8 |
0 |
1,998 |
85 |
osh-cpython |
25 |
no-host |
bin-true |
123,860 |
0 |
0 |
0 |
16 |
0 |
1,985 |
65 |
osh-native |
33 |
no-host |
bin-true |
122,838 |
0 |
0 |
0 |
16 |
0 |
1,989 |
203 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,217,615 |
0 |
0 |
0 |
32,928 |
0 |
14,465 |
1,139 |
bash |
10 |
no-host |
configure.cpython |
2,245,004 |
0 |
0 |
0 |
32,992 |
0 |
14,661 |
1,113 |
dash |
18 |
no-host |
configure.cpython |
6,259,824 |
0 |
0 |
0 |
27,512 |
0 |
13,234 |
1,207 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,223,181 |
0 |
0 |
0 |
27,520 |
0 |
13,169 |
1,010 |
osh-native |
34 |
no-host |
configure.cpython |
2,215,873 |
1 |
0 |
0 |
27,520 |
0 |
13,182 |
994 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,416 |
0 |
0 |
0 |
5,120 |
0 |
1,951 |
164 |
bash |
12 |
no-host |
configure.ocaml |
390,838 |
0 |
0 |
0 |
5,112 |
0 |
1,872 |
144 |
dash |
20 |
no-host |
configure.ocaml |
646,407 |
0 |
0 |
0 |
5,112 |
0 |
1,850 |
196 |
osh-cpython |
28 |
no-host |
configure.ocaml |
412,794 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
207 |
osh-native |
36 |
no-host |
configure.ocaml |
412,023 |
0 |
0 |
0 |
5,120 |
0 |
1,928 |
168 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,530 |
0 |
0 |
0 |
104 |
0 |
48 |
4 |
bash |
13 |
no-host |
configure.tcc |
5,481 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,715 |
0 |
0 |
0 |
96 |
0 |
53 |
11 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,980 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
37 |
no-host |
configure.tcc |
6,931 |
0 |
0 |
0 |
104 |
0 |
47 |
0 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,105,936 |
0 |
0 |
0 |
42,400 |
0 |
18,641 |
1,103 |
bash |
11 |
no-host |
configure.util-linux |
2,264,444 |
1 |
0 |
0 |
42,584 |
0 |
17,416 |
1,079 |
dash |
19 |
no-host |
configure.util-linux |
5,381,123 |
9 |
0 |
0 |
39,112 |
0 |
16,903 |
1,491 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,001,965 |
1 |
0 |
0 |
39,128 |
0 |
16,948 |
1,004 |
osh-native |
35 |
no-host |
configure.util-linux |
1,995,861 |
0 |
0 |
0 |
39,136 |
0 |
16,940 |
1,080 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,570 |
0 |
0 |
0 |
4,120 |
0 |
870 |
93 |
bash |
14 |
no-host |
configure.yash |
244,586 |
0 |
0 |
0 |
3,720 |
0 |
872 |
76 |
dash |
22 |
no-host |
configure.yash |
387,700 |
0 |
0 |
0 |
3,728 |
0 |
854 |
94 |
osh-cpython |
30 |
no-host |
configure.yash |
257,639 |
0 |
0 |
0 |
3,736 |
0 |
848 |
80 |
osh-native |
38 |
no-host |
configure.yash |
258,129 |
0 |
0 |
0 |
3,736 |
0 |
850 |
87 |
osh-native-souffle |
0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
80 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,738 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
24 |
no-host |
hello-world |
350 |
0 |
0 |
0 |
16 |
0 |
1 |
2 |
osh-native |
32 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host