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 |
466 |
23 |
23.09 |
1.12 |
bin-true |
no-host |
682 |
552 |
2,273 |
826 |
3.33 |
1.21 |
configure.cpython |
no-host |
15,439 |
15,514 |
29,412 |
15,742 |
1.91 |
1.02 |
configure.ocaml |
no-host |
3,877 |
3,836 |
4,750 |
3,901 |
1.23 |
1.01 |
configure.tcc |
no-host |
48 |
43 |
198 |
50 |
4.13 |
1.04 |
configure.util-linux |
no-host |
14,310 |
15,390 |
32,097 |
14,778 |
2.24 |
1.03 |
configure.yash |
no-host |
1,865 |
1,825 |
2,532 |
1,870 |
1.36 |
1.00 |
hello-world |
no-host |
2 |
1 |
51 |
3 |
33.54 |
1.99 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,595 |
1,131 |
23,478 |
3,225 |
9.05 |
1.24 |
bin-true |
no-host |
106,308 |
65,477 |
747,219 |
127,152 |
7.03 |
1.20 |
configure.cpython |
no-host |
2,217,430 |
2,248,056 |
6,122,313 |
2,229,756 |
2.76 |
1.01 |
configure.ocaml |
no-host |
410,405 |
390,732 |
638,385 |
413,479 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,554 |
5,489 |
23,147 |
6,975 |
3.53 |
1.06 |
configure.util-linux |
no-host |
2,090,162 |
2,261,931 |
5,302,436 |
2,013,763 |
2.54 |
0.96 |
configure.yash |
no-host |
256,886 |
244,170 |
384,454 |
257,950 |
1.50 |
1.00 |
hello-world |
no-host |
151 |
81 |
3,660 |
347 |
24.24 |
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.3 |
3,729 |
3,729 |
0 |
684 |
1,881 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
826 |
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,742 |
1 |
64 |
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,778 |
3 |
64 |
22.2 |
30.1 |
2,703,274 |
44,770 |
65,796 |
126,121 |
1,320,501 |
1,256,652 |
49,081 |
41 |
131,592 |
1 |
configure.ocaml |
no-host |
3,901 |
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 |
50 |
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,870 |
1 |
2 |
2.6 |
24.2 |
139,693 |
7,968 |
6,604 |
7,554 |
70,307 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
9.0 |
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 |
20 |
17 |
4 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
7 |
3 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
466 |
431 |
38 |
21.5 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
20 |
3 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
682 |
494 |
215 |
3.0 |
bash |
9 |
no-host |
bin-true |
552 |
411 |
147 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,273 |
1,501 |
1,033 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
826 |
573 |
267 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,439 |
9,116 |
6,731 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,514 |
9,384 |
6,555 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
29,412 |
17,997 |
13,318 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,742 |
9,426 |
6,588 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,877 |
1,717 |
1,194 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,836 |
1,601 |
1,254 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,750 |
2,260 |
1,704 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,901 |
1,639 |
1,300 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
33 |
15 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
43 |
27 |
16 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
198 |
152 |
49 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
38 |
12 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,310 |
8,987 |
5,799 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
15,390 |
9,260 |
6,639 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
32,097 |
21,500 |
11,717 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,778 |
8,901 |
6,074 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,865 |
1,039 |
834 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,825 |
1,035 |
793 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,532 |
1,501 |
1,075 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,870 |
1,096 |
777 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
51 |
31 |
19 |
17.3 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
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,595 |
0 |
0 |
0 |
16 |
0 |
40 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,131 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,478 |
0 |
0 |
0 |
8 |
0 |
47 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,225 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
1 |
no-host |
bin-true |
106,308 |
0 |
0 |
0 |
8 |
0 |
1,992 |
83 |
bash |
9 |
no-host |
bin-true |
65,477 |
0 |
0 |
0 |
8 |
0 |
1,988 |
49 |
dash |
17 |
no-host |
bin-true |
747,219 |
0 |
0 |
0 |
8 |
0 |
1,996 |
387 |
osh-cpython |
25 |
no-host |
bin-true |
127,152 |
0 |
0 |
0 |
16 |
0 |
1,986 |
64 |
osh-native |
2 |
no-host |
configure.cpython |
2,217,430 |
1 |
0 |
0 |
32,928 |
0 |
14,469 |
1,091 |
bash |
10 |
no-host |
configure.cpython |
2,248,056 |
1 |
0 |
0 |
32,992 |
0 |
14,573 |
1,095 |
dash |
18 |
no-host |
configure.cpython |
6,122,313 |
0 |
0 |
0 |
27,512 |
0 |
13,300 |
1,299 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,229,756 |
0 |
0 |
0 |
27,520 |
0 |
13,282 |
989 |
osh-native |
4 |
no-host |
configure.ocaml |
410,405 |
0 |
0 |
0 |
5,120 |
0 |
1,959 |
153 |
bash |
12 |
no-host |
configure.ocaml |
390,732 |
0 |
0 |
0 |
5,112 |
0 |
1,870 |
150 |
dash |
20 |
no-host |
configure.ocaml |
638,385 |
1 |
0 |
0 |
5,112 |
0 |
1,863 |
171 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,479 |
0 |
0 |
0 |
5,120 |
0 |
1,936 |
166 |
osh-native |
5 |
no-host |
configure.tcc |
6,554 |
0 |
0 |
0 |
104 |
0 |
48 |
4 |
bash |
13 |
no-host |
configure.tcc |
5,489 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,147 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,975 |
0 |
0 |
0 |
104 |
0 |
47 |
8 |
osh-native |
3 |
no-host |
configure.util-linux |
2,090,162 |
0 |
0 |
0 |
42,400 |
0 |
18,607 |
1,075 |
bash |
11 |
no-host |
configure.util-linux |
2,261,931 |
1 |
0 |
0 |
42,584 |
0 |
17,417 |
1,088 |
dash |
19 |
no-host |
configure.util-linux |
5,302,436 |
12 |
0 |
0 |
39,112 |
0 |
17,071 |
1,334 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,013,763 |
0 |
0 |
0 |
39,120 |
0 |
17,059 |
992 |
osh-native |
6 |
no-host |
configure.yash |
256,886 |
0 |
0 |
0 |
4,120 |
0 |
866 |
90 |
bash |
14 |
no-host |
configure.yash |
244,170 |
0 |
0 |
0 |
3,720 |
0 |
870 |
79 |
dash |
22 |
no-host |
configure.yash |
384,454 |
0 |
0 |
0 |
3,728 |
0 |
857 |
94 |
osh-cpython |
30 |
no-host |
configure.yash |
257,950 |
0 |
0 |
0 |
3,736 |
0 |
853 |
87 |
osh-native |
0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
81 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,660 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
347 |
0 |
0 |
0 |
16 |
0 |
0 |
1 |
osh-native |
Shell and Host