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 |
448 |
22 |
21 |
23.02 |
1.12 |
bin-true |
no-host |
683 |
535 |
2,234 |
817 |
811 |
3.27 |
1.20 |
configure.cpython |
no-host |
15,145 |
15,048 |
28,661 |
15,332 |
15,365 |
1.89 |
1.01 |
configure.ocaml |
no-host |
3,820 |
3,727 |
4,631 |
3,816 |
3,802 |
1.21 |
1.00 |
configure.tcc |
no-host |
48 |
42 |
193 |
49 |
48 |
4.06 |
1.02 |
configure.util-linux |
no-host |
14,027 |
14,804 |
31,317 |
14,381 |
14,195 |
2.23 |
1.03 |
configure.yash |
no-host |
1,800 |
1,756 |
2,499 |
1,810 |
1,814 |
1.39 |
1.01 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
3 |
30.68 |
1.79 |
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,572 |
1,083 |
23,302 |
3,169 |
3,085 |
9.06 |
1.23 |
bin-true |
no-host |
109,394 |
66,447 |
761,640 |
126,788 |
125,888 |
6.96 |
1.16 |
configure.cpython |
no-host |
2,220,220 |
2,234,115 |
6,196,969 |
2,235,337 |
2,219,582 |
2.79 |
1.01 |
configure.ocaml |
no-host |
410,444 |
390,577 |
646,052 |
412,414 |
412,402 |
1.57 |
1.00 |
configure.tcc |
no-host |
6,548 |
5,493 |
23,512 |
7,006 |
6,956 |
3.59 |
1.07 |
configure.util-linux |
no-host |
2,100,353 |
2,258,805 |
5,334,002 |
1,998,019 |
1,987,066 |
2.54 |
0.95 |
configure.yash |
no-host |
256,404 |
245,131 |
387,149 |
257,857 |
258,305 |
1.51 |
1.01 |
hello-world |
no-host |
152 |
82 |
3,741 |
354 |
344 |
24.61 |
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,758 |
3,758 |
0 |
694 |
1,852 |
1,212 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
817 |
1 |
2 |
2.6 |
8.1 |
154,723 |
13,197 |
2,854 |
9,744 |
78,321 |
66,658 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,332 |
1 |
60 |
15.0 |
27.4 |
1,772,705 |
49,831 |
28,564 |
86,397 |
908,073 |
778,235 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,381 |
3 |
59 |
21.3 |
30.1 |
2,703,473 |
29,124 |
65,868 |
109,675 |
1,320,579 |
1,273,219 |
27,391 |
41 |
131,736 |
1 |
configure.ocaml |
no-host |
3,816 |
1 |
2 |
2.6 |
20.6 |
150,079 |
11,029 |
5,199 |
7,531 |
71,606 |
70,942 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,564 |
30,564 |
0 |
1,520 |
14,776 |
14,268 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,810 |
1 |
2 |
2.6 |
25.2 |
139,732 |
7,997 |
6,656 |
6,336 |
70,281 |
63,115 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,307 |
64,507 |
42,717 |
4,571 |
54,521 |
57,215 |
270 |
3 |
85,434 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.9 |
3,757 |
3,757 |
0 |
695 |
1,852 |
1,210 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
811 |
1 |
2 |
2.6 |
7.9 |
154,722 |
12,985 |
2,792 |
9,745 |
78,321 |
66,656 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,365 |
2 |
62 |
15.0 |
27.4 |
1,772,704 |
49,082 |
28,502 |
86,398 |
908,073 |
778,233 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,195 |
3 |
59 |
21.3 |
30.4 |
2,703,473 |
42,718 |
65,805 |
109,677 |
1,320,579 |
1,273,217 |
27,391 |
41 |
131,610 |
1 |
configure.ocaml |
no-host |
3,802 |
1 |
2 |
2.6 |
20.4 |
150,079 |
10,966 |
5,136 |
7,533 |
71,606 |
70,940 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.3 |
30,564 |
30,564 |
0 |
1,522 |
14,776 |
14,266 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,814 |
1 |
2 |
2.6 |
24.4 |
139,732 |
7,935 |
6,594 |
6,338 |
70,281 |
63,113 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.7 |
116,306 |
64,445 |
42,655 |
4,572 |
54,521 |
57,213 |
270 |
3 |
85,310 |
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 |
14 |
6 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.3 |
dash |
23 |
no-host |
abuild-print-help |
448 |
398 |
53 |
22.0 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
11 |
11 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
12 |
10 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
683 |
504 |
209 |
3.0 |
bash |
9 |
no-host |
bin-true |
535 |
411 |
134 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,234 |
1,460 |
1,031 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
817 |
573 |
259 |
8.1 |
osh-native |
33 |
no-host |
bin-true |
811 |
588 |
239 |
7.9 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,145 |
8,876 |
6,675 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,048 |
9,046 |
6,419 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,661 |
17,707 |
12,823 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,332 |
9,044 |
6,552 |
27.4 |
osh-native |
34 |
no-host |
configure.cpython |
15,365 |
8,986 |
6,494 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,820 |
1,608 |
1,242 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,727 |
1,536 |
1,210 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,631 |
2,135 |
1,703 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,816 |
1,666 |
1,187 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,802 |
1,630 |
1,209 |
20.4 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
31 |
17 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
25 |
17 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
193 |
116 |
80 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
23 |
26 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
48 |
37 |
11 |
19.3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,027 |
8,907 |
5,595 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,804 |
9,145 |
6,161 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,317 |
20,882 |
11,523 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,381 |
8,556 |
6,019 |
30.1 |
osh-native |
35 |
no-host |
configure.util-linux |
14,195 |
8,501 |
5,890 |
30.4 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,800 |
1,064 |
743 |
24.5 |
bash |
14 |
no-host |
configure.yash |
1,756 |
1,028 |
731 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,499 |
1,532 |
1,011 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,810 |
1,044 |
770 |
25.2 |
osh-native |
38 |
no-host |
configure.yash |
1,814 |
1,086 |
732 |
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 |
29 |
20 |
17.5 |
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,572 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,083 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,302 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,169 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
39 |
no-host |
abuild-print-help |
3,085 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
1 |
no-host |
bin-true |
109,394 |
0 |
0 |
0 |
8 |
0 |
1,989 |
61 |
bash |
9 |
no-host |
bin-true |
66,447 |
0 |
0 |
0 |
8 |
0 |
1,989 |
46 |
dash |
17 |
no-host |
bin-true |
761,640 |
0 |
0 |
0 |
8 |
0 |
2,002 |
114 |
osh-cpython |
25 |
no-host |
bin-true |
126,788 |
0 |
0 |
0 |
16 |
0 |
1,989 |
58 |
osh-native |
33 |
no-host |
bin-true |
125,888 |
0 |
0 |
0 |
16 |
0 |
1,995 |
103 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,220,220 |
0 |
0 |
0 |
32,928 |
0 |
14,525 |
1,136 |
bash |
10 |
no-host |
configure.cpython |
2,234,115 |
0 |
0 |
0 |
32,992 |
0 |
14,644 |
1,052 |
dash |
18 |
no-host |
configure.cpython |
6,196,969 |
2 |
0 |
0 |
27,512 |
0 |
13,279 |
1,152 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,235,337 |
0 |
0 |
0 |
27,520 |
0 |
13,154 |
1,205 |
osh-native |
34 |
no-host |
configure.cpython |
2,219,582 |
0 |
0 |
0 |
27,520 |
0 |
13,284 |
1,137 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,444 |
0 |
0 |
0 |
5,120 |
0 |
1,948 |
182 |
bash |
12 |
no-host |
configure.ocaml |
390,577 |
0 |
0 |
0 |
5,112 |
0 |
1,911 |
252 |
dash |
20 |
no-host |
configure.ocaml |
646,052 |
0 |
0 |
0 |
5,112 |
0 |
1,854 |
223 |
osh-cpython |
28 |
no-host |
configure.ocaml |
412,414 |
0 |
0 |
0 |
5,120 |
0 |
1,932 |
201 |
osh-native |
36 |
no-host |
configure.ocaml |
412,402 |
0 |
0 |
0 |
5,120 |
0 |
1,934 |
141 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,548 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,493 |
0 |
0 |
0 |
96 |
0 |
47 |
7 |
dash |
21 |
no-host |
configure.tcc |
23,512 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,006 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
37 |
no-host |
configure.tcc |
6,956 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,100,353 |
0 |
0 |
0 |
42,400 |
0 |
18,697 |
985 |
bash |
11 |
no-host |
configure.util-linux |
2,258,805 |
0 |
0 |
0 |
42,584 |
0 |
17,489 |
1,000 |
dash |
19 |
no-host |
configure.util-linux |
5,334,002 |
8 |
0 |
0 |
39,128 |
0 |
16,981 |
1,252 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,998,019 |
0 |
0 |
0 |
39,128 |
0 |
16,972 |
1,097 |
osh-native |
35 |
no-host |
configure.util-linux |
1,987,066 |
0 |
0 |
0 |
39,136 |
0 |
17,132 |
1,014 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,404 |
0 |
0 |
0 |
4,120 |
0 |
872 |
108 |
bash |
14 |
no-host |
configure.yash |
245,131 |
0 |
0 |
0 |
3,720 |
0 |
867 |
79 |
dash |
22 |
no-host |
configure.yash |
387,149 |
0 |
0 |
0 |
3,728 |
0 |
852 |
102 |
osh-cpython |
30 |
no-host |
configure.yash |
257,857 |
0 |
0 |
0 |
3,736 |
0 |
850 |
75 |
osh-native |
38 |
no-host |
configure.yash |
258,305 |
0 |
0 |
0 |
3,736 |
0 |
852 |
52 |
osh-native-souffle |
0 |
no-host |
hello-world |
152 |
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,741 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
354 |
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