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 |
12 |
457 |
22 |
23.18 |
1.12 |
bin-true |
no-host |
708 |
571 |
2,408 |
836 |
3.40 |
1.18 |
configure.cpython |
no-host |
16,272 |
16,532 |
29,607 |
16,088 |
1.82 |
0.99 |
configure.ocaml |
no-host |
4,087 |
3,975 |
4,640 |
3,836 |
1.14 |
0.94 |
configure.tcc |
no-host |
53 |
43 |
191 |
49 |
3.57 |
0.92 |
configure.util-linux |
no-host |
15,504 |
16,357 |
33,903 |
14,435 |
2.19 |
0.93 |
configure.yash |
no-host |
1,974 |
1,906 |
2,428 |
1,905 |
1.23 |
0.96 |
hello-world |
no-host |
2 |
1 |
62 |
3 |
36.00 |
1.63 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,561 |
1,092 |
22,986 |
3,181 |
8.98 |
1.24 |
bin-true |
no-host |
106,286 |
66,440 |
729,046 |
129,209 |
6.86 |
1.22 |
configure.cpython |
no-host |
2,222,609 |
2,245,058 |
6,078,682 |
2,234,920 |
2.73 |
1.01 |
configure.ocaml |
no-host |
410,540 |
391,112 |
634,471 |
413,948 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,569 |
5,466 |
22,952 |
6,978 |
3.49 |
1.06 |
configure.util-linux |
no-host |
2,097,384 |
2,269,490 |
5,308,310 |
2,022,592 |
2.53 |
0.96 |
configure.yash |
no-host |
256,921 |
244,200 |
382,551 |
259,281 |
1.49 |
1.01 |
hello-world |
no-host |
151 |
82 |
3,650 |
339 |
24.17 |
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.0 |
3,711 |
3,711 |
0 |
681 |
1,866 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
836 |
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 |
16,088 |
2 |
68 |
15.9 |
27.4 |
1,772,935 |
49,191 |
28,502 |
101,923 |
908,314 |
762,698 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,435 |
3 |
60 |
22.2 |
30.1 |
2,703,259 |
44,760 |
65,786 |
126,121 |
1,320,486 |
1,256,652 |
49,081 |
41 |
131,572 |
1 |
configure.ocaml |
no-host |
3,836 |
1 |
2 |
2.7 |
20.6 |
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.4 |
30,514 |
30,514 |
0 |
1,599 |
14,790 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,905 |
1 |
2 |
2.6 |
24.2 |
139,678 |
7,958 |
6,594 |
7,554 |
70,292 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
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 |
20 |
18 |
2 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
12 |
5 |
7 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
457 |
408 |
52 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
13 |
10 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
708 |
524 |
216 |
2.9 |
bash |
9 |
no-host |
bin-true |
571 |
430 |
153 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,408 |
1,518 |
1,169 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
836 |
599 |
251 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
16,272 |
9,705 |
6,988 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
16,532 |
9,903 |
7,085 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
29,607 |
17,983 |
13,520 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
16,088 |
9,483 |
6,884 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
4,087 |
1,707 |
1,418 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,975 |
1,663 |
1,332 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,640 |
2,197 |
1,647 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,836 |
1,616 |
1,258 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
53 |
27 |
27 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
43 |
29 |
15 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
191 |
141 |
54 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
20 |
29 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
15,504 |
9,661 |
6,355 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
16,357 |
9,838 |
7,040 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
33,903 |
22,537 |
12,519 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,435 |
8,726 |
5,911 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,974 |
1,158 |
826 |
24.1 |
bash |
14 |
no-host |
configure.yash |
1,906 |
1,063 |
846 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,428 |
1,426 |
1,042 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,905 |
1,110 |
799 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
62 |
29 |
32 |
17.3 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.0 |
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,561 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,092 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
22,986 |
0 |
0 |
0 |
8 |
0 |
47 |
8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,181 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
osh-native |
1 |
no-host |
bin-true |
106,286 |
0 |
0 |
0 |
8 |
0 |
1,986 |
90 |
bash |
9 |
no-host |
bin-true |
66,440 |
0 |
0 |
0 |
8 |
0 |
1,986 |
53 |
dash |
17 |
no-host |
bin-true |
729,046 |
0 |
0 |
0 |
8 |
0 |
1,996 |
193 |
osh-cpython |
25 |
no-host |
bin-true |
129,209 |
0 |
0 |
0 |
16 |
0 |
1,986 |
52 |
osh-native |
2 |
no-host |
configure.cpython |
2,222,609 |
1 |
0 |
0 |
32,928 |
0 |
14,495 |
1,053 |
bash |
10 |
no-host |
configure.cpython |
2,245,058 |
0 |
0 |
0 |
32,992 |
0 |
14,548 |
1,058 |
dash |
18 |
no-host |
configure.cpython |
6,078,682 |
0 |
0 |
0 |
27,512 |
0 |
13,248 |
1,218 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,234,920 |
0 |
0 |
0 |
27,520 |
0 |
13,254 |
1,072 |
osh-native |
4 |
no-host |
configure.ocaml |
410,540 |
0 |
0 |
0 |
5,120 |
0 |
1,949 |
168 |
bash |
12 |
no-host |
configure.ocaml |
391,112 |
0 |
0 |
0 |
5,112 |
0 |
1,879 |
149 |
dash |
20 |
no-host |
configure.ocaml |
634,471 |
0 |
0 |
0 |
5,112 |
0 |
1,862 |
184 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,948 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
152 |
osh-native |
5 |
no-host |
configure.tcc |
6,569 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,466 |
0 |
0 |
0 |
96 |
0 |
46 |
1 |
dash |
21 |
no-host |
configure.tcc |
22,952 |
0 |
0 |
0 |
96 |
0 |
53 |
6 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,978 |
0 |
0 |
0 |
104 |
0 |
47 |
6 |
osh-native |
3 |
no-host |
configure.util-linux |
2,097,384 |
1 |
0 |
0 |
42,408 |
0 |
18,608 |
1,096 |
bash |
11 |
no-host |
configure.util-linux |
2,269,490 |
0 |
0 |
0 |
42,592 |
0 |
17,383 |
1,232 |
dash |
19 |
no-host |
configure.util-linux |
5,308,310 |
12 |
0 |
0 |
39,128 |
0 |
17,043 |
1,418 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,022,592 |
0 |
0 |
0 |
39,128 |
0 |
17,038 |
1,016 |
osh-native |
6 |
no-host |
configure.yash |
256,921 |
0 |
0 |
0 |
4,120 |
0 |
866 |
87 |
bash |
14 |
no-host |
configure.yash |
244,200 |
0 |
0 |
0 |
3,720 |
0 |
865 |
175 |
dash |
22 |
no-host |
configure.yash |
382,551 |
0 |
0 |
0 |
3,728 |
0 |
854 |
92 |
osh-cpython |
30 |
no-host |
configure.yash |
259,281 |
0 |
0 |
0 |
3,736 |
0 |
855 |
84 |
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,650 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
339 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host