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 |
460 |
24 |
23.94 |
1.22 |
bin-true |
no-host |
683 |
553 |
2,253 |
826 |
3.30 |
1.21 |
configure.cpython |
no-host |
15,433 |
15,471 |
28,945 |
15,771 |
1.88 |
1.02 |
configure.ocaml |
no-host |
3,878 |
3,807 |
4,703 |
3,908 |
1.21 |
1.01 |
configure.tcc |
no-host |
48 |
42 |
197 |
50 |
4.08 |
1.03 |
configure.util-linux |
no-host |
14,536 |
15,265 |
31,649 |
14,868 |
2.18 |
1.02 |
configure.yash |
no-host |
1,857 |
1,808 |
2,541 |
1,874 |
1.37 |
1.01 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
31.66 |
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,581 |
1,104 |
23,065 |
3,206 |
8.94 |
1.24 |
bin-true |
no-host |
104,349 |
66,436 |
747,016 |
129,525 |
7.16 |
1.24 |
configure.cpython |
no-host |
2,235,209 |
2,239,080 |
6,056,402 |
2,245,176 |
2.71 |
1.00 |
configure.ocaml |
no-host |
410,631 |
390,955 |
633,895 |
413,239 |
1.54 |
1.01 |
configure.tcc |
no-host |
6,522 |
5,496 |
22,963 |
6,977 |
3.52 |
1.07 |
configure.util-linux |
no-host |
2,106,843 |
2,261,476 |
5,294,258 |
2,016,957 |
2.51 |
0.96 |
configure.yash |
no-host |
256,674 |
244,464 |
383,186 |
259,325 |
1.49 |
1.01 |
hello-world |
no-host |
151 |
82 |
3,627 |
339 |
24.02 |
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.3 |
3,673 |
3,673 |
0 |
681 |
1,828 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
826 |
1 |
2 |
2.7 |
7.9 |
154,619 |
12,860 |
2,762 |
12,730 |
77,280 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,771 |
1 |
65 |
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,868 |
3 |
64 |
22.2 |
30.1 |
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,908 |
1 |
2 |
2.7 |
20.6 |
149,110 |
10,969 |
5,100 |
8,602 |
70,893 |
69,615 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.4 |
30,387 |
30,387 |
0 |
1,599 |
14,663 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,874 |
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 |
24 |
1 |
2 |
2.8 |
8.7 |
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 |
12 |
8 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
2 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
460 |
399 |
65 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
24 |
12 |
12 |
8.7 |
osh-native |
1 |
no-host |
bin-true |
683 |
500 |
213 |
2.9 |
bash |
9 |
no-host |
bin-true |
553 |
421 |
144 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,253 |
1,423 |
1,083 |
17.0 |
osh-cpython |
25 |
no-host |
bin-true |
826 |
588 |
252 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,433 |
9,260 |
6,585 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,471 |
9,417 |
6,474 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,945 |
17,565 |
13,205 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,771 |
9,338 |
6,703 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,878 |
1,702 |
1,214 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,807 |
1,642 |
1,184 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,703 |
2,248 |
1,661 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,908 |
1,688 |
1,258 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
22 |
27 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
31 |
12 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
197 |
126 |
74 |
19.1 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
37 |
13 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,536 |
9,197 |
5,809 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,265 |
9,322 |
6,453 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,649 |
21,172 |
11,559 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,868 |
8,964 |
6,102 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,857 |
1,001 |
865 |
24.5 |
bash |
14 |
no-host |
configure.yash |
1,808 |
1,084 |
727 |
24.5 |
dash |
22 |
no-host |
configure.yash |
2,541 |
1,550 |
1,036 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,874 |
1,132 |
745 |
24.2 |
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 |
27 |
22 |
17.0 |
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,581 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,104 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,065 |
0 |
0 |
0 |
8 |
0 |
47 |
4 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,206 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
osh-native |
1 |
no-host |
bin-true |
104,349 |
0 |
0 |
0 |
8 |
0 |
1,990 |
51 |
bash |
9 |
no-host |
bin-true |
66,436 |
0 |
0 |
0 |
8 |
0 |
1,991 |
58 |
dash |
17 |
no-host |
bin-true |
747,016 |
0 |
0 |
0 |
8 |
0 |
1,999 |
438 |
osh-cpython |
25 |
no-host |
bin-true |
129,525 |
0 |
0 |
0 |
16 |
0 |
1,986 |
86 |
osh-native |
2 |
no-host |
configure.cpython |
2,235,209 |
1 |
0 |
0 |
32,928 |
0 |
14,573 |
1,113 |
bash |
10 |
no-host |
configure.cpython |
2,239,080 |
0 |
0 |
0 |
32,992 |
0 |
14,740 |
1,076 |
dash |
18 |
no-host |
configure.cpython |
6,056,402 |
0 |
0 |
0 |
27,512 |
0 |
13,365 |
1,126 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,245,176 |
0 |
0 |
0 |
27,520 |
0 |
13,369 |
988 |
osh-native |
4 |
no-host |
configure.ocaml |
410,631 |
0 |
0 |
0 |
5,120 |
0 |
1,947 |
157 |
bash |
12 |
no-host |
configure.ocaml |
390,955 |
0 |
0 |
0 |
5,112 |
0 |
1,923 |
157 |
dash |
20 |
no-host |
configure.ocaml |
633,895 |
0 |
0 |
0 |
5,112 |
0 |
1,859 |
175 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,239 |
0 |
0 |
0 |
5,120 |
0 |
1,934 |
172 |
osh-native |
5 |
no-host |
configure.tcc |
6,522 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,496 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
22,963 |
0 |
0 |
0 |
96 |
0 |
53 |
10 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,977 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,106,843 |
0 |
0 |
0 |
42,408 |
0 |
18,678 |
1,054 |
bash |
11 |
no-host |
configure.util-linux |
2,261,476 |
0 |
0 |
0 |
42,592 |
0 |
17,501 |
1,078 |
dash |
19 |
no-host |
configure.util-linux |
5,294,258 |
13 |
0 |
0 |
39,112 |
0 |
17,064 |
1,332 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,016,957 |
0 |
0 |
0 |
39,128 |
0 |
17,085 |
1,037 |
osh-native |
6 |
no-host |
configure.yash |
256,674 |
0 |
0 |
0 |
4,120 |
0 |
867 |
80 |
bash |
14 |
no-host |
configure.yash |
244,464 |
0 |
0 |
0 |
3,720 |
0 |
868 |
82 |
dash |
22 |
no-host |
configure.yash |
383,186 |
0 |
0 |
0 |
3,728 |
0 |
857 |
82 |
osh-cpython |
30 |
no-host |
configure.yash |
259,325 |
0 |
0 |
0 |
3,736 |
0 |
849 |
94 |
osh-native |
0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
82 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,627 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
24 |
no-host |
hello-world |
339 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host