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 |
454 |
22 |
23.64 |
1.13 |
bin-true |
no-host |
673 |
542 |
2,259 |
819 |
3.36 |
1.22 |
configure.cpython |
no-host |
15,180 |
14,969 |
28,433 |
15,148 |
1.87 |
1.00 |
configure.ocaml |
no-host |
3,799 |
3,763 |
4,612 |
3,872 |
1.21 |
1.02 |
configure.tcc |
no-host |
49 |
42 |
191 |
49 |
3.93 |
1.01 |
configure.util-linux |
no-host |
14,072 |
14,815 |
31,182 |
14,270 |
2.22 |
1.01 |
configure.yash |
no-host |
1,827 |
1,772 |
2,432 |
1,816 |
1.33 |
0.99 |
hello-world |
no-host |
1 |
1 |
49 |
3 |
33.55 |
1.99 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,528 |
1,133 |
22,959 |
3,161 |
9.08 |
1.25 |
bin-true |
no-host |
106,328 |
65,397 |
757,667 |
128,190 |
7.13 |
1.21 |
configure.cpython |
no-host |
2,226,475 |
2,240,528 |
6,183,193 |
2,228,920 |
2.78 |
1.00 |
configure.ocaml |
no-host |
410,226 |
390,913 |
639,867 |
413,535 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,537 |
5,468 |
22,765 |
7,002 |
3.48 |
1.07 |
configure.util-linux |
no-host |
2,104,335 |
2,259,817 |
5,330,276 |
1,998,915 |
2.53 |
0.95 |
configure.yash |
no-host |
256,597 |
245,192 |
385,077 |
257,446 |
1.50 |
1.00 |
hello-world |
no-host |
151 |
84 |
3,698 |
348 |
24.49 |
2.30 |
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.3 |
3,749 |
3,749 |
0 |
684 |
1,892 |
1,173 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
819 |
1 |
2 |
2.6 |
8.1 |
154,714 |
13,066 |
2,818 |
9,734 |
78,361 |
66,619 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,148 |
1 |
60 |
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,270 |
3 |
59 |
21.3 |
30.1 |
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,872 |
1 |
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.4 |
30,549 |
30,549 |
0 |
1,504 |
14,816 |
14,229 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,816 |
1 |
2 |
2.6 |
24.4 |
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.9 |
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 |
14 |
6 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
454 |
419 |
38 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
15 |
7 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
673 |
517 |
187 |
2.9 |
bash |
9 |
no-host |
bin-true |
542 |
416 |
136 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,259 |
1,522 |
1,004 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
819 |
572 |
261 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,180 |
9,060 |
6,522 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
14,969 |
9,246 |
6,143 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
28,433 |
17,053 |
13,238 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,148 |
9,079 |
6,339 |
27.3 |
osh-native |
4 |
no-host |
configure.ocaml |
3,799 |
1,573 |
1,262 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,763 |
1,598 |
1,184 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,612 |
2,308 |
1,512 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,872 |
1,575 |
1,301 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
49 |
23 |
26 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
23 |
19 |
19.1 |
dash |
21 |
no-host |
configure.tcc |
191 |
132 |
62 |
19.8 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
23 |
26 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,072 |
9,056 |
5,493 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,815 |
9,060 |
6,241 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,182 |
21,044 |
11,229 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,270 |
8,659 |
5,803 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,827 |
1,083 |
751 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,772 |
1,119 |
656 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,432 |
1,466 |
1,008 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,816 |
1,049 |
771 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
16 |
no-host |
hello-world |
49 |
33 |
16 |
17.6 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
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,528 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,133 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
22,959 |
0 |
0 |
0 |
8 |
0 |
45 |
13 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,161 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
1 |
no-host |
bin-true |
106,328 |
0 |
0 |
0 |
8 |
0 |
1,994 |
69 |
bash |
9 |
no-host |
bin-true |
65,397 |
0 |
0 |
0 |
8 |
0 |
1,989 |
73 |
dash |
17 |
no-host |
bin-true |
757,667 |
0 |
0 |
0 |
8 |
0 |
1,997 |
95 |
osh-cpython |
25 |
no-host |
bin-true |
128,190 |
0 |
0 |
0 |
16 |
0 |
1,994 |
65 |
osh-native |
2 |
no-host |
configure.cpython |
2,226,475 |
1 |
0 |
0 |
32,928 |
0 |
14,508 |
1,254 |
bash |
10 |
no-host |
configure.cpython |
2,240,528 |
0 |
0 |
0 |
32,992 |
0 |
14,711 |
1,061 |
dash |
18 |
no-host |
configure.cpython |
6,183,193 |
0 |
0 |
0 |
27,512 |
0 |
13,250 |
1,150 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,228,920 |
0 |
0 |
0 |
27,520 |
0 |
13,248 |
1,050 |
osh-native |
4 |
no-host |
configure.ocaml |
410,226 |
0 |
0 |
0 |
5,120 |
0 |
1,960 |
171 |
bash |
12 |
no-host |
configure.ocaml |
390,913 |
0 |
0 |
0 |
5,112 |
0 |
1,923 |
135 |
dash |
20 |
no-host |
configure.ocaml |
639,867 |
1 |
0 |
0 |
5,112 |
0 |
1,856 |
186 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,535 |
0 |
0 |
0 |
5,120 |
0 |
1,921 |
335 |
osh-native |
5 |
no-host |
configure.tcc |
6,537 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,468 |
0 |
0 |
0 |
96 |
0 |
46 |
3 |
dash |
21 |
no-host |
configure.tcc |
22,765 |
0 |
0 |
0 |
96 |
0 |
53 |
7 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,002 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,104,335 |
0 |
0 |
0 |
42,400 |
0 |
18,599 |
1,009 |
bash |
11 |
no-host |
configure.util-linux |
2,259,817 |
1 |
0 |
0 |
42,584 |
0 |
17,456 |
1,199 |
dash |
19 |
no-host |
configure.util-linux |
5,330,276 |
11 |
0 |
0 |
39,120 |
0 |
16,958 |
1,395 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,998,915 |
1 |
0 |
0 |
39,120 |
0 |
16,998 |
1,078 |
osh-native |
6 |
no-host |
configure.yash |
256,597 |
0 |
0 |
0 |
4,120 |
0 |
872 |
84 |
bash |
14 |
no-host |
configure.yash |
245,192 |
0 |
0 |
0 |
3,720 |
0 |
869 |
95 |
dash |
22 |
no-host |
configure.yash |
385,077 |
0 |
0 |
0 |
3,728 |
0 |
848 |
103 |
osh-cpython |
30 |
no-host |
configure.yash |
257,446 |
0 |
0 |
0 |
3,736 |
0 |
851 |
87 |
osh-native |
0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
84 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,698 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
348 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host