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 |
9 |
456 |
22 |
23.36 |
1.15 |
bin-true |
no-host |
673 |
551 |
2,274 |
822 |
3.38 |
1.22 |
configure.cpython |
no-host |
15,259 |
15,318 |
29,421 |
15,595 |
1.93 |
1.02 |
configure.ocaml |
no-host |
3,872 |
3,790 |
4,723 |
3,871 |
1.22 |
1.00 |
configure.tcc |
no-host |
48 |
42 |
197 |
49 |
4.06 |
1.02 |
configure.util-linux |
no-host |
14,163 |
15,102 |
31,784 |
14,668 |
2.24 |
1.04 |
configure.yash |
no-host |
1,849 |
1,801 |
2,493 |
1,858 |
1.35 |
1.01 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
30.57 |
1.84 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,539 |
1,093 |
23,527 |
3,199 |
9.27 |
1.26 |
bin-true |
no-host |
103,324 |
67,393 |
749,104 |
129,270 |
7.25 |
1.25 |
configure.cpython |
no-host |
2,220,789 |
2,253,180 |
6,114,508 |
2,235,913 |
2.75 |
1.01 |
configure.ocaml |
no-host |
410,842 |
391,317 |
638,830 |
413,696 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,558 |
5,496 |
23,231 |
6,989 |
3.54 |
1.07 |
configure.util-linux |
no-host |
2,094,597 |
2,260,224 |
5,325,569 |
2,014,947 |
2.54 |
0.96 |
configure.yash |
no-host |
256,658 |
245,096 |
384,796 |
259,017 |
1.50 |
1.01 |
hello-world |
no-host |
153 |
82 |
3,649 |
342 |
23.85 |
2.24 |
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 |
822 |
1 |
2 |
2.7 |
8.0 |
154,662 |
12,890 |
2,792 |
11,730 |
78,321 |
64,611 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,595 |
1 |
66 |
15.8 |
27.4 |
1,772,605 |
49,191 |
28,502 |
101,770 |
908,047 |
762,788 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,668 |
3 |
65 |
22.2 |
30.3 |
2,703,269 |
44,760 |
65,786 |
126,121 |
1,320,491 |
1,256,657 |
49,081 |
41 |
131,572 |
1 |
configure.ocaml |
no-host |
3,871 |
1 |
2 |
2.7 |
20.4 |
150,027 |
11,039 |
5,132 |
8,602 |
71,623 |
69,802 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,514 |
30,514 |
0 |
1,599 |
14,790 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,858 |
1 |
2 |
2.6 |
24.1 |
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 |
9.0 |
116,229 |
64,449 |
42,657 |
4,603 |
54,507 |
57,119 |
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 |
14 |
5 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
10 |
0 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
456 |
413 |
46 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
16 |
7 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
673 |
478 |
227 |
3.0 |
bash |
9 |
no-host |
bin-true |
551 |
412 |
151 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,274 |
1,503 |
1,035 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
822 |
577 |
261 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,259 |
9,206 |
6,454 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,318 |
9,305 |
6,441 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,421 |
17,703 |
13,616 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,595 |
9,090 |
6,780 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,872 |
1,696 |
1,199 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,790 |
1,594 |
1,215 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,723 |
2,324 |
1,612 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,871 |
1,621 |
1,291 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
27 |
22 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
20 |
22 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
197 |
148 |
52 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
27 |
23 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,163 |
8,812 |
5,836 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,102 |
9,055 |
6,542 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,784 |
21,102 |
11,786 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,668 |
8,684 |
6,201 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,849 |
1,093 |
764 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,801 |
922 |
883 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,493 |
1,528 |
1,009 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,858 |
1,112 |
750 |
24.1 |
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 |
48 |
32 |
16 |
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,539 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,093 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,527 |
0 |
0 |
0 |
8 |
0 |
47 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,199 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
103,324 |
0 |
0 |
0 |
8 |
0 |
1,993 |
96 |
bash |
9 |
no-host |
bin-true |
67,393 |
0 |
0 |
0 |
8 |
0 |
1,986 |
204 |
dash |
17 |
no-host |
bin-true |
749,104 |
0 |
0 |
0 |
8 |
0 |
1,997 |
267 |
osh-cpython |
25 |
no-host |
bin-true |
129,270 |
0 |
0 |
0 |
16 |
0 |
1,987 |
91 |
osh-native |
2 |
no-host |
configure.cpython |
2,220,789 |
0 |
0 |
0 |
32,928 |
0 |
14,435 |
1,109 |
bash |
10 |
no-host |
configure.cpython |
2,253,180 |
0 |
0 |
0 |
32,992 |
0 |
14,620 |
996 |
dash |
18 |
no-host |
configure.cpython |
6,114,508 |
1 |
0 |
0 |
27,512 |
0 |
13,199 |
1,219 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,235,913 |
1 |
0 |
0 |
27,520 |
0 |
13,261 |
984 |
osh-native |
4 |
no-host |
configure.ocaml |
410,842 |
0 |
0 |
0 |
5,120 |
0 |
1,955 |
155 |
bash |
12 |
no-host |
configure.ocaml |
391,317 |
0 |
0 |
0 |
5,112 |
0 |
1,928 |
139 |
dash |
20 |
no-host |
configure.ocaml |
638,830 |
0 |
0 |
0 |
5,112 |
0 |
1,863 |
275 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,696 |
0 |
0 |
0 |
5,120 |
0 |
1,936 |
140 |
osh-native |
5 |
no-host |
configure.tcc |
6,558 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,496 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,231 |
0 |
0 |
0 |
96 |
0 |
53 |
14 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,989 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
3 |
no-host |
configure.util-linux |
2,094,597 |
0 |
0 |
0 |
42,408 |
0 |
18,620 |
1,053 |
bash |
11 |
no-host |
configure.util-linux |
2,260,224 |
1 |
0 |
0 |
42,592 |
0 |
17,492 |
1,109 |
dash |
19 |
no-host |
configure.util-linux |
5,325,569 |
11 |
0 |
0 |
39,112 |
0 |
17,083 |
1,219 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,014,947 |
0 |
0 |
0 |
39,120 |
0 |
17,255 |
1,018 |
osh-native |
6 |
no-host |
configure.yash |
256,658 |
0 |
0 |
0 |
4,120 |
0 |
870 |
74 |
bash |
14 |
no-host |
configure.yash |
245,096 |
0 |
0 |
0 |
3,720 |
0 |
869 |
79 |
dash |
22 |
no-host |
configure.yash |
384,796 |
0 |
0 |
0 |
3,728 |
0 |
857 |
110 |
osh-cpython |
30 |
no-host |
configure.yash |
259,017 |
0 |
0 |
0 |
3,736 |
0 |
852 |
84 |
osh-native |
0 |
no-host |
hello-world |
153 |
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,649 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
24 |
no-host |
hello-world |
342 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host