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 |
17 |
9 |
427 |
21 |
24.49 |
1.20 |
bin-true |
no-host |
650 |
510 |
2,122 |
779 |
3.26 |
1.20 |
configure.cpython |
no-host |
14,377 |
14,499 |
27,008 |
14,594 |
1.88 |
1.02 |
configure.ocaml |
no-host |
3,698 |
3,635 |
4,470 |
3,725 |
1.21 |
1.01 |
configure.tcc |
no-host |
47 |
40 |
186 |
46 |
3.97 |
0.98 |
configure.util-linux |
no-host |
13,403 |
14,238 |
29,832 |
13,753 |
2.23 |
1.03 |
configure.yash |
no-host |
1,725 |
1,697 |
2,273 |
1,770 |
1.32 |
1.03 |
hello-world |
no-host |
1 |
1 |
47 |
3 |
32.01 |
1.81 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,533 |
1,117 |
23,300 |
3,172 |
9.20 |
1.25 |
bin-true |
no-host |
108,330 |
67,411 |
753,066 |
125,238 |
6.95 |
1.16 |
configure.cpython |
no-host |
2,213,844 |
2,246,058 |
6,145,746 |
2,235,524 |
2.78 |
1.01 |
configure.ocaml |
no-host |
410,700 |
390,949 |
639,200 |
413,362 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,544 |
5,483 |
23,217 |
6,995 |
3.55 |
1.07 |
configure.util-linux |
no-host |
2,104,056 |
2,266,700 |
5,338,802 |
2,019,981 |
2.54 |
0.96 |
configure.yash |
no-host |
255,486 |
245,110 |
385,919 |
258,229 |
1.51 |
1.01 |
hello-world |
no-host |
152 |
80 |
3,655 |
346 |
24.05 |
2.28 |
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,722 |
3,722 |
0 |
684 |
1,874 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
779 |
1 |
2 |
2.7 |
8.0 |
154,687 |
12,991 |
2,798 |
11,737 |
78,343 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
14,594 |
1 |
58 |
15.8 |
27.3 |
1,772,603 |
49,196 |
28,507 |
101,770 |
908,050 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
13,753 |
2 |
57 |
22.2 |
30.0 |
2,703,267 |
44,765 |
65,811 |
126,121 |
1,320,494 |
1,256,652 |
49,081 |
41 |
131,622 |
1 |
configure.ocaml |
no-host |
3,725 |
0 |
2 |
2.7 |
20.4 |
150,029 |
11,044 |
5,137 |
8,602 |
71,628 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
46 |
0 |
0 |
1.3 |
19.1 |
30,522 |
30,522 |
0 |
1,599 |
14,798 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,770 |
1 |
2 |
2.6 |
24.4 |
139,686 |
7,963 |
6,599 |
7,554 |
70,300 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.7 |
116,265 |
64,454 |
42,662 |
4,610 |
54,543 |
57,112 |
478 |
3 |
85,324 |
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 |
17 |
7 |
11 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
6 |
3 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
427 |
387 |
43 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
21 |
15 |
6 |
8.7 |
osh-native |
1 |
no-host |
bin-true |
650 |
487 |
194 |
2.9 |
bash |
9 |
no-host |
bin-true |
510 |
389 |
131 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,122 |
1,405 |
966 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
779 |
550 |
243 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
14,377 |
8,670 |
6,094 |
27.1 |
bash |
10 |
no-host |
configure.cpython |
14,499 |
8,772 |
6,133 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
27,008 |
16,540 |
12,206 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
14,594 |
8,564 |
6,289 |
27.3 |
osh-native |
4 |
no-host |
configure.ocaml |
3,698 |
1,560 |
1,175 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,635 |
1,449 |
1,204 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,470 |
2,186 |
1,477 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,725 |
1,550 |
1,211 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
19 |
28 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
40 |
29 |
11 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
186 |
142 |
47 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
46 |
29 |
17 |
19.1 |
osh-native |
3 |
no-host |
configure.util-linux |
13,403 |
8,615 |
5,244 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,238 |
8,756 |
5,969 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
29,832 |
20,147 |
10,705 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
13,753 |
8,326 |
5,611 |
30.0 |
osh-native |
6 |
no-host |
configure.yash |
1,725 |
980 |
754 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,697 |
937 |
763 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,273 |
1,374 |
939 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,770 |
977 |
796 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
47 |
29 |
17 |
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,533 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,117 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,300 |
0 |
0 |
0 |
8 |
0 |
47 |
7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,172 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
108,330 |
0 |
0 |
0 |
8 |
0 |
1,994 |
76 |
bash |
9 |
no-host |
bin-true |
67,411 |
0 |
0 |
0 |
8 |
0 |
1,989 |
47 |
dash |
17 |
no-host |
bin-true |
753,066 |
0 |
0 |
0 |
8 |
0 |
1,994 |
97 |
osh-cpython |
25 |
no-host |
bin-true |
125,238 |
0 |
0 |
0 |
16 |
0 |
1,984 |
53 |
osh-native |
2 |
no-host |
configure.cpython |
2,213,844 |
1 |
0 |
0 |
32,928 |
0 |
14,447 |
1,102 |
bash |
10 |
no-host |
configure.cpython |
2,246,058 |
0 |
0 |
0 |
32,992 |
0 |
14,601 |
1,301 |
dash |
18 |
no-host |
configure.cpython |
6,145,746 |
0 |
0 |
0 |
27,512 |
0 |
13,183 |
1,088 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,235,524 |
0 |
0 |
0 |
27,520 |
0 |
13,269 |
987 |
osh-native |
4 |
no-host |
configure.ocaml |
410,700 |
0 |
0 |
0 |
5,120 |
0 |
1,945 |
163 |
bash |
12 |
no-host |
configure.ocaml |
390,949 |
0 |
0 |
0 |
5,112 |
0 |
1,919 |
142 |
dash |
20 |
no-host |
configure.ocaml |
639,200 |
1 |
0 |
0 |
5,112 |
0 |
1,861 |
171 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,362 |
0 |
0 |
0 |
5,120 |
0 |
1,924 |
152 |
osh-native |
5 |
no-host |
configure.tcc |
6,544 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,483 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,217 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,995 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,104,056 |
0 |
0 |
0 |
42,400 |
0 |
18,555 |
979 |
bash |
11 |
no-host |
configure.util-linux |
2,266,700 |
2 |
0 |
0 |
42,584 |
0 |
17,619 |
1,176 |
dash |
19 |
no-host |
configure.util-linux |
5,338,802 |
9 |
0 |
0 |
39,112 |
0 |
17,184 |
1,111 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,019,981 |
0 |
0 |
0 |
39,120 |
0 |
17,079 |
993 |
osh-native |
6 |
no-host |
configure.yash |
255,486 |
0 |
0 |
0 |
4,120 |
0 |
868 |
71 |
bash |
14 |
no-host |
configure.yash |
245,110 |
0 |
0 |
0 |
3,720 |
0 |
868 |
78 |
dash |
22 |
no-host |
configure.yash |
385,919 |
0 |
0 |
0 |
3,728 |
0 |
857 |
86 |
osh-cpython |
30 |
no-host |
configure.yash |
258,229 |
0 |
0 |
0 |
3,736 |
0 |
852 |
91 |
osh-native |
0 |
no-host |
hello-world |
152 |
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,655 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host