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 |
451 |
23 |
24.10 |
1.22 |
bin-true |
no-host |
667 |
533 |
2,213 |
825 |
3.32 |
1.24 |
configure.cpython |
no-host |
14,794 |
14,861 |
28,080 |
15,032 |
1.90 |
1.02 |
configure.ocaml |
no-host |
3,745 |
3,701 |
4,547 |
3,780 |
1.21 |
1.01 |
configure.tcc |
no-host |
47 |
41 |
191 |
49 |
4.06 |
1.04 |
configure.util-linux |
no-host |
13,781 |
14,672 |
30,643 |
14,200 |
2.22 |
1.03 |
configure.yash |
no-host |
1,789 |
1,736 |
2,391 |
1,802 |
1.34 |
1.01 |
hello-world |
no-host |
1 |
1 |
47 |
3 |
33.41 |
2.21 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,562 |
1,102 |
23,564 |
3,194 |
9.20 |
1.25 |
bin-true |
no-host |
105,322 |
65,401 |
753,203 |
130,177 |
7.15 |
1.24 |
configure.cpython |
no-host |
2,220,338 |
2,241,292 |
6,103,597 |
2,231,388 |
2.75 |
1.00 |
configure.ocaml |
no-host |
410,404 |
390,844 |
637,736 |
414,121 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,521 |
5,478 |
23,228 |
6,985 |
3.56 |
1.07 |
configure.util-linux |
no-host |
2,094,134 |
2,264,327 |
5,329,958 |
2,022,891 |
2.55 |
0.97 |
configure.yash |
no-host |
256,659 |
244,790 |
385,843 |
258,985 |
1.50 |
1.01 |
hello-world |
no-host |
152 |
84 |
3,640 |
342 |
23.95 |
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.2 |
6.2 |
3,711 |
3,711 |
0 |
681 |
1,866 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
825 |
1 |
2 |
2.7 |
8.0 |
154,658 |
12,890 |
2,792 |
11,730 |
78,319 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,032 |
1 |
60 |
15.8 |
27.4 |
1,772,595 |
49,191 |
28,502 |
101,770 |
908,042 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,200 |
2 |
58 |
22.2 |
30.1 |
2,703,259 |
44,760 |
65,806 |
126,121 |
1,320,486 |
1,256,652 |
49,081 |
41 |
131,612 |
1 |
configure.ocaml |
no-host |
3,780 |
1 |
2 |
2.7 |
20.4 |
150,021 |
11,039 |
5,132 |
8,602 |
71,620 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,514 |
30,514 |
0 |
1,599 |
14,790 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,802 |
1 |
2 |
2.6 |
24.0 |
139,678 |
7,958 |
6,594 |
7,554 |
70,292 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.8 |
116,221 |
64,449 |
42,657 |
4,601 |
54,503 |
57,117 |
478 |
3 |
85,314 |
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 |
11 |
8 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
6 |
3 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
451 |
410 |
43 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
16 |
7 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
667 |
509 |
191 |
3.0 |
bash |
9 |
no-host |
bin-true |
533 |
409 |
133 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,213 |
1,444 |
1,011 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
825 |
589 |
250 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
14,794 |
8,951 |
6,239 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
14,861 |
8,964 |
6,316 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,080 |
16,995 |
12,877 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,032 |
8,865 |
6,433 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,745 |
1,623 |
1,162 |
20.7 |
bash |
12 |
no-host |
configure.ocaml |
3,701 |
1,601 |
1,121 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,547 |
2,134 |
1,613 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,780 |
1,560 |
1,260 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
32 |
16 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
41 |
27 |
14 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
191 |
161 |
33 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
30 |
19 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
13,781 |
8,597 |
5,657 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,672 |
9,140 |
6,023 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
30,643 |
20,581 |
11,106 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,200 |
8,576 |
5,838 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,789 |
1,042 |
755 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,736 |
1,045 |
694 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,391 |
1,444 |
988 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,802 |
1,016 |
790 |
24.0 |
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 |
34 |
13 |
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,562 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,102 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,564 |
0 |
0 |
0 |
8 |
0 |
47 |
13 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,194 |
0 |
0 |
0 |
16 |
0 |
42 |
2 |
osh-native |
1 |
no-host |
bin-true |
105,322 |
0 |
0 |
0 |
8 |
0 |
1,990 |
82 |
bash |
9 |
no-host |
bin-true |
65,401 |
0 |
0 |
0 |
8 |
0 |
1,989 |
69 |
dash |
17 |
no-host |
bin-true |
753,203 |
0 |
0 |
0 |
8 |
0 |
1,995 |
232 |
osh-cpython |
25 |
no-host |
bin-true |
130,177 |
0 |
0 |
0 |
16 |
0 |
1,995 |
166 |
osh-native |
2 |
no-host |
configure.cpython |
2,220,338 |
1 |
0 |
0 |
32,928 |
0 |
14,475 |
1,191 |
bash |
10 |
no-host |
configure.cpython |
2,241,292 |
0 |
0 |
0 |
32,992 |
0 |
14,577 |
1,161 |
dash |
18 |
no-host |
configure.cpython |
6,103,597 |
1 |
0 |
0 |
27,512 |
0 |
13,236 |
1,285 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,231,388 |
0 |
0 |
0 |
27,520 |
0 |
13,321 |
1,093 |
osh-native |
4 |
no-host |
configure.ocaml |
410,404 |
0 |
0 |
0 |
5,120 |
0 |
1,943 |
163 |
bash |
12 |
no-host |
configure.ocaml |
390,844 |
0 |
0 |
0 |
5,112 |
0 |
1,917 |
192 |
dash |
20 |
no-host |
configure.ocaml |
637,736 |
0 |
0 |
0 |
5,112 |
0 |
1,866 |
195 |
osh-cpython |
28 |
no-host |
configure.ocaml |
414,121 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
159 |
osh-native |
5 |
no-host |
configure.tcc |
6,521 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,478 |
0 |
0 |
0 |
96 |
0 |
47 |
0 |
dash |
21 |
no-host |
configure.tcc |
23,228 |
0 |
0 |
0 |
96 |
0 |
53 |
6 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,985 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,094,134 |
0 |
0 |
0 |
42,400 |
0 |
18,584 |
1,140 |
bash |
11 |
no-host |
configure.util-linux |
2,264,327 |
0 |
0 |
0 |
42,584 |
0 |
17,390 |
1,175 |
dash |
19 |
no-host |
configure.util-linux |
5,329,958 |
16 |
0 |
0 |
39,120 |
0 |
17,017 |
1,127 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,022,891 |
1 |
0 |
0 |
39,120 |
0 |
17,124 |
1,068 |
osh-native |
6 |
no-host |
configure.yash |
256,659 |
0 |
0 |
0 |
4,120 |
0 |
867 |
148 |
bash |
14 |
no-host |
configure.yash |
244,790 |
0 |
0 |
0 |
3,720 |
0 |
869 |
75 |
dash |
22 |
no-host |
configure.yash |
385,843 |
0 |
0 |
0 |
3,728 |
0 |
857 |
94 |
osh-cpython |
30 |
no-host |
configure.yash |
258,985 |
0 |
0 |
0 |
3,736 |
0 |
852 |
67 |
osh-native |
0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
84 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,640 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
342 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host