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 |
10 |
450 |
23 |
23.16 |
1.17 |
bin-true |
no-host |
689 |
548 |
2,236 |
815 |
3.24 |
1.18 |
configure.cpython |
no-host |
15,276 |
15,015 |
28,434 |
15,176 |
1.86 |
0.99 |
configure.ocaml |
no-host |
3,806 |
3,718 |
4,593 |
3,803 |
1.21 |
1.00 |
configure.tcc |
no-host |
49 |
42 |
191 |
49 |
3.88 |
1.00 |
configure.util-linux |
no-host |
14,036 |
14,873 |
30,991 |
14,405 |
2.21 |
1.03 |
configure.yash |
no-host |
1,829 |
1,760 |
2,427 |
1,819 |
1.33 |
0.99 |
hello-world |
no-host |
1 |
1 |
47 |
3 |
31.57 |
1.88 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,522 |
1,115 |
23,411 |
3,210 |
9.28 |
1.27 |
bin-true |
no-host |
107,367 |
66,429 |
753,455 |
126,140 |
7.02 |
1.17 |
configure.cpython |
no-host |
2,214,901 |
2,247,502 |
6,151,054 |
2,232,024 |
2.78 |
1.01 |
configure.ocaml |
no-host |
410,250 |
390,646 |
639,059 |
413,758 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,531 |
5,476 |
23,233 |
6,976 |
3.56 |
1.07 |
configure.util-linux |
no-host |
2,101,812 |
2,257,109 |
5,314,326 |
2,011,772 |
2.53 |
0.96 |
configure.yash |
no-host |
256,202 |
245,011 |
385,302 |
258,189 |
1.50 |
1.01 |
hello-world |
no-host |
151 |
81 |
3,656 |
345 |
24.21 |
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,722 |
3,722 |
0 |
684 |
1,874 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
815 |
1 |
2 |
2.7 |
8.1 |
154,687 |
12,991 |
2,798 |
11,737 |
78,343 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,176 |
1 |
61 |
15.8 |
27.5 |
1,772,603 |
49,196 |
28,507 |
101,770 |
908,050 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,405 |
2 |
60 |
22.2 |
30.1 |
2,703,267 |
44,765 |
65,791 |
126,121 |
1,320,494 |
1,256,652 |
49,081 |
41 |
131,582 |
1 |
configure.ocaml |
no-host |
3,803 |
1 |
2 |
2.7 |
20.4 |
150,029 |
11,044 |
5,137 |
8,602 |
71,628 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,522 |
30,522 |
0 |
1,599 |
14,798 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,819 |
1 |
2 |
2.6 |
24.4 |
139,686 |
7,963 |
6,599 |
7,554 |
70,300 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.8 |
116,265 |
64,454 |
42,662 |
4,610 |
54,543 |
57,112 |
478 |
3 |
85,324 |
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 |
3 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
5 |
5 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
450 |
419 |
34 |
21.5 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
17 |
6 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
689 |
500 |
221 |
2.9 |
bash |
9 |
no-host |
bin-true |
548 |
422 |
136 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,236 |
1,451 |
1,042 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
815 |
576 |
253 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,276 |
9,110 |
6,567 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,015 |
9,100 |
6,338 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
28,434 |
17,432 |
12,811 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,176 |
9,052 |
6,384 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,806 |
1,568 |
1,274 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,718 |
1,580 |
1,156 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,593 |
2,154 |
1,641 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,803 |
1,619 |
1,222 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
49 |
34 |
16 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
25 |
18 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
191 |
143 |
51 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
35 |
15 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,036 |
8,825 |
5,694 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,873 |
9,139 |
6,227 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
30,991 |
20,827 |
11,226 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,405 |
8,624 |
5,987 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,829 |
1,021 |
816 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,760 |
1,043 |
720 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,427 |
1,567 |
901 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,819 |
1,075 |
748 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
16 |
no-host |
hello-world |
47 |
32 |
15 |
17.3 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
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,522 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,115 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,411 |
0 |
0 |
0 |
8 |
0 |
47 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,210 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
osh-native |
1 |
no-host |
bin-true |
107,367 |
0 |
0 |
0 |
8 |
0 |
1,991 |
174 |
bash |
9 |
no-host |
bin-true |
66,429 |
0 |
0 |
0 |
8 |
0 |
1,988 |
88 |
dash |
17 |
no-host |
bin-true |
753,455 |
0 |
0 |
0 |
8 |
0 |
1,994 |
294 |
osh-cpython |
25 |
no-host |
bin-true |
126,140 |
0 |
0 |
0 |
16 |
0 |
1,984 |
111 |
osh-native |
2 |
no-host |
configure.cpython |
2,214,901 |
0 |
0 |
0 |
32,928 |
0 |
14,545 |
1,090 |
bash |
10 |
no-host |
configure.cpython |
2,247,502 |
0 |
0 |
0 |
32,992 |
0 |
14,586 |
1,228 |
dash |
18 |
no-host |
configure.cpython |
6,151,054 |
0 |
0 |
0 |
27,512 |
0 |
13,188 |
1,159 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,232,024 |
0 |
0 |
0 |
27,520 |
0 |
13,328 |
914 |
osh-native |
4 |
no-host |
configure.ocaml |
410,250 |
0 |
0 |
0 |
5,120 |
0 |
1,965 |
179 |
bash |
12 |
no-host |
configure.ocaml |
390,646 |
0 |
0 |
0 |
5,112 |
0 |
1,864 |
149 |
dash |
20 |
no-host |
configure.ocaml |
639,059 |
0 |
0 |
0 |
5,112 |
0 |
1,868 |
205 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,758 |
0 |
0 |
0 |
5,120 |
0 |
1,932 |
185 |
osh-native |
5 |
no-host |
configure.tcc |
6,531 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,476 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,233 |
0 |
0 |
0 |
96 |
0 |
53 |
16 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,976 |
0 |
0 |
0 |
104 |
0 |
47 |
5 |
osh-native |
3 |
no-host |
configure.util-linux |
2,101,812 |
0 |
0 |
0 |
42,408 |
0 |
18,629 |
1,194 |
bash |
11 |
no-host |
configure.util-linux |
2,257,109 |
0 |
0 |
0 |
42,592 |
0 |
17,400 |
1,018 |
dash |
19 |
no-host |
configure.util-linux |
5,314,326 |
13 |
0 |
0 |
39,112 |
0 |
17,053 |
1,107 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,011,772 |
0 |
0 |
0 |
39,120 |
0 |
17,075 |
1,121 |
osh-native |
6 |
no-host |
configure.yash |
256,202 |
0 |
0 |
0 |
4,120 |
0 |
873 |
82 |
bash |
14 |
no-host |
configure.yash |
245,011 |
0 |
0 |
0 |
3,728 |
0 |
867 |
91 |
dash |
22 |
no-host |
configure.yash |
385,302 |
0 |
0 |
0 |
3,728 |
0 |
860 |
96 |
osh-cpython |
30 |
no-host |
configure.yash |
258,189 |
0 |
0 |
0 |
3,736 |
0 |
854 |
81 |
osh-native |
0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
81 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
dash |
16 |
no-host |
hello-world |
3,656 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
345 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host