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 |
9 |
457 |
22 |
23.85 |
1.16 |
bin-true |
no-host |
676 |
540 |
2,219 |
817 |
3.28 |
1.21 |
configure.cpython |
no-host |
14,966 |
15,055 |
28,412 |
15,216 |
1.90 |
1.02 |
configure.ocaml |
no-host |
3,798 |
3,735 |
4,632 |
3,828 |
1.22 |
1.01 |
configure.tcc |
no-host |
48 |
42 |
190 |
49 |
3.99 |
1.03 |
configure.util-linux |
no-host |
13,967 |
14,869 |
31,165 |
14,377 |
2.23 |
1.03 |
configure.yash |
no-host |
1,813 |
1,774 |
2,426 |
1,831 |
1.34 |
1.01 |
hello-world |
no-host |
1 |
1 |
47 |
3 |
33.06 |
2.01 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,556 |
1,105 |
23,427 |
3,216 |
9.17 |
1.26 |
bin-true |
no-host |
105,285 |
65,425 |
747,265 |
129,196 |
7.10 |
1.23 |
configure.cpython |
no-host |
2,214,825 |
2,252,589 |
6,114,870 |
2,237,830 |
2.76 |
1.01 |
configure.ocaml |
no-host |
410,925 |
391,282 |
638,057 |
412,961 |
1.55 |
1.00 |
configure.tcc |
no-host |
6,549 |
5,468 |
23,178 |
6,985 |
3.54 |
1.07 |
configure.util-linux |
no-host |
2,094,226 |
2,261,977 |
5,307,353 |
2,019,449 |
2.53 |
0.96 |
configure.yash |
no-host |
256,537 |
244,994 |
384,896 |
258,805 |
1.50 |
1.01 |
hello-world |
no-host |
152 |
82 |
3,641 |
342 |
23.95 |
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.2 |
3,711 |
3,711 |
0 |
681 |
1,866 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
817 |
1 |
2 |
2.7 |
7.9 |
154,658 |
12,890 |
2,792 |
11,730 |
78,319 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,216 |
1 |
60 |
15.8 |
27.4 |
1,772,595 |
49,191 |
28,502 |
101,770 |
908,042 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,377 |
2 |
59 |
22.2 |
30.1 |
2,703,259 |
44,760 |
65,806 |
126,121 |
1,320,486 |
1,256,652 |
49,081 |
41 |
131,612 |
1 |
configure.ocaml |
no-host |
3,828 |
1 |
2 |
2.7 |
20.4 |
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,831 |
1 |
2 |
2.6 |
24.4 |
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.9 |
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 |
19 |
12 |
8 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
457 |
409 |
51 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
14 |
9 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
676 |
508 |
198 |
3.0 |
bash |
9 |
no-host |
bin-true |
540 |
412 |
137 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,219 |
1,453 |
1,006 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
817 |
581 |
252 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
14,966 |
9,067 |
6,293 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,055 |
9,062 |
6,415 |
28.4 |
dash |
18 |
no-host |
configure.cpython |
28,412 |
17,264 |
12,952 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,216 |
9,059 |
6,427 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,798 |
1,640 |
1,199 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,735 |
1,571 |
1,185 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,632 |
2,213 |
1,621 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,828 |
1,660 |
1,205 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
25 |
23 |
19.1 |
bash |
13 |
no-host |
configure.tcc |
42 |
24 |
17 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
190 |
146 |
47 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
25 |
25 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
13,967 |
8,942 |
5,489 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
14,869 |
9,241 |
6,124 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,165 |
20,776 |
11,440 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,377 |
8,677 |
5,889 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,813 |
1,041 |
781 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,774 |
1,117 |
661 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,426 |
1,520 |
947 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,831 |
1,025 |
810 |
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 |
35 |
12 |
17.2 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
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,556 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,105 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,427 |
0 |
0 |
0 |
8 |
0 |
47 |
12 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,216 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
105,285 |
0 |
0 |
0 |
8 |
0 |
1,991 |
50 |
bash |
9 |
no-host |
bin-true |
65,425 |
0 |
0 |
0 |
8 |
0 |
1,993 |
49 |
dash |
17 |
no-host |
bin-true |
747,265 |
0 |
0 |
0 |
8 |
0 |
1,993 |
194 |
osh-cpython |
25 |
no-host |
bin-true |
129,196 |
0 |
0 |
0 |
16 |
0 |
1,984 |
46 |
osh-native |
2 |
no-host |
configure.cpython |
2,214,825 |
0 |
0 |
0 |
32,928 |
0 |
14,507 |
1,019 |
bash |
10 |
no-host |
configure.cpython |
2,252,589 |
1 |
0 |
0 |
32,992 |
0 |
14,590 |
1,149 |
dash |
18 |
no-host |
configure.cpython |
6,114,870 |
1 |
0 |
0 |
27,512 |
0 |
13,247 |
1,207 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,237,830 |
0 |
0 |
0 |
27,520 |
0 |
13,232 |
980 |
osh-native |
4 |
no-host |
configure.ocaml |
410,925 |
0 |
0 |
0 |
5,120 |
0 |
1,948 |
175 |
bash |
12 |
no-host |
configure.ocaml |
391,282 |
0 |
0 |
0 |
5,112 |
0 |
1,940 |
147 |
dash |
20 |
no-host |
configure.ocaml |
638,057 |
0 |
0 |
0 |
5,112 |
0 |
1,859 |
203 |
osh-cpython |
28 |
no-host |
configure.ocaml |
412,961 |
0 |
0 |
0 |
5,120 |
0 |
1,934 |
152 |
osh-native |
5 |
no-host |
configure.tcc |
6,549 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,468 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,178 |
0 |
0 |
0 |
96 |
0 |
53 |
10 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,985 |
0 |
0 |
0 |
104 |
0 |
47 |
12 |
osh-native |
3 |
no-host |
configure.util-linux |
2,094,226 |
0 |
0 |
0 |
42,408 |
0 |
18,600 |
1,096 |
bash |
11 |
no-host |
configure.util-linux |
2,261,977 |
1 |
0 |
0 |
42,592 |
0 |
17,480 |
1,064 |
dash |
19 |
no-host |
configure.util-linux |
5,307,353 |
16 |
0 |
0 |
39,112 |
0 |
17,047 |
1,314 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,019,449 |
2 |
0 |
0 |
39,120 |
0 |
17,051 |
1,113 |
osh-native |
6 |
no-host |
configure.yash |
256,537 |
0 |
0 |
0 |
4,120 |
0 |
868 |
68 |
bash |
14 |
no-host |
configure.yash |
244,994 |
0 |
0 |
0 |
3,720 |
0 |
868 |
78 |
dash |
22 |
no-host |
configure.yash |
384,896 |
0 |
0 |
0 |
3,728 |
0 |
859 |
92 |
osh-cpython |
30 |
no-host |
configure.yash |
258,805 |
0 |
0 |
0 |
3,736 |
0 |
849 |
80 |
osh-native |
0 |
no-host |
hello-world |
152 |
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,641 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
342 |
0 |
0 |
0 |
16 |
0 |
0 |
1 |
osh-native |
Shell and Host