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 |
455 |
23 |
23.00 |
1.14 |
bin-true |
no-host |
677 |
551 |
2,259 |
814 |
3.34 |
1.20 |
configure.cpython |
no-host |
15,385 |
15,454 |
29,056 |
15,638 |
1.89 |
1.02 |
configure.ocaml |
no-host |
3,855 |
3,792 |
4,703 |
3,884 |
1.22 |
1.01 |
configure.tcc |
no-host |
48 |
43 |
194 |
51 |
4.02 |
1.05 |
configure.util-linux |
no-host |
14,263 |
15,224 |
31,754 |
14,713 |
2.23 |
1.03 |
configure.yash |
no-host |
1,875 |
1,834 |
2,484 |
1,874 |
1.32 |
1.00 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
32.02 |
1.90 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,543 |
1,114 |
23,357 |
3,219 |
9.18 |
1.27 |
bin-true |
no-host |
104,372 |
65,431 |
754,096 |
127,176 |
7.23 |
1.22 |
configure.cpython |
no-host |
2,218,506 |
2,248,580 |
6,122,408 |
2,233,743 |
2.76 |
1.01 |
configure.ocaml |
no-host |
410,277 |
391,027 |
637,608 |
413,660 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,554 |
5,483 |
23,188 |
6,976 |
3.54 |
1.06 |
configure.util-linux |
no-host |
2,098,251 |
2,262,235 |
5,335,876 |
2,014,215 |
2.54 |
0.96 |
configure.yash |
no-host |
256,527 |
244,605 |
385,061 |
257,870 |
1.50 |
1.01 |
hello-world |
no-host |
153 |
78 |
3,659 |
345 |
23.92 |
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.3 |
6.0 |
3,724 |
3,724 |
0 |
684 |
1,876 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
814 |
1 |
2 |
2.7 |
8.0 |
154,689 |
12,992 |
2,799 |
11,737 |
78,345 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,638 |
1 |
64 |
15.8 |
27.3 |
1,772,605 |
49,197 |
28,508 |
101,770 |
908,052 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,713 |
3 |
64 |
22.2 |
30.0 |
2,703,269 |
44,766 |
65,792 |
126,121 |
1,320,496 |
1,256,652 |
49,081 |
41 |
131,584 |
1 |
configure.ocaml |
no-host |
3,884 |
1 |
2 |
2.7 |
20.6 |
150,031 |
11,045 |
5,138 |
8,602 |
71,630 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
51 |
0 |
0 |
1.3 |
19.3 |
30,524 |
30,524 |
0 |
1,599 |
14,800 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,874 |
1 |
2 |
2.6 |
24.4 |
139,688 |
7,964 |
6,600 |
7,554 |
70,302 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.8 |
116,267 |
64,455 |
42,663 |
4,610 |
54,545 |
57,112 |
478 |
3 |
85,326 |
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 |
20 |
0 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
7 |
3 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
455 |
398 |
60 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
17 |
6 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
677 |
497 |
213 |
3.0 |
bash |
9 |
no-host |
bin-true |
551 |
421 |
139 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,259 |
1,484 |
1,033 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
814 |
582 |
249 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,385 |
9,371 |
6,401 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,454 |
9,224 |
6,649 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,056 |
17,740 |
13,191 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,638 |
9,275 |
6,636 |
27.3 |
osh-native |
4 |
no-host |
configure.ocaml |
3,855 |
1,707 |
1,189 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,792 |
1,570 |
1,244 |
21.0 |
dash |
20 |
no-host |
configure.ocaml |
4,703 |
2,371 |
1,538 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,884 |
1,660 |
1,262 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
28 |
21 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
43 |
21 |
22 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
194 |
149 |
49 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
51 |
45 |
6 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,263 |
9,124 |
5,599 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,224 |
9,290 |
6,429 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,754 |
21,344 |
11,518 |
30.4 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,713 |
8,871 |
6,034 |
30.0 |
osh-native |
6 |
no-host |
configure.yash |
1,875 |
1,076 |
807 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,834 |
1,092 |
744 |
24.5 |
dash |
22 |
no-host |
configure.yash |
2,484 |
1,543 |
984 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,874 |
1,073 |
806 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
29 |
20 |
17.2 |
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,543 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,114 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,357 |
0 |
0 |
0 |
8 |
0 |
47 |
12 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,219 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
104,372 |
0 |
0 |
0 |
8 |
0 |
1,991 |
45 |
bash |
9 |
no-host |
bin-true |
65,431 |
0 |
0 |
0 |
8 |
0 |
1,977 |
153 |
dash |
17 |
no-host |
bin-true |
754,096 |
0 |
0 |
0 |
8 |
0 |
2,000 |
276 |
osh-cpython |
25 |
no-host |
bin-true |
127,176 |
0 |
0 |
0 |
16 |
0 |
1,992 |
60 |
osh-native |
2 |
no-host |
configure.cpython |
2,218,506 |
0 |
0 |
0 |
32,928 |
0 |
14,588 |
1,247 |
bash |
10 |
no-host |
configure.cpython |
2,248,580 |
0 |
0 |
0 |
32,992 |
0 |
14,551 |
1,029 |
dash |
18 |
no-host |
configure.cpython |
6,122,408 |
0 |
0 |
0 |
27,512 |
0 |
13,329 |
1,162 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,233,743 |
0 |
0 |
0 |
27,520 |
0 |
13,275 |
1,000 |
osh-native |
4 |
no-host |
configure.ocaml |
410,277 |
0 |
0 |
0 |
5,120 |
0 |
1,946 |
159 |
bash |
12 |
no-host |
configure.ocaml |
391,027 |
0 |
0 |
0 |
5,112 |
0 |
1,936 |
136 |
dash |
20 |
no-host |
configure.ocaml |
637,608 |
0 |
0 |
0 |
5,112 |
0 |
1,859 |
167 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,660 |
0 |
0 |
0 |
5,120 |
0 |
1,938 |
137 |
osh-native |
5 |
no-host |
configure.tcc |
6,554 |
0 |
0 |
0 |
104 |
0 |
49 |
4 |
bash |
13 |
no-host |
configure.tcc |
5,483 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,188 |
0 |
0 |
0 |
96 |
0 |
53 |
9 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,976 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,098,251 |
0 |
0 |
0 |
42,400 |
0 |
18,520 |
976 |
bash |
11 |
no-host |
configure.util-linux |
2,262,235 |
0 |
0 |
0 |
42,592 |
0 |
17,458 |
1,158 |
dash |
19 |
no-host |
configure.util-linux |
5,335,876 |
12 |
0 |
0 |
39,136 |
0 |
17,093 |
1,384 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,014,215 |
1 |
0 |
0 |
39,128 |
0 |
17,121 |
1,008 |
osh-native |
6 |
no-host |
configure.yash |
256,527 |
0 |
0 |
0 |
4,120 |
0 |
871 |
102 |
bash |
14 |
no-host |
configure.yash |
244,605 |
0 |
0 |
0 |
3,720 |
0 |
867 |
183 |
dash |
22 |
no-host |
configure.yash |
385,061 |
1 |
0 |
0 |
3,728 |
0 |
855 |
91 |
osh-cpython |
30 |
no-host |
configure.yash |
257,870 |
0 |
0 |
0 |
3,736 |
0 |
856 |
68 |
osh-native |
0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
78 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,659 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
345 |
0 |
0 |
0 |
16 |
0 |
0 |
1 |
osh-native |
Shell and Host