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 |
464 |
23 |
24.25 |
1.21 |
bin-true |
no-host |
674 |
541 |
2,247 |
815 |
3.33 |
1.21 |
configure.cpython |
no-host |
15,146 |
15,264 |
28,779 |
15,400 |
1.90 |
1.02 |
configure.ocaml |
no-host |
3,849 |
3,757 |
4,668 |
3,863 |
1.21 |
1.00 |
configure.tcc |
no-host |
47 |
42 |
196 |
48 |
4.14 |
1.02 |
configure.util-linux |
no-host |
14,138 |
15,003 |
31,603 |
14,549 |
2.24 |
1.03 |
configure.yash |
no-host |
1,840 |
1,793 |
2,472 |
1,843 |
1.34 |
1.00 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
31.60 |
1.92 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,544 |
1,114 |
23,245 |
3,227 |
9.14 |
1.27 |
bin-true |
no-host |
103,350 |
66,439 |
753,516 |
127,147 |
7.29 |
1.23 |
configure.cpython |
no-host |
2,220,539 |
2,238,856 |
6,153,149 |
2,234,786 |
2.77 |
1.01 |
configure.ocaml |
no-host |
410,194 |
391,009 |
638,279 |
413,576 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,592 |
5,482 |
23,227 |
6,994 |
3.52 |
1.06 |
configure.util-linux |
no-host |
2,098,187 |
2,259,423 |
5,320,980 |
2,005,212 |
2.54 |
0.96 |
configure.yash |
no-host |
256,654 |
244,473 |
385,062 |
258,909 |
1.50 |
1.01 |
hello-world |
no-host |
152 |
81 |
3,653 |
346 |
24.03 |
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.3 |
3,723 |
3,723 |
0 |
684 |
1,875 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
815 |
1 |
2 |
2.7 |
7.9 |
154,688 |
12,992 |
2,799 |
11,737 |
78,344 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,400 |
1 |
61 |
15.8 |
27.4 |
1,772,604 |
49,197 |
28,508 |
101,770 |
908,051 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,549 |
3 |
61 |
22.2 |
30.1 |
2,703,268 |
44,766 |
65,792 |
126,121 |
1,320,495 |
1,256,652 |
49,081 |
41 |
131,584 |
1 |
configure.ocaml |
no-host |
3,863 |
1 |
2 |
2.7 |
20.4 |
150,030 |
11,045 |
5,138 |
8,602 |
71,629 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.3 |
30,523 |
30,523 |
0 |
1,599 |
14,799 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,843 |
1 |
2 |
2.6 |
24.2 |
139,687 |
7,964 |
6,600 |
7,554 |
70,301 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
9.0 |
116,266 |
64,455 |
42,663 |
4,610 |
54,544 |
57,112 |
478 |
3 |
85,326 |
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 |
6 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
4 |
6 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
464 |
422 |
46 |
21.5 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
10 |
13 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
674 |
492 |
216 |
3.0 |
bash |
9 |
no-host |
bin-true |
541 |
416 |
136 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,247 |
1,483 |
1,020 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
815 |
573 |
256 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,146 |
9,166 |
6,383 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,264 |
9,081 |
6,599 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,779 |
17,390 |
13,236 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,400 |
9,131 |
6,535 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,849 |
1,719 |
1,169 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,757 |
1,586 |
1,189 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,668 |
2,287 |
1,586 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,863 |
1,692 |
1,211 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
23 |
25 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
28 |
14 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
196 |
129 |
71 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
48 |
34 |
14 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,138 |
8,866 |
5,739 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,003 |
9,187 |
6,309 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,603 |
21,211 |
11,476 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,549 |
8,871 |
5,875 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,840 |
1,073 |
775 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,793 |
1,043 |
753 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,472 |
1,557 |
957 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,843 |
1,023 |
824 |
24.2 |
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 |
16 |
17.3 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.3 |
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,544 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,114 |
0 |
0 |
0 |
8 |
0 |
39 |
5 |
dash |
23 |
no-host |
abuild-print-help |
23,245 |
0 |
0 |
0 |
8 |
0 |
47 |
8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,227 |
0 |
0 |
0 |
16 |
0 |
41 |
5 |
osh-native |
1 |
no-host |
bin-true |
103,350 |
0 |
0 |
0 |
8 |
0 |
1,990 |
41 |
bash |
9 |
no-host |
bin-true |
66,439 |
0 |
0 |
0 |
8 |
0 |
1,985 |
31 |
dash |
17 |
no-host |
bin-true |
753,516 |
0 |
0 |
0 |
8 |
0 |
2,000 |
222 |
osh-cpython |
25 |
no-host |
bin-true |
127,147 |
0 |
0 |
0 |
16 |
0 |
1,991 |
70 |
osh-native |
2 |
no-host |
configure.cpython |
2,220,539 |
0 |
0 |
0 |
32,928 |
0 |
14,613 |
1,051 |
bash |
10 |
no-host |
configure.cpython |
2,238,856 |
0 |
0 |
0 |
32,992 |
0 |
14,668 |
1,087 |
dash |
18 |
no-host |
configure.cpython |
6,153,149 |
0 |
0 |
0 |
27,512 |
0 |
13,364 |
1,386 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,234,786 |
0 |
0 |
0 |
27,520 |
0 |
13,195 |
1,151 |
osh-native |
4 |
no-host |
configure.ocaml |
410,194 |
0 |
0 |
0 |
5,120 |
0 |
1,945 |
192 |
bash |
12 |
no-host |
configure.ocaml |
391,009 |
0 |
0 |
0 |
5,112 |
0 |
1,872 |
142 |
dash |
20 |
no-host |
configure.ocaml |
638,279 |
1 |
0 |
0 |
5,112 |
0 |
1,862 |
181 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,576 |
0 |
0 |
0 |
5,120 |
0 |
1,927 |
161 |
osh-native |
5 |
no-host |
configure.tcc |
6,592 |
0 |
0 |
0 |
104 |
0 |
49 |
0 |
bash |
13 |
no-host |
configure.tcc |
5,482 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,227 |
0 |
0 |
0 |
96 |
0 |
52 |
5 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,994 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
3 |
no-host |
configure.util-linux |
2,098,187 |
0 |
0 |
0 |
42,400 |
0 |
18,397 |
1,038 |
bash |
11 |
no-host |
configure.util-linux |
2,259,423 |
1 |
0 |
0 |
42,584 |
0 |
17,522 |
1,104 |
dash |
19 |
no-host |
configure.util-linux |
5,320,980 |
15 |
0 |
0 |
39,112 |
0 |
17,039 |
1,204 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,005,212 |
0 |
0 |
0 |
39,120 |
0 |
17,019 |
1,049 |
osh-native |
6 |
no-host |
configure.yash |
256,654 |
0 |
0 |
0 |
4,120 |
0 |
867 |
245 |
bash |
14 |
no-host |
configure.yash |
244,473 |
0 |
0 |
0 |
3,720 |
0 |
867 |
86 |
dash |
22 |
no-host |
configure.yash |
385,062 |
0 |
0 |
0 |
3,728 |
0 |
856 |
101 |
osh-cpython |
30 |
no-host |
configure.yash |
258,909 |
0 |
0 |
0 |
3,736 |
0 |
852 |
74 |
osh-native |
0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
81 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,653 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host