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 |
osh-native-souffle |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
20 |
10 |
465 |
22 |
21 |
23.71 |
1.13 |
bin-true |
no-host |
685 |
546 |
2,296 |
834 |
818 |
3.35 |
1.22 |
configure.cpython |
no-host |
15,493 |
15,618 |
30,380 |
15,747 |
15,511 |
1.96 |
1.02 |
configure.ocaml |
no-host |
3,882 |
3,898 |
4,844 |
3,941 |
3,914 |
1.25 |
1.02 |
configure.tcc |
no-host |
48 |
45 |
203 |
50 |
49 |
4.19 |
1.04 |
configure.util-linux |
no-host |
14,553 |
15,531 |
33,179 |
14,792 |
14,523 |
2.28 |
1.02 |
configure.yash |
no-host |
1,904 |
1,899 |
2,571 |
1,874 |
1,868 |
1.35 |
0.98 |
hello-world |
no-host |
1 |
1 |
52 |
3 |
3 |
34.97 |
2.00 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
osh-native-souffle |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,513 |
1,109 |
23,201 |
3,258 |
3,101 |
9.23 |
1.30 |
bin-true |
no-host |
105,346 |
65,452 |
764,440 |
127,155 |
125,830 |
7.26 |
1.21 |
configure.cpython |
no-host |
2,222,697 |
2,241,115 |
6,209,411 |
2,221,663 |
2,215,441 |
2.79 |
1.00 |
configure.ocaml |
no-host |
410,198 |
390,908 |
645,456 |
414,116 |
413,071 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,571 |
5,487 |
23,655 |
7,010 |
6,942 |
3.60 |
1.07 |
configure.util-linux |
no-host |
2,107,246 |
2,258,686 |
5,345,992 |
1,998,096 |
1,989,961 |
2.54 |
0.95 |
configure.yash |
no-host |
255,625 |
245,117 |
387,515 |
258,756 |
257,980 |
1.52 |
1.01 |
hello-world |
no-host |
150 |
82 |
3,746 |
349 |
346 |
24.97 |
2.33 |
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.2 |
6.3 |
3,775 |
3,775 |
0 |
694 |
1,852 |
1,229 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
834 |
1 |
2 |
2.6 |
8.1 |
154,740 |
13,220 |
2,877 |
9,744 |
78,321 |
66,675 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,747 |
1 |
63 |
15.0 |
27.4 |
1,772,722 |
49,854 |
28,587 |
86,397 |
908,073 |
778,252 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,792 |
3 |
64 |
21.3 |
30.1 |
2,703,490 |
29,745 |
65,870 |
109,675 |
1,320,579 |
1,273,236 |
27,391 |
41 |
131,740 |
1 |
configure.ocaml |
no-host |
3,941 |
1 |
2 |
2.6 |
20.6 |
150,096 |
11,051 |
5,221 |
7,531 |
71,606 |
70,959 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.1 |
30,581 |
30,581 |
0 |
1,520 |
14,776 |
14,285 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,874 |
1 |
2 |
2.6 |
24.2 |
139,749 |
8,020 |
6,679 |
6,336 |
70,281 |
63,132 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,324 |
64,530 |
42,740 |
4,571 |
54,521 |
57,232 |
270 |
3 |
85,480 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.9 |
3,774 |
3,774 |
0 |
695 |
1,852 |
1,227 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
818 |
1 |
2 |
2.6 |
7.6 |
154,739 |
13,063 |
2,815 |
9,745 |
78,321 |
66,673 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,511 |
1 |
63 |
14.9 |
27.3 |
1,772,721 |
49,105 |
28,525 |
86,398 |
908,073 |
778,250 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,523 |
3 |
62 |
21.3 |
30.1 |
2,703,490 |
42,741 |
65,828 |
109,677 |
1,320,579 |
1,273,234 |
27,391 |
41 |
131,656 |
1 |
configure.ocaml |
no-host |
3,914 |
1 |
2 |
2.6 |
20.6 |
150,096 |
10,989 |
5,159 |
7,533 |
71,606 |
70,957 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,581 |
30,581 |
0 |
1,522 |
14,776 |
14,283 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,868 |
1 |
2 |
2.6 |
24.2 |
139,749 |
7,958 |
6,617 |
6,338 |
70,281 |
63,130 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.5 |
116,323 |
64,468 |
42,678 |
4,572 |
54,521 |
57,230 |
270 |
3 |
85,356 |
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 |
465 |
404 |
64 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
14 |
8 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
14 |
8 |
8.5 |
osh-native-souffle |
1 |
no-host |
bin-true |
685 |
492 |
225 |
3.0 |
bash |
9 |
no-host |
bin-true |
546 |
410 |
144 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,296 |
1,483 |
1,089 |
17.8 |
osh-cpython |
25 |
no-host |
bin-true |
834 |
584 |
264 |
8.1 |
osh-native |
33 |
no-host |
bin-true |
818 |
587 |
245 |
7.6 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,493 |
9,466 |
6,434 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,618 |
9,511 |
6,531 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
30,380 |
18,198 |
14,192 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,747 |
9,191 |
6,825 |
27.4 |
osh-native |
34 |
no-host |
configure.cpython |
15,511 |
9,052 |
6,633 |
27.3 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,882 |
1,643 |
1,265 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,898 |
1,639 |
1,279 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,844 |
2,261 |
1,804 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,941 |
1,673 |
1,306 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,914 |
1,675 |
1,276 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
32 |
17 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
45 |
34 |
11 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
203 |
152 |
54 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
28 |
22 |
19.1 |
osh-native |
37 |
no-host |
configure.tcc |
49 |
24 |
26 |
19.3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,553 |
9,223 |
5,811 |
30.4 |
bash |
11 |
no-host |
configure.util-linux |
15,531 |
9,395 |
6,640 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
33,179 |
22,031 |
12,319 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,792 |
8,798 |
6,190 |
30.1 |
osh-native |
35 |
no-host |
configure.util-linux |
14,523 |
8,540 |
6,161 |
30.1 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,904 |
1,087 |
823 |
24.0 |
bash |
14 |
no-host |
configure.yash |
1,899 |
1,178 |
725 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,571 |
1,489 |
1,126 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,874 |
1,027 |
851 |
24.2 |
osh-native |
38 |
no-host |
configure.yash |
1,868 |
1,067 |
805 |
24.2 |
osh-native-souffle |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
52 |
20 |
31 |
17.6 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.3 |
osh-native |
32 |
no-host |
hello-world |
3 |
3 |
0 |
5.9 |
osh-native-souffle |
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,513 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,109 |
0 |
0 |
0 |
8 |
0 |
39 |
2 |
dash |
23 |
no-host |
abuild-print-help |
23,201 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,258 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
39 |
no-host |
abuild-print-help |
3,101 |
0 |
0 |
0 |
16 |
0 |
38 |
1 |
osh-native-souffle |
1 |
no-host |
bin-true |
105,346 |
0 |
0 |
0 |
8 |
0 |
1,993 |
43 |
bash |
9 |
no-host |
bin-true |
65,452 |
0 |
0 |
0 |
8 |
0 |
1,992 |
52 |
dash |
17 |
no-host |
bin-true |
764,440 |
0 |
0 |
0 |
8 |
0 |
1,999 |
182 |
osh-cpython |
25 |
no-host |
bin-true |
127,155 |
0 |
0 |
0 |
16 |
0 |
1,988 |
89 |
osh-native |
33 |
no-host |
bin-true |
125,830 |
0 |
0 |
0 |
16 |
0 |
1,988 |
125 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,222,697 |
0 |
0 |
0 |
32,928 |
0 |
14,421 |
1,084 |
bash |
10 |
no-host |
configure.cpython |
2,241,115 |
0 |
0 |
0 |
32,992 |
0 |
14,582 |
1,083 |
dash |
18 |
no-host |
configure.cpython |
6,209,411 |
0 |
0 |
0 |
27,512 |
0 |
13,196 |
1,271 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,221,663 |
0 |
0 |
0 |
27,520 |
0 |
13,182 |
1,022 |
osh-native |
34 |
no-host |
configure.cpython |
2,215,441 |
0 |
0 |
0 |
27,520 |
0 |
13,155 |
1,074 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,198 |
0 |
0 |
0 |
5,120 |
0 |
1,963 |
174 |
bash |
12 |
no-host |
configure.ocaml |
390,908 |
0 |
0 |
0 |
5,112 |
0 |
1,882 |
140 |
dash |
20 |
no-host |
configure.ocaml |
645,456 |
0 |
0 |
0 |
5,112 |
0 |
1,853 |
184 |
osh-cpython |
28 |
no-host |
configure.ocaml |
414,116 |
0 |
0 |
0 |
5,120 |
0 |
1,924 |
180 |
osh-native |
36 |
no-host |
configure.ocaml |
413,071 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
167 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,571 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,487 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,655 |
0 |
0 |
0 |
96 |
0 |
53 |
12 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,010 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
37 |
no-host |
configure.tcc |
6,942 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,107,246 |
1 |
0 |
0 |
42,400 |
0 |
18,577 |
1,242 |
bash |
11 |
no-host |
configure.util-linux |
2,258,686 |
1 |
0 |
0 |
42,584 |
0 |
17,455 |
1,146 |
dash |
19 |
no-host |
configure.util-linux |
5,345,992 |
3 |
0 |
0 |
39,120 |
0 |
16,955 |
1,439 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,998,096 |
0 |
0 |
0 |
39,128 |
0 |
16,952 |
999 |
osh-native |
35 |
no-host |
configure.util-linux |
1,989,961 |
1 |
0 |
0 |
39,136 |
0 |
16,972 |
1,034 |
osh-native-souffle |
6 |
no-host |
configure.yash |
255,625 |
0 |
0 |
0 |
4,120 |
0 |
870 |
101 |
bash |
14 |
no-host |
configure.yash |
245,117 |
0 |
0 |
0 |
3,720 |
0 |
869 |
77 |
dash |
22 |
no-host |
configure.yash |
387,515 |
0 |
0 |
0 |
3,728 |
0 |
853 |
104 |
osh-cpython |
30 |
no-host |
configure.yash |
258,756 |
0 |
0 |
0 |
3,736 |
0 |
846 |
80 |
osh-native |
38 |
no-host |
configure.yash |
257,980 |
0 |
0 |
0 |
3,736 |
0 |
847 |
70 |
osh-native-souffle |
0 |
no-host |
hello-world |
150 |
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,746 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host