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 |
452 |
22 |
23.97 |
1.18 |
bin-true |
no-host |
684 |
539 |
2,238 |
812 |
3.27 |
1.19 |
configure.cpython |
no-host |
14,946 |
14,925 |
28,225 |
15,165 |
1.89 |
1.01 |
configure.ocaml |
no-host |
3,760 |
3,710 |
4,597 |
3,817 |
1.22 |
1.02 |
configure.tcc |
no-host |
47 |
41 |
189 |
49 |
4.02 |
1.04 |
configure.util-linux |
no-host |
13,875 |
14,735 |
30,826 |
14,302 |
2.22 |
1.03 |
configure.yash |
no-host |
1,798 |
1,753 |
2,416 |
1,831 |
1.34 |
1.02 |
hello-world |
no-host |
2 |
1 |
47 |
3 |
31.51 |
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,534 |
1,129 |
23,395 |
3,233 |
9.23 |
1.28 |
bin-true |
no-host |
109,315 |
66,396 |
742,976 |
126,196 |
6.80 |
1.15 |
configure.cpython |
no-host |
2,223,864 |
2,242,876 |
6,122,282 |
2,240,962 |
2.75 |
1.01 |
configure.ocaml |
no-host |
410,701 |
390,972 |
637,084 |
413,594 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,554 |
5,474 |
23,155 |
6,991 |
3.53 |
1.07 |
configure.util-linux |
no-host |
2,093,989 |
2,258,683 |
5,319,032 |
2,010,291 |
2.54 |
0.96 |
configure.yash |
no-host |
256,928 |
243,951 |
383,901 |
259,000 |
1.49 |
1.01 |
hello-world |
no-host |
151 |
84 |
3,659 |
347 |
24.23 |
2.30 |
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,729 |
3,729 |
0 |
684 |
1,881 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
812 |
1 |
2 |
2.7 |
7.9 |
154,694 |
12,996 |
2,803 |
11,737 |
78,350 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,165 |
1 |
58 |
15.8 |
27.4 |
1,772,610 |
49,201 |
28,512 |
101,770 |
908,057 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,302 |
3 |
59 |
22.2 |
30.3 |
2,703,274 |
42,775 |
65,816 |
126,121 |
1,320,501 |
1,256,652 |
49,081 |
41 |
131,632 |
1 |
configure.ocaml |
no-host |
3,817 |
1 |
2 |
2.7 |
20.6 |
150,036 |
11,049 |
5,142 |
8,602 |
71,635 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,529 |
30,529 |
0 |
1,599 |
14,805 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,831 |
1 |
2 |
2.6 |
24.4 |
139,693 |
7,968 |
6,604 |
7,554 |
70,307 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.8 |
116,272 |
64,459 |
42,667 |
4,610 |
54,550 |
57,112 |
478 |
3 |
85,334 |
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 |
9 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
7 |
3 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
452 |
386 |
70 |
21.5 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
16 |
7 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
684 |
511 |
206 |
2.9 |
bash |
9 |
no-host |
bin-true |
539 |
423 |
125 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,238 |
1,553 |
944 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
812 |
569 |
258 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
14,946 |
9,028 |
6,315 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
14,925 |
9,046 |
6,291 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,225 |
17,044 |
12,975 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,165 |
9,039 |
6,364 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,760 |
1,549 |
1,251 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,710 |
1,567 |
1,162 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,597 |
2,173 |
1,627 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,817 |
1,712 |
1,142 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
21 |
27 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
41 |
29 |
13 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
189 |
140 |
52 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
30 |
19 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
13,875 |
8,772 |
5,575 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,735 |
9,045 |
6,177 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
30,826 |
20,645 |
11,229 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,302 |
8,741 |
5,766 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,798 |
1,084 |
719 |
24.5 |
bash |
14 |
no-host |
configure.yash |
1,753 |
1,058 |
699 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,416 |
1,530 |
929 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,831 |
1,067 |
767 |
24.4 |
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 |
47 |
34 |
13 |
17.4 |
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,534 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,129 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,395 |
0 |
0 |
0 |
8 |
0 |
46 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,233 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
109,315 |
0 |
0 |
0 |
8 |
0 |
1,989 |
59 |
bash |
9 |
no-host |
bin-true |
66,396 |
0 |
0 |
0 |
8 |
0 |
1,985 |
43 |
dash |
17 |
no-host |
bin-true |
742,976 |
0 |
0 |
0 |
8 |
0 |
1,996 |
103 |
osh-cpython |
25 |
no-host |
bin-true |
126,196 |
0 |
0 |
0 |
16 |
0 |
1,990 |
58 |
osh-native |
2 |
no-host |
configure.cpython |
2,223,864 |
0 |
0 |
0 |
32,928 |
0 |
14,559 |
1,223 |
bash |
10 |
no-host |
configure.cpython |
2,242,876 |
0 |
0 |
0 |
32,992 |
0 |
14,312 |
1,299 |
dash |
18 |
no-host |
configure.cpython |
6,122,282 |
0 |
0 |
0 |
27,512 |
0 |
13,288 |
1,227 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,240,962 |
0 |
0 |
0 |
27,520 |
0 |
13,331 |
1,059 |
osh-native |
4 |
no-host |
configure.ocaml |
410,701 |
0 |
0 |
0 |
5,120 |
0 |
1,945 |
154 |
bash |
12 |
no-host |
configure.ocaml |
390,972 |
0 |
0 |
0 |
5,112 |
0 |
1,873 |
167 |
dash |
20 |
no-host |
configure.ocaml |
637,084 |
0 |
0 |
0 |
5,112 |
0 |
1,863 |
186 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,594 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
183 |
osh-native |
5 |
no-host |
configure.tcc |
6,554 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,474 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,155 |
0 |
0 |
0 |
96 |
0 |
53 |
11 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,991 |
0 |
0 |
0 |
104 |
0 |
45 |
6 |
osh-native |
3 |
no-host |
configure.util-linux |
2,093,989 |
1 |
0 |
0 |
42,400 |
0 |
18,492 |
1,185 |
bash |
11 |
no-host |
configure.util-linux |
2,258,683 |
1 |
0 |
0 |
42,592 |
0 |
17,452 |
1,116 |
dash |
19 |
no-host |
configure.util-linux |
5,319,032 |
17 |
0 |
0 |
39,112 |
0 |
17,068 |
1,080 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,010,291 |
0 |
0 |
0 |
39,128 |
0 |
17,090 |
1,173 |
osh-native |
6 |
no-host |
configure.yash |
256,928 |
0 |
0 |
0 |
4,120 |
0 |
869 |
97 |
bash |
14 |
no-host |
configure.yash |
243,951 |
0 |
0 |
0 |
3,720 |
0 |
868 |
84 |
dash |
22 |
no-host |
configure.yash |
383,901 |
0 |
0 |
0 |
3,728 |
0 |
858 |
89 |
osh-cpython |
30 |
no-host |
configure.yash |
259,000 |
0 |
0 |
0 |
3,736 |
0 |
850 |
85 |
osh-native |
0 |
no-host |
hello-world |
151 |
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,659 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
24 |
no-host |
hello-world |
347 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host