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 |
455 |
22 |
23.52 |
1.16 |
bin-true |
no-host |
681 |
550 |
2,252 |
827 |
3.31 |
1.22 |
configure.cpython |
no-host |
15,461 |
15,475 |
29,181 |
15,765 |
1.89 |
1.02 |
configure.ocaml |
no-host |
3,874 |
3,816 |
4,767 |
3,912 |
1.23 |
1.01 |
configure.tcc |
no-host |
48 |
42 |
197 |
50 |
4.09 |
1.03 |
configure.util-linux |
no-host |
14,370 |
15,208 |
32,150 |
14,892 |
2.24 |
1.04 |
configure.yash |
no-host |
1,868 |
1,828 |
2,517 |
1,899 |
1.35 |
1.02 |
hello-world |
no-host |
1 |
1 |
49 |
3 |
33.26 |
2.15 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,579 |
1,126 |
22,774 |
3,214 |
8.83 |
1.25 |
bin-true |
no-host |
106,325 |
65,418 |
728,512 |
130,123 |
6.85 |
1.22 |
configure.cpython |
no-host |
2,219,044 |
2,240,458 |
6,074,364 |
2,237,212 |
2.74 |
1.01 |
configure.ocaml |
no-host |
410,120 |
390,995 |
633,422 |
413,198 |
1.54 |
1.01 |
configure.tcc |
no-host |
6,553 |
5,468 |
22,918 |
6,994 |
3.50 |
1.07 |
configure.util-linux |
no-host |
2,096,626 |
2,261,408 |
5,274,124 |
2,011,940 |
2.52 |
0.96 |
configure.yash |
no-host |
256,551 |
244,056 |
383,165 |
258,401 |
1.49 |
1.01 |
hello-world |
no-host |
152 |
81 |
3,648 |
344 |
24.00 |
2.26 |
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.2 |
3,710 |
3,710 |
0 |
681 |
1,865 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
827 |
1 |
2 |
2.7 |
7.7 |
154,656 |
12,889 |
2,791 |
11,730 |
78,317 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,765 |
1 |
64 |
15.9 |
27.3 |
1,769,350 |
44,560 |
28,499 |
101,923 |
904,763 |
762,664 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,892 |
3 |
63 |
22.2 |
30.3 |
2,698,087 |
29,091 |
65,783 |
126,121 |
1,315,368 |
1,256,598 |
49,081 |
41 |
131,566 |
1 |
configure.ocaml |
no-host |
3,912 |
1 |
2 |
2.7 |
20.4 |
149,273 |
11,026 |
5,129 |
8,602 |
71,056 |
69,615 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.3 |
30,424 |
30,424 |
0 |
1,599 |
14,700 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,899 |
1 |
2 |
2.6 |
24.2 |
139,384 |
7,140 |
6,531 |
7,554 |
69,998 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.7 |
116,050 |
64,417 |
42,656 |
4,601 |
54,332 |
57,117 |
478 |
3 |
85,312 |
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 |
16 |
4 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
455 |
407 |
52 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
15 |
8 |
8.7 |
osh-native |
1 |
no-host |
bin-true |
681 |
495 |
217 |
3.0 |
bash |
9 |
no-host |
bin-true |
550 |
429 |
129 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,252 |
1,469 |
1,041 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
827 |
576 |
266 |
7.7 |
osh-native |
2 |
no-host |
configure.cpython |
15,461 |
9,249 |
6,600 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,475 |
9,380 |
6,515 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,181 |
17,682 |
13,340 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,765 |
9,157 |
6,876 |
27.3 |
osh-native |
4 |
no-host |
configure.ocaml |
3,874 |
1,711 |
1,205 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,816 |
1,626 |
1,210 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,767 |
2,242 |
1,731 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,912 |
1,665 |
1,283 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
25 |
23 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
32 |
10 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
197 |
142 |
59 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
31 |
19 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,370 |
8,856 |
5,986 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,208 |
9,359 |
6,340 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
32,150 |
21,124 |
12,107 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,892 |
8,970 |
6,100 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,868 |
1,122 |
752 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,828 |
1,057 |
774 |
24.5 |
dash |
22 |
no-host |
configure.yash |
2,517 |
1,588 |
971 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,899 |
1,107 |
784 |
24.2 |
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 |
49 |
21 |
28 |
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,579 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,126 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
22,774 |
0 |
0 |
0 |
8 |
0 |
47 |
8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,214 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
osh-native |
1 |
no-host |
bin-true |
106,325 |
0 |
0 |
0 |
8 |
0 |
1,989 |
47 |
bash |
9 |
no-host |
bin-true |
65,418 |
0 |
0 |
0 |
8 |
0 |
1,987 |
43 |
dash |
17 |
no-host |
bin-true |
728,512 |
0 |
0 |
0 |
8 |
0 |
1,996 |
326 |
osh-cpython |
25 |
no-host |
bin-true |
130,123 |
0 |
0 |
0 |
16 |
0 |
1,992 |
61 |
osh-native |
2 |
no-host |
configure.cpython |
2,219,044 |
1 |
0 |
0 |
32,928 |
0 |
14,350 |
1,157 |
bash |
10 |
no-host |
configure.cpython |
2,240,458 |
0 |
0 |
0 |
32,992 |
0 |
14,619 |
1,027 |
dash |
18 |
no-host |
configure.cpython |
6,074,364 |
0 |
0 |
0 |
27,512 |
0 |
13,254 |
1,135 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,237,212 |
0 |
0 |
0 |
27,520 |
0 |
13,232 |
927 |
osh-native |
4 |
no-host |
configure.ocaml |
410,120 |
0 |
0 |
0 |
5,120 |
0 |
1,937 |
147 |
bash |
12 |
no-host |
configure.ocaml |
390,995 |
0 |
0 |
0 |
5,112 |
0 |
1,898 |
155 |
dash |
20 |
no-host |
configure.ocaml |
633,422 |
0 |
0 |
0 |
5,112 |
0 |
1,855 |
164 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,198 |
0 |
0 |
0 |
5,120 |
0 |
1,935 |
164 |
osh-native |
5 |
no-host |
configure.tcc |
6,553 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,468 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
22,918 |
0 |
0 |
0 |
96 |
0 |
54 |
7 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,994 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
3 |
no-host |
configure.util-linux |
2,096,626 |
0 |
0 |
0 |
42,400 |
0 |
18,672 |
1,002 |
bash |
11 |
no-host |
configure.util-linux |
2,261,408 |
0 |
0 |
0 |
42,584 |
0 |
17,469 |
1,185 |
dash |
19 |
no-host |
configure.util-linux |
5,274,124 |
7 |
0 |
0 |
39,120 |
0 |
17,083 |
1,310 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,011,940 |
0 |
0 |
0 |
39,128 |
0 |
17,096 |
1,018 |
osh-native |
6 |
no-host |
configure.yash |
256,551 |
0 |
0 |
0 |
4,120 |
0 |
870 |
77 |
bash |
14 |
no-host |
configure.yash |
244,056 |
0 |
0 |
0 |
3,720 |
0 |
870 |
73 |
dash |
22 |
no-host |
configure.yash |
383,165 |
0 |
0 |
0 |
3,728 |
0 |
856 |
94 |
osh-cpython |
30 |
no-host |
configure.yash |
258,401 |
0 |
0 |
0 |
3,736 |
0 |
855 |
87 |
osh-native |
0 |
no-host |
hello-world |
152 |
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,648 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host