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 |
458 |
23 |
23.96 |
1.21 |
bin-true |
no-host |
683 |
543 |
2,225 |
834 |
3.26 |
1.22 |
configure.cpython |
no-host |
15,637 |
15,685 |
29,301 |
15,744 |
1.87 |
1.01 |
configure.ocaml |
no-host |
3,906 |
3,823 |
4,725 |
3,876 |
1.21 |
0.99 |
configure.tcc |
no-host |
48 |
43 |
191 |
53 |
4.02 |
1.10 |
configure.util-linux |
no-host |
14,578 |
15,377 |
32,228 |
14,876 |
2.21 |
1.02 |
configure.yash |
no-host |
1,857 |
1,795 |
2,522 |
1,889 |
1.36 |
1.02 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
29.77 |
1.84 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,507 |
1,099 |
23,083 |
3,203 |
9.21 |
1.28 |
bin-true |
no-host |
108,313 |
66,455 |
746,901 |
127,554 |
6.90 |
1.18 |
configure.cpython |
no-host |
2,226,032 |
2,242,461 |
6,062,636 |
2,243,978 |
2.72 |
1.01 |
configure.ocaml |
no-host |
410,366 |
391,329 |
633,147 |
413,738 |
1.54 |
1.01 |
configure.tcc |
no-host |
6,537 |
5,488 |
22,985 |
6,986 |
3.52 |
1.07 |
configure.util-linux |
no-host |
2,108,385 |
2,265,556 |
5,293,086 |
2,017,034 |
2.51 |
0.96 |
configure.yash |
no-host |
255,039 |
244,592 |
383,726 |
258,521 |
1.50 |
1.01 |
hello-world |
no-host |
150 |
80 |
3,626 |
341 |
24.17 |
2.27 |
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.2 |
3,673 |
3,673 |
0 |
681 |
1,828 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
834 |
1 |
2 |
2.7 |
7.7 |
154,619 |
12,860 |
2,762 |
12,730 |
77,280 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,744 |
1 |
66 |
15.9 |
27.4 |
1,765,934 |
39,052 |
24,503 |
101,923 |
901,347 |
762,664 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,876 |
3 |
63 |
22.2 |
30.3 |
2,695,085 |
29,056 |
65,754 |
126,121 |
1,312,366 |
1,256,598 |
49,081 |
41 |
131,508 |
1 |
configure.ocaml |
no-host |
3,876 |
1 |
2 |
2.7 |
20.4 |
149,110 |
10,969 |
5,100 |
8,602 |
70,893 |
69,615 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
53 |
0 |
0 |
1.3 |
19.1 |
30,387 |
30,387 |
0 |
1,599 |
14,663 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,889 |
1 |
2 |
2.6 |
24.2 |
138,968 |
6,642 |
6,495 |
7,554 |
69,574 |
61,840 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
9.0 |
116,013 |
64,388 |
42,627 |
4,601 |
54,295 |
57,117 |
478 |
3 |
85,254 |
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.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
7 |
3 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
458 |
409 |
52 |
21.5 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
17 |
7 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
683 |
499 |
218 |
3.0 |
bash |
9 |
no-host |
bin-true |
543 |
417 |
137 |
1.3 |
dash |
17 |
no-host |
bin-true |
2,225 |
1,443 |
1,032 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
834 |
592 |
259 |
7.7 |
osh-native |
2 |
no-host |
configure.cpython |
15,637 |
9,232 |
6,816 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,685 |
9,507 |
6,540 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,301 |
17,990 |
13,153 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,744 |
9,251 |
6,764 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,906 |
1,731 |
1,214 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,823 |
1,572 |
1,270 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,725 |
2,331 |
1,597 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,876 |
1,654 |
1,262 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
36 |
12 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
43 |
28 |
15 |
19.1 |
dash |
21 |
no-host |
configure.tcc |
191 |
136 |
59 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
53 |
26 |
27 |
19.1 |
osh-native |
3 |
no-host |
configure.util-linux |
14,578 |
9,011 |
6,054 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,377 |
9,265 |
6,603 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
32,228 |
21,484 |
11,839 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,876 |
8,865 |
6,207 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,857 |
1,063 |
801 |
24.5 |
bash |
14 |
no-host |
configure.yash |
1,795 |
1,017 |
782 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,522 |
1,543 |
1,023 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,889 |
1,091 |
800 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.6 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
16 |
no-host |
hello-world |
48 |
32 |
16 |
17.2 |
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,507 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,099 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,083 |
0 |
0 |
0 |
8 |
0 |
47 |
12 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,203 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
osh-native |
1 |
no-host |
bin-true |
108,313 |
0 |
0 |
0 |
8 |
0 |
1,993 |
51 |
bash |
9 |
no-host |
bin-true |
66,455 |
0 |
0 |
0 |
8 |
0 |
1,987 |
32 |
dash |
17 |
no-host |
bin-true |
746,901 |
0 |
0 |
0 |
8 |
0 |
1,999 |
152 |
osh-cpython |
25 |
no-host |
bin-true |
127,554 |
0 |
0 |
0 |
16 |
0 |
1,988 |
277 |
osh-native |
2 |
no-host |
configure.cpython |
2,226,032 |
1 |
0 |
0 |
32,928 |
0 |
14,566 |
1,082 |
bash |
10 |
no-host |
configure.cpython |
2,242,461 |
0 |
0 |
0 |
32,992 |
0 |
14,730 |
1,130 |
dash |
18 |
no-host |
configure.cpython |
6,062,636 |
0 |
0 |
0 |
27,512 |
0 |
13,395 |
1,280 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,243,978 |
0 |
0 |
0 |
27,520 |
0 |
13,316 |
1,023 |
osh-native |
4 |
no-host |
configure.ocaml |
410,366 |
0 |
0 |
0 |
5,120 |
0 |
1,950 |
163 |
bash |
12 |
no-host |
configure.ocaml |
391,329 |
0 |
0 |
0 |
5,112 |
0 |
1,902 |
143 |
dash |
20 |
no-host |
configure.ocaml |
633,147 |
1 |
0 |
0 |
5,112 |
0 |
1,853 |
164 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,738 |
0 |
0 |
0 |
5,120 |
0 |
1,926 |
158 |
osh-native |
5 |
no-host |
configure.tcc |
6,537 |
0 |
0 |
0 |
104 |
0 |
49 |
0 |
bash |
13 |
no-host |
configure.tcc |
5,488 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
22,985 |
0 |
0 |
0 |
96 |
0 |
53 |
12 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,986 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,108,385 |
0 |
0 |
0 |
42,408 |
0 |
18,481 |
1,071 |
bash |
11 |
no-host |
configure.util-linux |
2,265,556 |
0 |
0 |
0 |
42,592 |
0 |
17,413 |
1,073 |
dash |
19 |
no-host |
configure.util-linux |
5,293,086 |
15 |
0 |
0 |
39,112 |
0 |
17,087 |
1,410 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,017,034 |
0 |
0 |
0 |
39,128 |
0 |
16,990 |
1,011 |
osh-native |
6 |
no-host |
configure.yash |
255,039 |
0 |
0 |
0 |
4,120 |
0 |
869 |
94 |
bash |
14 |
no-host |
configure.yash |
244,592 |
0 |
0 |
0 |
3,720 |
0 |
868 |
92 |
dash |
22 |
no-host |
configure.yash |
383,726 |
0 |
0 |
0 |
3,728 |
0 |
853 |
94 |
osh-cpython |
30 |
no-host |
configure.yash |
258,521 |
0 |
0 |
0 |
3,736 |
0 |
851 |
90 |
osh-native |
0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
80 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,626 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
341 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host