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 |
450 |
22 |
23.80 |
1.17 |
bin-true |
no-host |
675 |
539 |
2,232 |
813 |
3.31 |
1.20 |
configure.cpython |
no-host |
14,784 |
14,910 |
28,273 |
15,009 |
1.91 |
1.02 |
configure.ocaml |
no-host |
3,764 |
3,700 |
4,570 |
3,798 |
1.21 |
1.01 |
configure.tcc |
no-host |
47 |
41 |
191 |
49 |
4.08 |
1.04 |
configure.util-linux |
no-host |
13,856 |
14,678 |
30,579 |
14,181 |
2.21 |
1.02 |
configure.yash |
no-host |
1,825 |
1,743 |
2,406 |
1,804 |
1.32 |
0.99 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
29.53 |
1.74 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,563 |
1,098 |
22,933 |
3,155 |
8.95 |
1.23 |
bin-true |
no-host |
107,378 |
66,436 |
763,801 |
128,197 |
7.11 |
1.19 |
configure.cpython |
no-host |
2,222,541 |
2,246,008 |
6,188,691 |
2,225,353 |
2.78 |
1.00 |
configure.ocaml |
no-host |
410,939 |
391,197 |
640,518 |
413,375 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,534 |
5,473 |
23,286 |
6,995 |
3.56 |
1.07 |
configure.util-linux |
no-host |
2,106,616 |
2,259,868 |
5,337,387 |
1,998,400 |
2.53 |
0.95 |
configure.yash |
no-host |
256,014 |
245,289 |
385,773 |
258,615 |
1.51 |
1.01 |
hello-world |
no-host |
152 |
82 |
3,693 |
348 |
24.30 |
2.29 |
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.2 |
3,749 |
3,749 |
0 |
684 |
1,892 |
1,173 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
813 |
1 |
2 |
2.6 |
8.0 |
154,714 |
13,066 |
2,818 |
9,734 |
78,361 |
66,619 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,009 |
1 |
58 |
15.0 |
27.3 |
1,772,690 |
49,108 |
28,528 |
86,381 |
908,113 |
778,196 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,181 |
3 |
58 |
21.3 |
30.3 |
2,703,426 |
42,745 |
65,832 |
109,643 |
1,320,611 |
1,273,172 |
27,391 |
41 |
131,664 |
1 |
configure.ocaml |
no-host |
3,798 |
0 |
2 |
2.6 |
20.6 |
150,060 |
10,993 |
5,163 |
7,513 |
71,649 |
70,898 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,549 |
30,549 |
0 |
1,504 |
14,816 |
14,229 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,804 |
1 |
2 |
2.6 |
24.5 |
139,717 |
7,961 |
6,620 |
6,320 |
70,321 |
63,076 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.8 |
116,292 |
64,471 |
42,681 |
4,555 |
54,561 |
57,176 |
270 |
3 |
85,362 |
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 |
18 |
1 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
2 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
450 |
421 |
32 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
18 |
5 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
675 |
503 |
202 |
3.0 |
bash |
9 |
no-host |
bin-true |
539 |
418 |
130 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,232 |
1,487 |
1,000 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
813 |
593 |
235 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
14,784 |
9,039 |
6,141 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
14,910 |
9,158 |
6,170 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,273 |
17,375 |
12,742 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,009 |
8,896 |
6,380 |
27.3 |
osh-native |
4 |
no-host |
configure.ocaml |
3,764 |
1,628 |
1,175 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,700 |
1,533 |
1,186 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,570 |
2,189 |
1,587 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,798 |
1,524 |
1,313 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
34 |
13 |
19.1 |
bash |
13 |
no-host |
configure.tcc |
41 |
33 |
8 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
191 |
142 |
52 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
25 |
24 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
13,856 |
8,822 |
5,509 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,678 |
8,992 |
6,181 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
30,579 |
20,452 |
11,192 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,181 |
8,708 |
5,668 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,825 |
1,065 |
766 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,743 |
1,088 |
659 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,406 |
1,541 |
908 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,804 |
1,074 |
734 |
24.5 |
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 |
48 |
24 |
23 |
17.6 |
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,563 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
bash |
15 |
no-host |
abuild-print-help |
1,098 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
22,933 |
0 |
0 |
0 |
8 |
0 |
45 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,155 |
0 |
0 |
0 |
16 |
0 |
38 |
1 |
osh-native |
1 |
no-host |
bin-true |
107,378 |
0 |
0 |
0 |
8 |
0 |
1,996 |
76 |
bash |
9 |
no-host |
bin-true |
66,436 |
0 |
0 |
0 |
8 |
0 |
1,986 |
45 |
dash |
17 |
no-host |
bin-true |
763,801 |
0 |
0 |
0 |
8 |
0 |
2,001 |
223 |
osh-cpython |
25 |
no-host |
bin-true |
128,197 |
0 |
0 |
0 |
16 |
0 |
1,993 |
126 |
osh-native |
2 |
no-host |
configure.cpython |
2,222,541 |
0 |
0 |
0 |
32,928 |
0 |
14,495 |
1,053 |
bash |
10 |
no-host |
configure.cpython |
2,246,008 |
0 |
0 |
0 |
32,992 |
0 |
14,618 |
987 |
dash |
18 |
no-host |
configure.cpython |
6,188,691 |
0 |
0 |
0 |
27,512 |
0 |
13,317 |
1,241 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,225,353 |
0 |
0 |
0 |
27,520 |
0 |
13,215 |
1,056 |
osh-native |
4 |
no-host |
configure.ocaml |
410,939 |
0 |
0 |
0 |
5,120 |
0 |
1,946 |
171 |
bash |
12 |
no-host |
configure.ocaml |
391,197 |
0 |
0 |
0 |
5,112 |
0 |
1,940 |
158 |
dash |
20 |
no-host |
configure.ocaml |
640,518 |
0 |
0 |
0 |
5,112 |
0 |
1,857 |
185 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,375 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
176 |
osh-native |
5 |
no-host |
configure.tcc |
6,534 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,473 |
0 |
0 |
0 |
96 |
0 |
45 |
5 |
dash |
21 |
no-host |
configure.tcc |
23,286 |
0 |
0 |
0 |
96 |
0 |
53 |
5 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,995 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,106,616 |
0 |
0 |
0 |
42,400 |
0 |
18,498 |
1,125 |
bash |
11 |
no-host |
configure.util-linux |
2,259,868 |
1 |
0 |
0 |
42,592 |
0 |
17,471 |
1,058 |
dash |
19 |
no-host |
configure.util-linux |
5,337,387 |
12 |
0 |
0 |
39,112 |
0 |
16,955 |
1,137 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,998,400 |
0 |
0 |
0 |
39,128 |
0 |
16,958 |
904 |
osh-native |
6 |
no-host |
configure.yash |
256,014 |
0 |
0 |
0 |
4,120 |
0 |
883 |
79 |
bash |
14 |
no-host |
configure.yash |
245,289 |
0 |
0 |
0 |
3,720 |
0 |
869 |
82 |
dash |
22 |
no-host |
configure.yash |
385,773 |
0 |
0 |
0 |
3,728 |
0 |
856 |
86 |
osh-cpython |
30 |
no-host |
configure.yash |
258,615 |
0 |
0 |
0 |
3,736 |
0 |
847 |
83 |
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,693 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
348 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host