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 |
452 |
22 |
23.78 |
1.15 |
bin-true |
no-host |
667 |
545 |
2,215 |
826 |
3.32 |
1.24 |
configure.cpython |
no-host |
14,864 |
15,019 |
28,177 |
15,044 |
1.90 |
1.01 |
configure.ocaml |
no-host |
3,799 |
3,719 |
4,577 |
3,800 |
1.20 |
1.00 |
configure.tcc |
no-host |
47 |
41 |
192 |
49 |
4.06 |
1.03 |
configure.util-linux |
no-host |
13,892 |
14,833 |
30,679 |
14,262 |
2.21 |
1.03 |
configure.yash |
no-host |
1,810 |
1,756 |
2,402 |
1,818 |
1.33 |
1.00 |
hello-world |
no-host |
2 |
1 |
47 |
3 |
31.58 |
1.87 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,530 |
1,129 |
22,992 |
3,223 |
9.09 |
1.27 |
bin-true |
no-host |
103,355 |
65,536 |
737,362 |
131,197 |
7.13 |
1.27 |
configure.cpython |
no-host |
2,222,700 |
2,240,271 |
6,084,541 |
2,234,730 |
2.74 |
1.01 |
configure.ocaml |
no-host |
410,477 |
391,184 |
635,583 |
414,020 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,538 |
5,472 |
22,958 |
7,014 |
3.51 |
1.07 |
configure.util-linux |
no-host |
2,100,390 |
2,265,131 |
5,302,178 |
2,020,586 |
2.52 |
0.96 |
configure.yash |
no-host |
256,188 |
245,122 |
383,713 |
259,188 |
1.50 |
1.01 |
hello-world |
no-host |
152 |
80 |
3,649 |
344 |
24.01 |
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.3 |
3,715 |
3,715 |
0 |
681 |
1,869 |
1,165 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
826 |
1 |
2 |
2.7 |
7.9 |
154,662 |
12,890 |
2,792 |
11,730 |
78,322 |
64,610 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,044 |
1 |
59 |
15.9 |
27.1 |
1,772,999 |
49,191 |
28,502 |
101,923 |
908,362 |
762,714 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,262 |
2 |
57 |
22.2 |
30.3 |
2,703,395 |
44,760 |
65,806 |
126,121 |
1,320,588 |
1,256,686 |
49,081 |
41 |
131,612 |
1 |
configure.ocaml |
no-host |
3,800 |
1 |
2 |
2.7 |
20.6 |
150,029 |
11,039 |
5,132 |
8,602 |
71,626 |
69,801 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,518 |
30,518 |
0 |
1,599 |
14,793 |
14,126 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,818 |
1 |
2 |
2.6 |
24.2 |
139,686 |
7,958 |
6,594 |
7,554 |
70,298 |
61,834 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.9 |
116,225 |
64,449 |
42,657 |
4,601 |
54,506 |
57,118 |
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 |
19 |
19 |
1 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
5 |
5 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
452 |
412 |
44 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
15 |
7 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
667 |
491 |
207 |
3.0 |
bash |
9 |
no-host |
bin-true |
545 |
418 |
139 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,215 |
1,395 |
1,063 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
826 |
581 |
258 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
14,864 |
8,906 |
6,357 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,019 |
9,200 |
6,242 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,177 |
17,231 |
12,715 |
27.1 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,044 |
8,920 |
6,389 |
27.1 |
osh-native |
4 |
no-host |
configure.ocaml |
3,799 |
1,680 |
1,152 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,719 |
1,471 |
1,267 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,577 |
2,233 |
1,542 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,800 |
1,642 |
1,196 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
28 |
20 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
21 |
20 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
192 |
122 |
73 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
26 |
23 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
13,892 |
8,875 |
5,489 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,833 |
9,090 |
6,239 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
30,679 |
20,608 |
11,092 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,262 |
8,535 |
5,927 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,810 |
1,050 |
770 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,756 |
991 |
768 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,402 |
1,522 |
918 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,818 |
1,069 |
753 |
24.2 |
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 |
47 |
20 |
27 |
17.2 |
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,530 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,129 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
22,992 |
0 |
0 |
0 |
8 |
0 |
47 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,223 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
103,355 |
0 |
0 |
0 |
8 |
0 |
1,987 |
52 |
bash |
9 |
no-host |
bin-true |
65,536 |
0 |
0 |
0 |
8 |
0 |
1,981 |
76 |
dash |
17 |
no-host |
bin-true |
737,362 |
0 |
0 |
0 |
8 |
0 |
1,991 |
206 |
osh-cpython |
25 |
no-host |
bin-true |
131,197 |
0 |
0 |
0 |
16 |
0 |
1,990 |
89 |
osh-native |
2 |
no-host |
configure.cpython |
2,222,700 |
0 |
0 |
0 |
32,928 |
0 |
14,431 |
903 |
bash |
10 |
no-host |
configure.cpython |
2,240,271 |
0 |
0 |
0 |
32,992 |
0 |
14,531 |
1,117 |
dash |
18 |
no-host |
configure.cpython |
6,084,541 |
0 |
0 |
0 |
27,512 |
0 |
13,256 |
1,190 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,234,730 |
0 |
0 |
0 |
27,520 |
0 |
13,262 |
955 |
osh-native |
4 |
no-host |
configure.ocaml |
410,477 |
0 |
0 |
0 |
5,120 |
0 |
1,959 |
173 |
bash |
12 |
no-host |
configure.ocaml |
391,184 |
0 |
0 |
0 |
5,112 |
0 |
1,889 |
150 |
dash |
20 |
no-host |
configure.ocaml |
635,583 |
0 |
0 |
0 |
5,112 |
0 |
1,869 |
166 |
osh-cpython |
28 |
no-host |
configure.ocaml |
414,020 |
0 |
0 |
0 |
5,120 |
0 |
1,928 |
184 |
osh-native |
5 |
no-host |
configure.tcc |
6,538 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,472 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
22,958 |
0 |
0 |
0 |
96 |
0 |
53 |
6 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,014 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,100,390 |
0 |
0 |
0 |
42,400 |
0 |
18,576 |
1,038 |
bash |
11 |
no-host |
configure.util-linux |
2,265,131 |
0 |
0 |
0 |
42,584 |
0 |
17,484 |
1,079 |
dash |
19 |
no-host |
configure.util-linux |
5,302,178 |
5 |
0 |
0 |
39,120 |
0 |
17,065 |
1,301 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,020,586 |
1 |
0 |
0 |
39,120 |
0 |
17,067 |
1,044 |
osh-native |
6 |
no-host |
configure.yash |
256,188 |
0 |
0 |
0 |
4,120 |
0 |
870 |
75 |
bash |
14 |
no-host |
configure.yash |
245,122 |
0 |
0 |
0 |
3,720 |
0 |
863 |
75 |
dash |
22 |
no-host |
configure.yash |
383,713 |
0 |
0 |
0 |
3,728 |
0 |
854 |
80 |
osh-cpython |
30 |
no-host |
configure.yash |
259,188 |
0 |
0 |
0 |
3,736 |
0 |
848 |
89 |
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,649 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host