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 |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
19 |
9 |
453 |
22 |
24.28 |
1.20 |
bin-true |
no-host |
669 |
543 |
2,214 |
827 |
3.31 |
1.23 |
configure.cpython |
no-host |
14,863 |
14,962 |
28,242 |
15,164 |
1.90 |
1.02 |
configure.ocaml |
no-host |
3,778 |
3,704 |
4,571 |
3,794 |
1.21 |
1.00 |
configure.tcc |
no-host |
47 |
41 |
190 |
48 |
4.02 |
1.02 |
configure.util-linux |
no-host |
13,878 |
14,744 |
30,803 |
14,291 |
2.22 |
1.03 |
configure.yash |
no-host |
1,806 |
1,758 |
2,426 |
1,814 |
1.34 |
1.00 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
29.23 |
1.73 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,521 |
1,115 |
23,447 |
3,207 |
9.30 |
1.27 |
bin-true |
no-host |
103,351 |
66,396 |
755,136 |
128,198 |
7.31 |
1.24 |
configure.cpython |
no-host |
2,213,297 |
2,241,853 |
6,106,915 |
2,232,097 |
2.76 |
1.01 |
configure.ocaml |
no-host |
410,624 |
391,137 |
637,882 |
413,669 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,564 |
5,478 |
23,138 |
6,993 |
3.52 |
1.07 |
configure.util-linux |
no-host |
2,094,892 |
2,265,620 |
5,313,230 |
2,003,921 |
2.54 |
0.96 |
configure.yash |
no-host |
256,323 |
244,626 |
384,606 |
258,787 |
1.50 |
1.01 |
hello-world |
no-host |
152 |
82 |
3,654 |
347 |
24.04 |
2.28 |
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.3 |
6.2 |
3,728 |
3,728 |
0 |
684 |
1,880 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
827 |
1 |
2 |
2.7 |
7.9 |
154,693 |
12,995 |
2,802 |
11,737 |
78,349 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,164 |
1 |
59 |
15.8 |
27.4 |
1,772,609 |
49,200 |
28,511 |
101,770 |
908,056 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,291 |
2 |
58 |
22.2 |
30.0 |
2,703,273 |
42,774 |
65,815 |
126,121 |
1,320,500 |
1,256,652 |
49,081 |
41 |
131,630 |
1 |
configure.ocaml |
no-host |
3,794 |
0 |
2 |
2.7 |
20.6 |
150,035 |
11,048 |
5,141 |
8,602 |
71,634 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.3 |
30,528 |
30,528 |
0 |
1,599 |
14,804 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,814 |
1 |
2 |
2.6 |
24.4 |
139,692 |
7,967 |
6,603 |
7,554 |
70,306 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.8 |
116,271 |
64,458 |
42,666 |
4,610 |
54,549 |
57,112 |
478 |
3 |
85,332 |
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 |
17 |
2 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
1 |
3.3 |
dash |
23 |
no-host |
abuild-print-help |
453 |
391 |
65 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
19 |
4 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
669 |
491 |
212 |
3.0 |
bash |
9 |
no-host |
bin-true |
543 |
406 |
146 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,214 |
1,473 |
996 |
17.2 |
osh-cpython |
25 |
no-host |
bin-true |
827 |
574 |
267 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
14,863 |
8,798 |
6,455 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
14,962 |
9,099 |
6,277 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,242 |
17,220 |
12,825 |
27.1 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,164 |
8,966 |
6,467 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,778 |
1,606 |
1,199 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,704 |
1,591 |
1,132 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,571 |
2,119 |
1,653 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,794 |
1,642 |
1,192 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
18 |
30 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
21 |
21 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
190 |
146 |
48 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
48 |
28 |
21 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
13,878 |
8,802 |
5,551 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,744 |
9,070 |
6,155 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
30,803 |
20,511 |
11,353 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,291 |
8,650 |
5,836 |
30.0 |
osh-native |
6 |
no-host |
configure.yash |
1,806 |
1,010 |
804 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,758 |
1,058 |
703 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,426 |
1,448 |
1,020 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,814 |
1,039 |
779 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
48 |
32 |
15 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.2 |
osh-native |
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,521 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,115 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,447 |
0 |
0 |
0 |
8 |
0 |
47 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,207 |
0 |
0 |
0 |
16 |
0 |
41 |
5 |
osh-native |
1 |
no-host |
bin-true |
103,351 |
0 |
0 |
0 |
8 |
0 |
1,990 |
46 |
bash |
9 |
no-host |
bin-true |
66,396 |
0 |
0 |
0 |
8 |
0 |
1,988 |
93 |
dash |
17 |
no-host |
bin-true |
755,136 |
0 |
0 |
0 |
8 |
0 |
1,991 |
187 |
osh-cpython |
25 |
no-host |
bin-true |
128,198 |
0 |
0 |
0 |
16 |
0 |
1,992 |
168 |
osh-native |
2 |
no-host |
configure.cpython |
2,213,297 |
0 |
0 |
0 |
32,928 |
0 |
14,494 |
1,129 |
bash |
10 |
no-host |
configure.cpython |
2,241,853 |
1 |
0 |
0 |
32,992 |
0 |
14,519 |
1,189 |
dash |
18 |
no-host |
configure.cpython |
6,106,915 |
3 |
0 |
0 |
27,512 |
0 |
13,301 |
1,162 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,232,097 |
0 |
0 |
0 |
27,520 |
0 |
13,365 |
1,203 |
osh-native |
4 |
no-host |
configure.ocaml |
410,624 |
0 |
0 |
0 |
5,120 |
0 |
1,952 |
164 |
bash |
12 |
no-host |
configure.ocaml |
391,137 |
0 |
0 |
0 |
5,112 |
0 |
1,896 |
158 |
dash |
20 |
no-host |
configure.ocaml |
637,882 |
1 |
0 |
0 |
5,112 |
0 |
1,866 |
159 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,669 |
0 |
0 |
0 |
5,120 |
0 |
1,929 |
178 |
osh-native |
5 |
no-host |
configure.tcc |
6,564 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,478 |
0 |
0 |
0 |
96 |
0 |
47 |
0 |
dash |
21 |
no-host |
configure.tcc |
23,138 |
0 |
0 |
0 |
96 |
0 |
53 |
6 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,993 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
3 |
no-host |
configure.util-linux |
2,094,892 |
1 |
0 |
0 |
42,400 |
0 |
18,563 |
1,047 |
bash |
11 |
no-host |
configure.util-linux |
2,265,620 |
2 |
0 |
0 |
42,584 |
0 |
17,420 |
1,079 |
dash |
19 |
no-host |
configure.util-linux |
5,313,230 |
11 |
0 |
0 |
39,120 |
0 |
17,013 |
1,341 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,003,921 |
1 |
0 |
0 |
39,120 |
0 |
17,070 |
1,142 |
osh-native |
6 |
no-host |
configure.yash |
256,323 |
0 |
0 |
0 |
4,120 |
0 |
871 |
68 |
bash |
14 |
no-host |
configure.yash |
244,626 |
0 |
0 |
0 |
3,720 |
0 |
868 |
88 |
dash |
22 |
no-host |
configure.yash |
384,606 |
0 |
0 |
0 |
3,728 |
0 |
856 |
110 |
osh-cpython |
30 |
no-host |
configure.yash |
258,787 |
0 |
0 |
0 |
3,736 |
0 |
852 |
78 |
osh-native |
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,654 |
0 |
0 |
0 |
8 |
0 |
7 |
7 |
osh-cpython |
24 |
no-host |
hello-world |
347 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host