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 |
23 |
23.57 |
1.18 |
bin-true |
no-host |
674 |
546 |
2,290 |
813 |
3.39 |
1.21 |
configure.cpython |
no-host |
15,290 |
15,382 |
29,067 |
15,536 |
1.90 |
1.02 |
configure.ocaml |
no-host |
3,894 |
3,815 |
4,713 |
3,904 |
1.21 |
1.00 |
configure.tcc |
no-host |
49 |
43 |
195 |
49 |
4.01 |
1.01 |
configure.util-linux |
no-host |
14,241 |
15,280 |
31,485 |
14,651 |
2.21 |
1.03 |
configure.yash |
no-host |
1,871 |
1,832 |
2,487 |
1,864 |
1.33 |
1.00 |
hello-world |
no-host |
2 |
1 |
50 |
3 |
33.47 |
1.88 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,513 |
1,094 |
22,944 |
3,190 |
9.13 |
1.27 |
bin-true |
no-host |
106,400 |
66,448 |
761,685 |
128,152 |
7.16 |
1.20 |
configure.cpython |
no-host |
2,218,664 |
2,245,074 |
6,187,189 |
2,226,071 |
2.79 |
1.00 |
configure.ocaml |
no-host |
411,574 |
390,993 |
638,917 |
413,238 |
1.55 |
1.00 |
configure.tcc |
no-host |
6,559 |
5,455 |
23,229 |
6,995 |
3.54 |
1.07 |
configure.util-linux |
no-host |
2,106,548 |
2,258,323 |
5,339,926 |
1,993,620 |
2.53 |
0.95 |
configure.yash |
no-host |
256,562 |
244,201 |
384,894 |
257,993 |
1.50 |
1.01 |
hello-world |
no-host |
151 |
85 |
3,694 |
350 |
24.46 |
2.32 |
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 |
813 |
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,536 |
1 |
63 |
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,651 |
3 |
62 |
21.3 |
30.1 |
2,703,426 |
42,745 |
65,812 |
109,643 |
1,320,611 |
1,273,172 |
27,391 |
41 |
131,624 |
1 |
configure.ocaml |
no-host |
3,904 |
1 |
2 |
2.6 |
20.7 |
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.5 |
30,549 |
30,549 |
0 |
1,504 |
14,816 |
14,229 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,864 |
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 |
23 |
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 |
17 |
3 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
7 |
3 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
454 |
409 |
49 |
21.7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
13 |
10 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
674 |
510 |
197 |
2.9 |
bash |
9 |
no-host |
bin-true |
546 |
420 |
136 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,290 |
1,493 |
1,073 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
813 |
588 |
238 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,290 |
9,380 |
6,310 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,382 |
9,237 |
6,570 |
27.1 |
dash |
18 |
no-host |
configure.cpython |
29,067 |
17,563 |
13,403 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,536 |
9,098 |
6,697 |
27.3 |
osh-native |
4 |
no-host |
configure.ocaml |
3,894 |
1,752 |
1,173 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,815 |
1,559 |
1,274 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,713 |
2,219 |
1,707 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,904 |
1,656 |
1,287 |
20.7 |
osh-native |
5 |
no-host |
configure.tcc |
49 |
30 |
19 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
43 |
28 |
15 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
195 |
149 |
49 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
30 |
19 |
19.5 |
osh-native |
3 |
no-host |
configure.util-linux |
14,241 |
8,763 |
5,940 |
29.9 |
bash |
11 |
no-host |
configure.util-linux |
15,280 |
9,345 |
6,390 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,485 |
20,959 |
11,626 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,651 |
8,835 |
6,002 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,871 |
1,063 |
805 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,832 |
1,107 |
729 |
24.5 |
dash |
22 |
no-host |
configure.yash |
2,487 |
1,467 |
1,064 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,864 |
1,078 |
787 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.6 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
50 |
27 |
23 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
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,513 |
0 |
0 |
0 |
16 |
0 |
40 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,094 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
22,944 |
0 |
0 |
0 |
8 |
0 |
45 |
11 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,190 |
0 |
0 |
0 |
16 |
0 |
38 |
3 |
osh-native |
1 |
no-host |
bin-true |
106,400 |
0 |
0 |
0 |
8 |
0 |
1,984 |
33 |
bash |
9 |
no-host |
bin-true |
66,448 |
0 |
0 |
0 |
8 |
0 |
1,987 |
134 |
dash |
17 |
no-host |
bin-true |
761,685 |
0 |
0 |
0 |
8 |
0 |
1,993 |
131 |
osh-cpython |
25 |
no-host |
bin-true |
128,152 |
0 |
0 |
0 |
16 |
0 |
1,991 |
79 |
osh-native |
2 |
no-host |
configure.cpython |
2,218,664 |
0 |
0 |
0 |
32,928 |
0 |
14,534 |
1,063 |
bash |
10 |
no-host |
configure.cpython |
2,245,074 |
0 |
0 |
0 |
32,992 |
0 |
14,566 |
1,160 |
dash |
18 |
no-host |
configure.cpython |
6,187,189 |
0 |
0 |
0 |
27,512 |
0 |
13,278 |
1,287 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,226,071 |
0 |
0 |
0 |
27,520 |
0 |
13,279 |
958 |
osh-native |
4 |
no-host |
configure.ocaml |
411,574 |
0 |
0 |
0 |
5,120 |
0 |
1,964 |
169 |
bash |
12 |
no-host |
configure.ocaml |
390,993 |
0 |
0 |
0 |
5,112 |
0 |
1,917 |
161 |
dash |
20 |
no-host |
configure.ocaml |
638,917 |
0 |
0 |
0 |
5,112 |
0 |
1,850 |
208 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,238 |
0 |
0 |
0 |
5,120 |
0 |
1,929 |
193 |
osh-native |
5 |
no-host |
configure.tcc |
6,559 |
0 |
0 |
0 |
104 |
0 |
49 |
4 |
bash |
13 |
no-host |
configure.tcc |
5,455 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
dash |
21 |
no-host |
configure.tcc |
23,229 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,995 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,106,548 |
0 |
0 |
0 |
42,408 |
0 |
18,576 |
1,146 |
bash |
11 |
no-host |
configure.util-linux |
2,258,323 |
0 |
0 |
0 |
42,592 |
0 |
17,426 |
1,171 |
dash |
19 |
no-host |
configure.util-linux |
5,339,926 |
5 |
0 |
0 |
39,112 |
0 |
16,972 |
1,312 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,993,620 |
0 |
0 |
0 |
39,120 |
0 |
16,975 |
981 |
osh-native |
6 |
no-host |
configure.yash |
256,562 |
0 |
0 |
0 |
4,120 |
0 |
873 |
93 |
bash |
14 |
no-host |
configure.yash |
244,201 |
0 |
0 |
0 |
3,720 |
0 |
868 |
69 |
dash |
22 |
no-host |
configure.yash |
384,894 |
0 |
0 |
0 |
3,728 |
0 |
852 |
106 |
osh-cpython |
30 |
no-host |
configure.yash |
257,993 |
0 |
0 |
0 |
3,736 |
0 |
848 |
93 |
osh-native |
0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
85 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,694 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
350 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host