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 |
477 |
23 |
24.89 |
1.18 |
bin-true |
no-host |
681 |
541 |
2,275 |
815 |
3.34 |
1.20 |
configure.cpython |
no-host |
15,294 |
15,346 |
29,064 |
15,679 |
1.90 |
1.03 |
configure.ocaml |
no-host |
3,875 |
3,802 |
4,763 |
3,921 |
1.23 |
1.01 |
configure.tcc |
no-host |
50 |
42 |
196 |
49 |
3.95 |
0.99 |
configure.util-linux |
no-host |
14,248 |
15,151 |
31,565 |
14,815 |
2.22 |
1.04 |
configure.yash |
no-host |
1,878 |
1,812 |
2,482 |
1,858 |
1.32 |
0.99 |
hello-world |
no-host |
2 |
1 |
54 |
3 |
35.84 |
2.25 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,530 |
1,102 |
23,431 |
3,221 |
9.26 |
1.27 |
bin-true |
no-host |
105,387 |
66,431 |
752,469 |
126,154 |
7.14 |
1.20 |
configure.cpython |
no-host |
2,223,548 |
2,245,784 |
6,140,567 |
2,229,116 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,808 |
390,721 |
638,866 |
413,295 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,557 |
5,485 |
23,176 |
6,971 |
3.53 |
1.06 |
configure.util-linux |
no-host |
2,099,971 |
2,257,723 |
5,334,379 |
2,009,729 |
2.54 |
0.96 |
configure.yash |
no-host |
255,564 |
244,475 |
386,401 |
257,778 |
1.51 |
1.01 |
hello-world |
no-host |
155 |
80 |
3,662 |
350 |
23.63 |
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.3 |
6.2 |
3,722 |
3,722 |
0 |
684 |
1,874 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
815 |
1 |
2 |
2.7 |
8.0 |
154,687 |
12,991 |
2,798 |
11,737 |
78,343 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,679 |
1 |
64 |
15.8 |
27.3 |
1,772,603 |
49,196 |
28,507 |
101,770 |
908,050 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,815 |
3 |
62 |
22.2 |
30.1 |
2,703,267 |
44,765 |
65,791 |
126,121 |
1,320,494 |
1,256,652 |
49,081 |
41 |
131,582 |
1 |
configure.ocaml |
no-host |
3,921 |
1 |
2 |
2.7 |
20.4 |
150,029 |
11,044 |
5,137 |
8,602 |
71,628 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,522 |
30,522 |
0 |
1,599 |
14,798 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,858 |
1 |
2 |
2.6 |
24.4 |
139,686 |
7,963 |
6,599 |
7,554 |
70,300 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.9 |
116,265 |
64,454 |
42,662 |
4,609 |
54,543 |
57,113 |
478 |
3 |
85,324 |
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 |
16 |
4 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
477 |
436 |
44 |
21.5 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
15 |
8 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
681 |
479 |
229 |
3.0 |
bash |
9 |
no-host |
bin-true |
541 |
417 |
135 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,275 |
1,453 |
1,091 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
815 |
590 |
240 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,294 |
9,315 |
6,375 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,346 |
9,199 |
6,565 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
29,064 |
17,579 |
13,369 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,679 |
9,161 |
6,791 |
27.3 |
osh-native |
4 |
no-host |
configure.ocaml |
3,875 |
1,696 |
1,218 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,802 |
1,648 |
1,171 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,763 |
2,340 |
1,640 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,921 |
1,654 |
1,304 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
50 |
33 |
17 |
19.1 |
bash |
13 |
no-host |
configure.tcc |
42 |
25 |
18 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
196 |
161 |
38 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
28 |
21 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,248 |
8,932 |
5,797 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
15,151 |
9,277 |
6,369 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,565 |
21,057 |
11,608 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,815 |
8,771 |
6,236 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,878 |
1,157 |
730 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,812 |
1,016 |
800 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,482 |
1,513 |
1,013 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,858 |
1,048 |
814 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
54 |
37 |
17 |
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,530 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,102 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,431 |
0 |
0 |
0 |
8 |
0 |
47 |
11 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,221 |
0 |
0 |
0 |
16 |
0 |
41 |
4 |
osh-native |
1 |
no-host |
bin-true |
105,387 |
0 |
0 |
0 |
8 |
0 |
1,985 |
94 |
bash |
9 |
no-host |
bin-true |
66,431 |
0 |
0 |
0 |
8 |
0 |
1,988 |
46 |
dash |
17 |
no-host |
bin-true |
752,469 |
0 |
0 |
0 |
8 |
0 |
1,999 |
421 |
osh-cpython |
25 |
no-host |
bin-true |
126,154 |
0 |
0 |
0 |
16 |
0 |
1,990 |
107 |
osh-native |
2 |
no-host |
configure.cpython |
2,223,548 |
0 |
0 |
0 |
32,928 |
0 |
14,539 |
1,105 |
bash |
10 |
no-host |
configure.cpython |
2,245,784 |
0 |
0 |
0 |
32,992 |
0 |
14,625 |
1,396 |
dash |
18 |
no-host |
configure.cpython |
6,140,567 |
0 |
0 |
0 |
27,512 |
0 |
13,291 |
1,342 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,229,116 |
0 |
0 |
0 |
27,520 |
0 |
13,197 |
1,071 |
osh-native |
4 |
no-host |
configure.ocaml |
410,808 |
0 |
0 |
0 |
5,120 |
0 |
1,946 |
150 |
bash |
12 |
no-host |
configure.ocaml |
390,721 |
0 |
0 |
0 |
5,112 |
0 |
1,877 |
151 |
dash |
20 |
no-host |
configure.ocaml |
638,866 |
0 |
0 |
0 |
5,112 |
0 |
1,848 |
181 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,295 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
172 |
osh-native |
5 |
no-host |
configure.tcc |
6,557 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,485 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,176 |
0 |
0 |
0 |
96 |
0 |
54 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,971 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,099,971 |
0 |
0 |
0 |
42,408 |
0 |
18,565 |
1,046 |
bash |
11 |
no-host |
configure.util-linux |
2,257,723 |
0 |
0 |
0 |
42,592 |
0 |
17,459 |
1,124 |
dash |
19 |
no-host |
configure.util-linux |
5,334,379 |
14 |
0 |
0 |
39,112 |
0 |
17,079 |
1,153 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,009,729 |
1 |
0 |
0 |
39,128 |
0 |
17,185 |
1,125 |
osh-native |
6 |
no-host |
configure.yash |
255,564 |
0 |
0 |
0 |
4,120 |
0 |
866 |
81 |
bash |
14 |
no-host |
configure.yash |
244,475 |
0 |
0 |
0 |
3,720 |
0 |
869 |
83 |
dash |
22 |
no-host |
configure.yash |
386,401 |
0 |
0 |
0 |
3,728 |
0 |
857 |
98 |
osh-cpython |
30 |
no-host |
configure.yash |
257,778 |
0 |
0 |
0 |
3,736 |
0 |
852 |
98 |
osh-native |
0 |
no-host |
hello-world |
155 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
80 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,662 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
24 |
no-host |
hello-world |
350 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host