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 |
20 |
10 |
456 |
23 |
23.37 |
1.16 |
bin-true |
no-host |
695 |
545 |
2,224 |
821 |
3.20 |
1.18 |
configure.cpython |
no-host |
15,176 |
15,136 |
28,839 |
15,392 |
1.90 |
1.01 |
configure.ocaml |
no-host |
3,812 |
3,798 |
4,684 |
3,863 |
1.23 |
1.01 |
configure.tcc |
no-host |
49 |
41 |
193 |
49 |
3.96 |
1.02 |
configure.util-linux |
no-host |
14,180 |
15,057 |
31,329 |
14,654 |
2.21 |
1.03 |
configure.yash |
no-host |
1,844 |
1,792 |
2,494 |
1,850 |
1.35 |
1.00 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
32.29 |
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,505 |
1,096 |
23,605 |
3,226 |
9.42 |
1.29 |
bin-true |
no-host |
105,332 |
67,404 |
745,651 |
128,197 |
7.08 |
1.22 |
configure.cpython |
no-host |
2,217,255 |
2,241,019 |
6,130,102 |
2,231,239 |
2.76 |
1.01 |
configure.ocaml |
no-host |
410,755 |
390,488 |
638,798 |
413,626 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,542 |
5,475 |
23,268 |
6,971 |
3.56 |
1.07 |
configure.util-linux |
no-host |
2,095,614 |
2,264,474 |
5,316,710 |
2,016,818 |
2.54 |
0.96 |
configure.yash |
no-host |
256,346 |
245,184 |
384,970 |
258,663 |
1.50 |
1.01 |
hello-world |
no-host |
154 |
80 |
3,667 |
346 |
23.81 |
2.25 |
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,873 |
1,165 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
821 |
1 |
2 |
2.7 |
8.0 |
154,687 |
12,991 |
2,798 |
11,737 |
78,342 |
64,608 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,392 |
1 |
62 |
15.8 |
27.5 |
1,772,603 |
49,196 |
28,507 |
101,770 |
908,049 |
762,784 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,654 |
3 |
61 |
22.2 |
30.3 |
2,703,267 |
44,765 |
65,791 |
126,121 |
1,320,493 |
1,256,653 |
49,081 |
41 |
131,582 |
1 |
configure.ocaml |
no-host |
3,863 |
1 |
2 |
2.7 |
20.6 |
150,029 |
11,044 |
5,137 |
8,602 |
71,627 |
69,800 |
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,797 |
14,126 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,850 |
1 |
2 |
2.6 |
24.4 |
139,686 |
7,963 |
6,599 |
7,554 |
70,299 |
61,833 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
9.0 |
116,265 |
64,454 |
42,662 |
4,610 |
54,542 |
57,113 |
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 |
20 |
14 |
6 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
456 |
409 |
50 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
11 |
12 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
695 |
513 |
216 |
2.9 |
bash |
9 |
no-host |
bin-true |
545 |
420 |
134 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,224 |
1,463 |
1,023 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
821 |
589 |
246 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,176 |
9,146 |
6,433 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,136 |
9,170 |
6,390 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,839 |
17,339 |
13,375 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,392 |
9,121 |
6,544 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,812 |
1,619 |
1,231 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,798 |
1,673 |
1,144 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,684 |
2,244 |
1,644 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,863 |
1,636 |
1,265 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
49 |
26 |
23 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
41 |
36 |
5 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
193 |
138 |
58 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
38 |
12 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,180 |
8,941 |
5,726 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,057 |
9,093 |
6,444 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,329 |
20,685 |
11,739 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,654 |
8,794 |
6,058 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,844 |
1,021 |
821 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,792 |
1,075 |
721 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,494 |
1,565 |
973 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,850 |
1,083 |
771 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
29 |
20 |
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,505 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
bash |
15 |
no-host |
abuild-print-help |
1,096 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,605 |
0 |
0 |
0 |
8 |
0 |
47 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,226 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
105,332 |
0 |
0 |
0 |
8 |
0 |
1,989 |
47 |
bash |
9 |
no-host |
bin-true |
67,404 |
0 |
0 |
0 |
8 |
0 |
1,992 |
60 |
dash |
17 |
no-host |
bin-true |
745,651 |
0 |
0 |
0 |
8 |
0 |
2,001 |
121 |
osh-cpython |
25 |
no-host |
bin-true |
128,197 |
0 |
0 |
0 |
16 |
0 |
1,992 |
146 |
osh-native |
2 |
no-host |
configure.cpython |
2,217,255 |
0 |
0 |
0 |
32,928 |
0 |
14,474 |
998 |
bash |
10 |
no-host |
configure.cpython |
2,241,019 |
1 |
0 |
0 |
32,992 |
0 |
14,608 |
1,217 |
dash |
18 |
no-host |
configure.cpython |
6,130,102 |
0 |
0 |
0 |
27,512 |
0 |
13,220 |
1,227 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,231,239 |
2 |
0 |
0 |
27,520 |
0 |
13,231 |
1,151 |
osh-native |
4 |
no-host |
configure.ocaml |
410,755 |
0 |
0 |
0 |
5,120 |
0 |
1,948 |
174 |
bash |
12 |
no-host |
configure.ocaml |
390,488 |
0 |
0 |
0 |
5,112 |
0 |
1,867 |
162 |
dash |
20 |
no-host |
configure.ocaml |
638,798 |
1 |
0 |
0 |
5,112 |
0 |
1,851 |
177 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,626 |
0 |
0 |
0 |
5,120 |
0 |
1,928 |
161 |
osh-native |
5 |
no-host |
configure.tcc |
6,542 |
0 |
0 |
0 |
104 |
0 |
49 |
6 |
bash |
13 |
no-host |
configure.tcc |
5,475 |
0 |
0 |
0 |
96 |
0 |
47 |
0 |
dash |
21 |
no-host |
configure.tcc |
23,268 |
0 |
0 |
0 |
96 |
0 |
53 |
11 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,971 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
3 |
no-host |
configure.util-linux |
2,095,614 |
1 |
0 |
0 |
42,400 |
0 |
18,625 |
1,029 |
bash |
11 |
no-host |
configure.util-linux |
2,264,474 |
0 |
0 |
0 |
42,584 |
0 |
17,487 |
1,046 |
dash |
19 |
no-host |
configure.util-linux |
5,316,710 |
8 |
0 |
0 |
39,112 |
0 |
17,095 |
1,275 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,016,818 |
3 |
0 |
0 |
39,120 |
0 |
17,054 |
1,020 |
osh-native |
6 |
no-host |
configure.yash |
256,346 |
0 |
0 |
0 |
4,120 |
0 |
869 |
91 |
bash |
14 |
no-host |
configure.yash |
245,184 |
0 |
0 |
0 |
3,720 |
0 |
868 |
88 |
dash |
22 |
no-host |
configure.yash |
384,970 |
0 |
0 |
0 |
3,728 |
0 |
858 |
98 |
osh-cpython |
30 |
no-host |
configure.yash |
258,663 |
0 |
0 |
0 |
3,736 |
0 |
851 |
82 |
osh-native |
0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
80 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
dash |
16 |
no-host |
hello-world |
3,667 |
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