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 |
20 |
10 |
474 |
24 |
24.19 |
1.25 |
bin-true |
no-host |
707 |
554 |
2,285 |
834 |
3.23 |
1.18 |
configure.cpython |
no-host |
15,638 |
15,612 |
29,324 |
15,985 |
1.88 |
1.02 |
configure.ocaml |
no-host |
3,960 |
3,808 |
4,832 |
4,003 |
1.22 |
1.01 |
configure.tcc |
no-host |
49 |
42 |
201 |
50 |
4.13 |
1.04 |
configure.util-linux |
no-host |
14,518 |
15,336 |
32,141 |
15,328 |
2.21 |
1.06 |
configure.yash |
no-host |
1,884 |
1,815 |
2,520 |
1,946 |
1.34 |
1.03 |
hello-world |
no-host |
2 |
1 |
50 |
3 |
32.12 |
1.79 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,536 |
1,100 |
23,396 |
3,215 |
9.23 |
1.27 |
bin-true |
no-host |
106,321 |
67,459 |
755,524 |
126,200 |
7.11 |
1.19 |
configure.cpython |
no-host |
2,222,463 |
2,245,472 |
6,116,066 |
2,231,380 |
2.75 |
1.00 |
configure.ocaml |
no-host |
410,555 |
391,610 |
639,033 |
413,689 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,547 |
5,468 |
23,142 |
6,974 |
3.53 |
1.07 |
configure.util-linux |
no-host |
2,095,722 |
2,265,723 |
5,317,048 |
2,008,103 |
2.54 |
0.96 |
configure.yash |
no-host |
256,426 |
245,051 |
384,549 |
259,024 |
1.50 |
1.01 |
hello-world |
no-host |
154 |
81 |
3,648 |
342 |
23.69 |
2.22 |
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,728 |
3,728 |
0 |
684 |
1,880 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
834 |
1 |
2 |
2.7 |
7.9 |
154,693 |
12,995 |
2,802 |
11,737 |
78,349 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,985 |
2 |
66 |
15.8 |
27.5 |
1,772,609 |
49,200 |
28,511 |
101,770 |
908,056 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
15,328 |
3 |
66 |
22.2 |
30.1 |
2,703,382 |
44,769 |
65,795 |
126,155 |
1,320,536 |
1,256,691 |
49,086 |
41 |
131,590 |
1 |
configure.ocaml |
no-host |
4,003 |
1 |
2 |
2.7 |
20.6 |
150,035 |
11,048 |
5,141 |
8,602 |
71,634 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.4 |
30,528 |
30,528 |
0 |
1,599 |
14,804 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,946 |
1 |
2 |
2.6 |
24.4 |
139,692 |
7,967 |
6,603 |
7,554 |
70,306 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
24 |
1 |
2 |
2.8 |
8.8 |
116,271 |
64,458 |
42,666 |
4,610 |
54,549 |
57,112 |
478 |
3 |
85,332 |
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 |
20 |
15 |
5 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
7 |
3 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
474 |
417 |
59 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
24 |
19 |
6 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
707 |
514 |
214 |
2.9 |
bash |
9 |
no-host |
bin-true |
554 |
428 |
133 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,285 |
1,464 |
1,092 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
834 |
591 |
251 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,638 |
9,540 |
6,454 |
27.7 |
bash |
10 |
no-host |
configure.cpython |
15,612 |
9,348 |
6,663 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
29,324 |
17,789 |
13,421 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,985 |
9,455 |
6,726 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,960 |
1,654 |
1,320 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,808 |
1,613 |
1,214 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,832 |
2,360 |
1,679 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
4,003 |
1,687 |
1,349 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
49 |
25 |
25 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
28 |
15 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
201 |
133 |
72 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
27 |
24 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,518 |
9,083 |
5,899 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,336 |
9,468 |
6,365 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
32,141 |
21,410 |
11,794 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
15,328 |
9,106 |
6,326 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,884 |
1,072 |
813 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,815 |
1,006 |
813 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,520 |
1,463 |
1,100 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,946 |
1,045 |
898 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
50 |
30 |
21 |
17.2 |
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,536 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,100 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,396 |
0 |
0 |
0 |
8 |
0 |
47 |
11 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,215 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
106,321 |
0 |
0 |
0 |
8 |
0 |
1,993 |
99 |
bash |
9 |
no-host |
bin-true |
67,459 |
0 |
0 |
0 |
8 |
0 |
1,992 |
63 |
dash |
17 |
no-host |
bin-true |
755,524 |
0 |
0 |
0 |
8 |
0 |
1,997 |
136 |
osh-cpython |
25 |
no-host |
bin-true |
126,200 |
0 |
0 |
0 |
16 |
0 |
1,985 |
95 |
osh-native |
2 |
no-host |
configure.cpython |
2,222,463 |
0 |
0 |
0 |
32,928 |
0 |
14,535 |
1,117 |
bash |
10 |
no-host |
configure.cpython |
2,245,472 |
0 |
0 |
0 |
32,992 |
0 |
14,589 |
977 |
dash |
18 |
no-host |
configure.cpython |
6,116,066 |
0 |
0 |
0 |
27,512 |
0 |
13,331 |
1,163 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,231,380 |
0 |
0 |
0 |
27,520 |
0 |
13,296 |
1,078 |
osh-native |
4 |
no-host |
configure.ocaml |
410,555 |
0 |
0 |
0 |
5,120 |
0 |
1,954 |
168 |
bash |
12 |
no-host |
configure.ocaml |
391,610 |
0 |
0 |
0 |
5,112 |
0 |
1,937 |
163 |
dash |
20 |
no-host |
configure.ocaml |
639,033 |
0 |
0 |
0 |
5,112 |
0 |
1,857 |
175 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,689 |
0 |
0 |
0 |
5,120 |
0 |
1,937 |
158 |
osh-native |
5 |
no-host |
configure.tcc |
6,547 |
0 |
0 |
0 |
104 |
0 |
49 |
4 |
bash |
13 |
no-host |
configure.tcc |
5,468 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,142 |
0 |
0 |
0 |
96 |
0 |
53 |
4 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,974 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,095,722 |
0 |
0 |
0 |
42,400 |
0 |
18,578 |
1,004 |
bash |
11 |
no-host |
configure.util-linux |
2,265,723 |
0 |
0 |
0 |
42,592 |
0 |
17,428 |
1,118 |
dash |
19 |
no-host |
configure.util-linux |
5,317,048 |
10 |
0 |
0 |
39,136 |
0 |
17,033 |
1,419 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,008,103 |
0 |
0 |
0 |
39,144 |
0 |
17,147 |
972 |
osh-native |
6 |
no-host |
configure.yash |
256,426 |
0 |
0 |
0 |
4,120 |
0 |
864 |
75 |
bash |
14 |
no-host |
configure.yash |
245,051 |
0 |
0 |
0 |
3,720 |
0 |
871 |
70 |
dash |
22 |
no-host |
configure.yash |
384,549 |
0 |
0 |
0 |
3,728 |
0 |
857 |
98 |
osh-cpython |
30 |
no-host |
configure.yash |
259,024 |
0 |
0 |
0 |
3,736 |
0 |
857 |
84 |
osh-native |
0 |
no-host |
hello-world |
154 |
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,648 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
342 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host