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 |
481 |
23 |
24.86 |
1.20 |
bin-true |
no-host |
675 |
543 |
2,241 |
837 |
3.32 |
1.24 |
configure.cpython |
no-host |
15,029 |
15,701 |
30,397 |
16,095 |
2.02 |
1.07 |
configure.ocaml |
no-host |
3,951 |
3,876 |
4,782 |
4,004 |
1.21 |
1.01 |
configure.tcc |
no-host |
49 |
44 |
201 |
51 |
4.11 |
1.04 |
configure.util-linux |
no-host |
14,658 |
15,639 |
33,465 |
15,322 |
2.28 |
1.05 |
configure.yash |
no-host |
1,889 |
1,846 |
2,551 |
1,936 |
1.35 |
1.03 |
hello-world |
no-host |
1 |
1 |
51 |
3 |
35.06 |
2.05 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,562 |
1,123 |
22,973 |
3,183 |
8.97 |
1.24 |
bin-true |
no-host |
104,380 |
66,446 |
729,032 |
130,166 |
6.98 |
1.25 |
configure.cpython |
no-host |
2,231,927 |
2,247,908 |
6,071,087 |
2,231,509 |
2.72 |
1.00 |
configure.ocaml |
no-host |
410,793 |
391,267 |
635,499 |
413,108 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,530 |
5,468 |
22,932 |
6,980 |
3.51 |
1.07 |
configure.util-linux |
no-host |
2,094,434 |
2,266,177 |
5,304,965 |
2,019,368 |
2.53 |
0.96 |
configure.yash |
no-host |
255,421 |
245,071 |
382,605 |
259,091 |
1.50 |
1.01 |
hello-world |
no-host |
152 |
83 |
3,652 |
343 |
24.03 |
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.2 |
3,711 |
3,711 |
0 |
681 |
1,866 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
837 |
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 |
16,095 |
1 |
66 |
15.9 |
27.4 |
1,772,935 |
49,191 |
28,502 |
101,923 |
908,314 |
762,698 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
15,322 |
3 |
67 |
22.2 |
30.1 |
2,703,259 |
44,760 |
65,786 |
126,121 |
1,320,486 |
1,256,652 |
49,081 |
41 |
131,572 |
1 |
configure.ocaml |
no-host |
4,004 |
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 |
51 |
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,936 |
1 |
2 |
2.6 |
24.2 |
139,678 |
7,958 |
6,594 |
7,554 |
70,292 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
9.0 |
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 |
11 |
8 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
5 |
5 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
481 |
435 |
49 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
16 |
8 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
675 |
507 |
196 |
2.9 |
bash |
9 |
no-host |
bin-true |
543 |
412 |
140 |
1.3 |
dash |
17 |
no-host |
bin-true |
2,241 |
1,460 |
1,038 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
837 |
605 |
249 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,029 |
9,082 |
6,348 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,701 |
9,476 |
6,652 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
30,397 |
18,376 |
13,945 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
16,095 |
9,442 |
6,920 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,951 |
1,739 |
1,247 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,876 |
1,654 |
1,241 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,782 |
2,266 |
1,725 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
4,004 |
1,650 |
1,393 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
49 |
33 |
17 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
44 |
28 |
16 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
201 |
142 |
62 |
19.1 |
osh-cpython |
29 |
no-host |
configure.tcc |
51 |
33 |
18 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,658 |
9,355 |
5,789 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,639 |
9,440 |
6,690 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
33,465 |
22,381 |
12,213 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
15,322 |
9,223 |
6,294 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,889 |
1,080 |
818 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,846 |
1,069 |
779 |
24.1 |
dash |
22 |
no-host |
configure.yash |
2,551 |
1,547 |
1,048 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,936 |
1,082 |
859 |
24.2 |
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 |
51 |
43 |
8 |
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,562 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,123 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
22,973 |
0 |
0 |
0 |
8 |
0 |
47 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,183 |
0 |
0 |
0 |
16 |
0 |
40 |
2 |
osh-native |
1 |
no-host |
bin-true |
104,380 |
0 |
0 |
0 |
8 |
0 |
1,990 |
106 |
bash |
9 |
no-host |
bin-true |
66,446 |
0 |
0 |
0 |
8 |
0 |
1,983 |
39 |
dash |
17 |
no-host |
bin-true |
729,032 |
0 |
0 |
0 |
8 |
0 |
1,992 |
184 |
osh-cpython |
25 |
no-host |
bin-true |
130,166 |
0 |
0 |
0 |
16 |
0 |
1,984 |
54 |
osh-native |
2 |
no-host |
configure.cpython |
2,231,927 |
0 |
0 |
0 |
32,928 |
0 |
14,456 |
1,090 |
bash |
10 |
no-host |
configure.cpython |
2,247,908 |
0 |
0 |
0 |
32,992 |
0 |
14,559 |
1,014 |
dash |
18 |
no-host |
configure.cpython |
6,071,087 |
2 |
0 |
0 |
27,512 |
0 |
13,243 |
1,366 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,231,509 |
0 |
0 |
0 |
27,520 |
0 |
13,217 |
970 |
osh-native |
4 |
no-host |
configure.ocaml |
410,793 |
0 |
0 |
0 |
5,120 |
0 |
1,953 |
164 |
bash |
12 |
no-host |
configure.ocaml |
391,267 |
0 |
0 |
0 |
5,112 |
0 |
1,927 |
148 |
dash |
20 |
no-host |
configure.ocaml |
635,499 |
0 |
0 |
0 |
5,112 |
0 |
1,868 |
271 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,108 |
0 |
0 |
0 |
5,120 |
0 |
1,937 |
148 |
osh-native |
5 |
no-host |
configure.tcc |
6,530 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,468 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
22,932 |
0 |
0 |
0 |
96 |
0 |
53 |
7 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,980 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,094,434 |
1 |
0 |
0 |
42,400 |
0 |
18,615 |
1,139 |
bash |
11 |
no-host |
configure.util-linux |
2,266,177 |
1 |
0 |
0 |
42,584 |
0 |
17,473 |
1,075 |
dash |
19 |
no-host |
configure.util-linux |
5,304,965 |
17 |
0 |
0 |
39,152 |
0 |
17,032 |
1,318 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,019,368 |
0 |
0 |
0 |
39,128 |
0 |
17,049 |
1,080 |
osh-native |
6 |
no-host |
configure.yash |
255,421 |
0 |
0 |
0 |
4,120 |
0 |
869 |
89 |
bash |
14 |
no-host |
configure.yash |
245,071 |
0 |
0 |
0 |
3,720 |
0 |
868 |
81 |
dash |
22 |
no-host |
configure.yash |
382,605 |
0 |
0 |
0 |
3,728 |
0 |
857 |
82 |
osh-cpython |
30 |
no-host |
configure.yash |
259,091 |
0 |
0 |
0 |
3,736 |
0 |
851 |
84 |
osh-native |
0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
83 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,652 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
24 |
no-host |
hello-world |
343 |
0 |
0 |
0 |
16 |
0 |
0 |
1 |
osh-native |
Shell and Host