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 |
449 |
22 |
23.60 |
1.15 |
bin-true |
no-host |
674 |
540 |
2,253 |
811 |
3.34 |
1.20 |
configure.cpython |
no-host |
14,902 |
14,944 |
28,340 |
15,164 |
1.90 |
1.02 |
configure.ocaml |
no-host |
3,771 |
3,705 |
4,598 |
3,849 |
1.22 |
1.02 |
configure.tcc |
no-host |
47 |
42 |
194 |
49 |
4.08 |
1.03 |
configure.util-linux |
no-host |
13,931 |
14,783 |
30,871 |
14,407 |
2.22 |
1.03 |
configure.yash |
no-host |
1,818 |
1,753 |
2,439 |
1,855 |
1.34 |
1.02 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
30.10 |
1.78 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,519 |
1,114 |
22,871 |
3,159 |
9.08 |
1.25 |
bin-true |
no-host |
105,386 |
65,415 |
759,023 |
127,222 |
7.20 |
1.21 |
configure.cpython |
no-host |
2,225,553 |
2,244,343 |
6,168,078 |
2,229,296 |
2.77 |
1.00 |
configure.ocaml |
no-host |
410,828 |
391,463 |
640,577 |
413,417 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,552 |
5,486 |
23,236 |
7,001 |
3.55 |
1.07 |
configure.util-linux |
no-host |
2,098,940 |
2,268,508 |
5,333,341 |
1,993,803 |
2.54 |
0.95 |
configure.yash |
no-host |
256,573 |
244,191 |
385,332 |
257,712 |
1.50 |
1.00 |
hello-world |
no-host |
153 |
82 |
3,695 |
349 |
24.15 |
2.28 |
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 |
811 |
1 |
2 |
2.6 |
7.9 |
154,714 |
13,066 |
2,818 |
9,734 |
78,361 |
66,619 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,164 |
1 |
58 |
15.0 |
27.3 |
1,772,695 |
49,108 |
28,528 |
86,381 |
908,118 |
778,196 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,407 |
3 |
60 |
21.3 |
30.3 |
2,703,431 |
42,745 |
65,832 |
109,643 |
1,320,616 |
1,273,172 |
27,391 |
41 |
131,664 |
1 |
configure.ocaml |
no-host |
3,849 |
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,855 |
1 |
2 |
2.6 |
24.4 |
139,720 |
7,961 |
6,620 |
6,320 |
70,324 |
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 |
17 |
3 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
449 |
414 |
38 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
15 |
8 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
674 |
507 |
197 |
3.0 |
bash |
9 |
no-host |
bin-true |
540 |
421 |
129 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,253 |
1,510 |
1,006 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
811 |
569 |
256 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
14,902 |
9,305 |
5,996 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
14,944 |
8,927 |
6,435 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,340 |
17,152 |
13,020 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,164 |
9,090 |
6,331 |
27.3 |
osh-native |
4 |
no-host |
configure.ocaml |
3,771 |
1,555 |
1,257 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,705 |
1,629 |
1,095 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,598 |
2,213 |
1,586 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,849 |
1,710 |
1,178 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
34 |
14 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
22 |
20 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
194 |
154 |
43 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
28 |
21 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
13,931 |
8,881 |
5,507 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,783 |
9,098 |
6,172 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
30,871 |
20,455 |
11,486 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,407 |
8,712 |
5,886 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,818 |
1,051 |
771 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,753 |
1,001 |
756 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,439 |
1,468 |
1,013 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,855 |
1,094 |
762 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
48 |
32 |
16 |
17.4 |
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,519 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,114 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
22,871 |
0 |
0 |
0 |
8 |
0 |
45 |
13 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,159 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
1 |
no-host |
bin-true |
105,386 |
0 |
0 |
0 |
8 |
0 |
1,990 |
41 |
bash |
9 |
no-host |
bin-true |
65,415 |
0 |
0 |
0 |
8 |
0 |
1,983 |
98 |
dash |
17 |
no-host |
bin-true |
759,023 |
0 |
0 |
0 |
8 |
0 |
2,000 |
244 |
osh-cpython |
25 |
no-host |
bin-true |
127,222 |
0 |
0 |
0 |
16 |
0 |
1,989 |
126 |
osh-native |
2 |
no-host |
configure.cpython |
2,225,553 |
0 |
0 |
0 |
32,928 |
0 |
14,469 |
1,167 |
bash |
10 |
no-host |
configure.cpython |
2,244,343 |
0 |
0 |
0 |
32,992 |
0 |
14,591 |
1,028 |
dash |
18 |
no-host |
configure.cpython |
6,168,078 |
0 |
0 |
0 |
27,512 |
0 |
13,207 |
1,232 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,229,296 |
0 |
0 |
0 |
27,520 |
0 |
13,272 |
1,078 |
osh-native |
4 |
no-host |
configure.ocaml |
410,828 |
0 |
0 |
0 |
5,120 |
0 |
1,948 |
162 |
bash |
12 |
no-host |
configure.ocaml |
391,463 |
0 |
0 |
0 |
5,112 |
0 |
1,861 |
139 |
dash |
20 |
no-host |
configure.ocaml |
640,577 |
0 |
0 |
0 |
5,112 |
0 |
1,854 |
160 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,417 |
0 |
0 |
0 |
5,120 |
0 |
1,935 |
169 |
osh-native |
5 |
no-host |
configure.tcc |
6,552 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,486 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,236 |
0 |
0 |
0 |
96 |
0 |
53 |
10 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,001 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
3 |
no-host |
configure.util-linux |
2,098,940 |
1 |
0 |
0 |
42,400 |
0 |
18,633 |
1,182 |
bash |
11 |
no-host |
configure.util-linux |
2,268,508 |
2 |
0 |
0 |
42,584 |
0 |
17,506 |
1,085 |
dash |
19 |
no-host |
configure.util-linux |
5,333,341 |
18 |
0 |
0 |
39,112 |
0 |
16,969 |
1,316 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,993,803 |
1 |
0 |
0 |
39,120 |
0 |
17,014 |
1,139 |
osh-native |
6 |
no-host |
configure.yash |
256,573 |
0 |
0 |
0 |
4,120 |
0 |
873 |
129 |
bash |
14 |
no-host |
configure.yash |
244,191 |
0 |
0 |
0 |
3,720 |
0 |
866 |
74 |
dash |
22 |
no-host |
configure.yash |
385,332 |
0 |
0 |
0 |
3,728 |
0 |
852 |
271 |
osh-cpython |
30 |
no-host |
configure.yash |
257,712 |
0 |
0 |
0 |
3,736 |
0 |
848 |
85 |
osh-native |
0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
bash |
8 |
no-host |
hello-world |
82 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,695 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host