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 |
456 |
22 |
23.94 |
1.18 |
bin-true |
no-host |
676 |
539 |
2,252 |
808 |
3.33 |
1.20 |
configure.cpython |
no-host |
15,288 |
15,363 |
28,669 |
15,393 |
1.88 |
1.01 |
configure.ocaml |
no-host |
3,841 |
3,748 |
4,678 |
3,835 |
1.22 |
1.00 |
configure.tcc |
no-host |
47 |
41 |
200 |
49 |
4.22 |
1.03 |
configure.util-linux |
no-host |
14,268 |
14,939 |
31,158 |
14,513 |
2.18 |
1.02 |
configure.yash |
no-host |
1,821 |
1,775 |
2,491 |
1,838 |
1.37 |
1.01 |
hello-world |
no-host |
2 |
1 |
50 |
3 |
31.88 |
1.83 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,532 |
1,094 |
22,968 |
3,179 |
9.07 |
1.26 |
bin-true |
no-host |
104,393 |
66,417 |
759,850 |
127,149 |
7.28 |
1.22 |
configure.cpython |
no-host |
2,223,369 |
2,250,419 |
6,185,795 |
2,220,128 |
2.78 |
1.00 |
configure.ocaml |
no-host |
410,349 |
390,785 |
640,722 |
413,665 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,562 |
5,469 |
23,308 |
6,983 |
3.55 |
1.06 |
configure.util-linux |
no-host |
2,101,728 |
2,257,101 |
5,329,580 |
1,998,695 |
2.54 |
0.95 |
configure.yash |
no-host |
255,023 |
244,262 |
385,853 |
258,311 |
1.51 |
1.01 |
hello-world |
no-host |
152 |
82 |
3,697 |
349 |
24.32 |
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.0 |
3,749 |
3,749 |
0 |
684 |
1,892 |
1,173 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
808 |
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,393 |
1 |
63 |
15.0 |
27.5 |
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,513 |
3 |
61 |
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,835 |
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,838 |
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 |
9.0 |
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.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
456 |
412 |
46 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
11 |
12 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
676 |
502 |
205 |
2.9 |
bash |
9 |
no-host |
bin-true |
539 |
422 |
126 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,252 |
1,444 |
1,071 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
808 |
582 |
242 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,288 |
9,288 |
6,402 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,363 |
9,307 |
6,486 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,669 |
17,288 |
13,239 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,393 |
9,238 |
6,412 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,841 |
1,669 |
1,210 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,748 |
1,568 |
1,200 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,678 |
2,310 |
1,574 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,835 |
1,639 |
1,235 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
31 |
17 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
41 |
27 |
15 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
200 |
158 |
45 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
29 |
21 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,268 |
9,029 |
5,703 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,939 |
9,213 |
6,198 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,158 |
20,859 |
11,393 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,513 |
8,785 |
5,913 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,821 |
1,074 |
755 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,775 |
1,010 |
769 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,491 |
1,492 |
1,043 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,838 |
1,092 |
749 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
16 |
no-host |
hello-world |
50 |
25 |
24 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
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,532 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,094 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
22,968 |
0 |
0 |
0 |
8 |
0 |
45 |
7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,179 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
1 |
no-host |
bin-true |
104,393 |
0 |
0 |
0 |
8 |
0 |
1,989 |
84 |
bash |
9 |
no-host |
bin-true |
66,417 |
0 |
0 |
0 |
8 |
0 |
1,989 |
40 |
dash |
17 |
no-host |
bin-true |
759,850 |
0 |
0 |
0 |
8 |
0 |
1,995 |
195 |
osh-cpython |
25 |
no-host |
bin-true |
127,149 |
0 |
0 |
0 |
16 |
0 |
1,993 |
66 |
osh-native |
2 |
no-host |
configure.cpython |
2,223,369 |
1 |
0 |
0 |
32,928 |
0 |
14,477 |
1,060 |
bash |
10 |
no-host |
configure.cpython |
2,250,419 |
0 |
0 |
0 |
32,992 |
0 |
14,505 |
990 |
dash |
18 |
no-host |
configure.cpython |
6,185,795 |
0 |
0 |
0 |
27,512 |
0 |
13,232 |
1,232 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,220,128 |
0 |
0 |
0 |
27,520 |
0 |
13,161 |
930 |
osh-native |
4 |
no-host |
configure.ocaml |
410,349 |
0 |
0 |
0 |
5,120 |
0 |
1,950 |
186 |
bash |
12 |
no-host |
configure.ocaml |
390,785 |
0 |
0 |
0 |
5,112 |
0 |
1,883 |
118 |
dash |
20 |
no-host |
configure.ocaml |
640,722 |
0 |
0 |
0 |
5,112 |
0 |
1,851 |
317 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,665 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
153 |
osh-native |
5 |
no-host |
configure.tcc |
6,562 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,469 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,308 |
0 |
0 |
0 |
96 |
0 |
52 |
5 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,983 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
3 |
no-host |
configure.util-linux |
2,101,728 |
0 |
0 |
0 |
42,400 |
0 |
18,660 |
1,223 |
bash |
11 |
no-host |
configure.util-linux |
2,257,101 |
1 |
0 |
0 |
42,592 |
0 |
17,384 |
1,020 |
dash |
19 |
no-host |
configure.util-linux |
5,329,580 |
12 |
0 |
0 |
39,120 |
0 |
16,957 |
1,222 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,998,695 |
0 |
0 |
0 |
39,128 |
0 |
16,963 |
1,119 |
osh-native |
6 |
no-host |
configure.yash |
255,023 |
0 |
0 |
0 |
4,120 |
0 |
872 |
83 |
bash |
14 |
no-host |
configure.yash |
244,262 |
0 |
0 |
0 |
3,720 |
0 |
868 |
78 |
dash |
22 |
no-host |
configure.yash |
385,853 |
0 |
0 |
0 |
3,728 |
0 |
852 |
97 |
osh-cpython |
30 |
no-host |
configure.yash |
258,311 |
0 |
0 |
0 |
3,736 |
0 |
852 |
104 |
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,697 |
0 |
0 |
0 |
8 |
0 |
7 |
7 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host