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 |
452 |
23 |
23.37 |
1.16 |
bin-true |
no-host |
676 |
545 |
2,256 |
824 |
3.34 |
1.22 |
configure.cpython |
no-host |
14,909 |
14,993 |
28,242 |
15,145 |
1.89 |
1.02 |
configure.ocaml |
no-host |
3,817 |
3,724 |
4,606 |
3,810 |
1.21 |
1.00 |
configure.tcc |
no-host |
48 |
42 |
190 |
49 |
3.93 |
1.01 |
configure.util-linux |
no-host |
13,975 |
14,853 |
30,781 |
14,358 |
2.20 |
1.03 |
configure.yash |
no-host |
1,811 |
1,753 |
2,439 |
1,814 |
1.35 |
1.00 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
28.85 |
1.69 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,569 |
1,089 |
23,402 |
3,188 |
9.11 |
1.24 |
bin-true |
no-host |
107,409 |
66,442 |
737,659 |
128,190 |
6.87 |
1.19 |
configure.cpython |
no-host |
2,216,911 |
2,246,747 |
6,103,122 |
2,236,240 |
2.75 |
1.01 |
configure.ocaml |
no-host |
410,611 |
391,241 |
637,390 |
413,621 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,545 |
5,476 |
23,152 |
6,975 |
3.54 |
1.07 |
configure.util-linux |
no-host |
2,093,724 |
2,259,562 |
5,298,477 |
2,018,003 |
2.53 |
0.96 |
configure.yash |
no-host |
256,147 |
244,100 |
384,117 |
258,095 |
1.50 |
1.01 |
hello-world |
no-host |
153 |
81 |
3,668 |
346 |
23.97 |
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,873 |
1,165 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
824 |
1 |
2 |
2.7 |
8.1 |
154,687 |
12,991 |
2,798 |
11,737 |
78,342 |
64,608 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,145 |
1 |
60 |
15.8 |
27.4 |
1,772,603 |
49,196 |
28,507 |
101,770 |
908,049 |
762,784 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,358 |
3 |
60 |
22.2 |
30.1 |
2,703,267 |
44,765 |
65,811 |
126,121 |
1,320,493 |
1,256,653 |
49,081 |
41 |
131,622 |
1 |
configure.ocaml |
no-host |
3,810 |
1 |
2 |
2.7 |
20.6 |
150,029 |
11,044 |
5,137 |
8,602 |
71,627 |
69,800 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.1 |
30,522 |
30,522 |
0 |
1,599 |
14,797 |
14,126 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,814 |
1 |
2 |
2.6 |
24.4 |
139,686 |
7,963 |
6,599 |
7,554 |
70,299 |
61,833 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.8 |
116,265 |
64,454 |
42,662 |
4,610 |
54,542 |
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 |
18 |
2 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
2 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
452 |
417 |
38 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
15 |
8 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
676 |
507 |
202 |
2.9 |
bash |
9 |
no-host |
bin-true |
545 |
412 |
143 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,256 |
1,470 |
1,042 |
17.2 |
osh-cpython |
25 |
no-host |
bin-true |
824 |
581 |
256 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
14,909 |
8,874 |
6,417 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
14,993 |
8,950 |
6,461 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,242 |
17,494 |
12,563 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,145 |
9,025 |
6,389 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,817 |
1,610 |
1,236 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,724 |
1,557 |
1,185 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,606 |
2,232 |
1,574 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,810 |
1,621 |
1,228 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
23 |
25 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
29 |
13 |
19.1 |
dash |
21 |
no-host |
configure.tcc |
190 |
155 |
38 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
25 |
24 |
19.1 |
osh-native |
3 |
no-host |
configure.util-linux |
13,975 |
8,754 |
5,691 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,853 |
9,174 |
6,174 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
30,781 |
20,717 |
11,142 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,358 |
8,628 |
5,908 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,811 |
1,074 |
745 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,753 |
1,051 |
705 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,439 |
1,473 |
1,008 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,814 |
1,007 |
811 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
48 |
26 |
22 |
17.3 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
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,569 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,089 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,402 |
0 |
0 |
0 |
8 |
0 |
47 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,188 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
107,409 |
0 |
0 |
0 |
8 |
0 |
1,992 |
56 |
bash |
9 |
no-host |
bin-true |
66,442 |
0 |
0 |
0 |
8 |
0 |
1,990 |
35 |
dash |
17 |
no-host |
bin-true |
737,659 |
0 |
0 |
0 |
8 |
0 |
1,993 |
431 |
osh-cpython |
25 |
no-host |
bin-true |
128,190 |
0 |
0 |
0 |
16 |
0 |
1,991 |
265 |
osh-native |
2 |
no-host |
configure.cpython |
2,216,911 |
0 |
0 |
0 |
32,928 |
0 |
14,511 |
1,120 |
bash |
10 |
no-host |
configure.cpython |
2,246,747 |
0 |
0 |
0 |
32,992 |
0 |
14,605 |
1,360 |
dash |
18 |
no-host |
configure.cpython |
6,103,122 |
0 |
0 |
0 |
27,512 |
0 |
13,306 |
1,256 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,236,240 |
0 |
0 |
0 |
27,520 |
0 |
13,324 |
906 |
osh-native |
4 |
no-host |
configure.ocaml |
410,611 |
0 |
0 |
0 |
5,120 |
0 |
1,963 |
149 |
bash |
12 |
no-host |
configure.ocaml |
391,241 |
0 |
0 |
0 |
5,112 |
0 |
1,925 |
147 |
dash |
20 |
no-host |
configure.ocaml |
637,390 |
1 |
0 |
0 |
5,112 |
0 |
1,856 |
207 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,621 |
0 |
0 |
0 |
5,120 |
0 |
1,935 |
190 |
osh-native |
5 |
no-host |
configure.tcc |
6,545 |
0 |
0 |
0 |
104 |
0 |
49 |
4 |
bash |
13 |
no-host |
configure.tcc |
5,476 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
dash |
21 |
no-host |
configure.tcc |
23,152 |
0 |
0 |
0 |
96 |
0 |
52 |
9 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,975 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,093,724 |
0 |
0 |
0 |
42,400 |
0 |
18,466 |
1,058 |
bash |
11 |
no-host |
configure.util-linux |
2,259,562 |
1 |
0 |
0 |
42,584 |
0 |
17,255 |
1,108 |
dash |
19 |
no-host |
configure.util-linux |
5,298,477 |
16 |
0 |
0 |
39,112 |
0 |
17,067 |
1,154 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,018,003 |
1 |
0 |
0 |
39,128 |
0 |
17,032 |
1,077 |
osh-native |
6 |
no-host |
configure.yash |
256,147 |
0 |
0 |
0 |
4,120 |
0 |
871 |
87 |
bash |
14 |
no-host |
configure.yash |
244,100 |
0 |
0 |
0 |
3,720 |
0 |
872 |
91 |
dash |
22 |
no-host |
configure.yash |
384,117 |
0 |
0 |
0 |
3,728 |
0 |
860 |
117 |
osh-cpython |
30 |
no-host |
configure.yash |
258,095 |
0 |
0 |
0 |
3,736 |
0 |
854 |
89 |
osh-native |
0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
81 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,668 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
24 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host