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 |
16 |
8 |
358 |
18 |
17 |
22.67 |
1.13 |
bin-true |
no-host |
561 |
389 |
1,815 |
632 |
601 |
3.23 |
1.13 |
configure.cpython |
no-host |
12,156 |
11,692 |
24,052 |
11,599 |
14,202 |
1.98 |
0.95 |
configure.ocaml |
no-host |
3,232 |
3,236 |
3,876 |
3,607 |
4,690 |
1.20 |
1.12 |
configure.tcc |
no-host |
38 |
34 |
154 |
39 |
52 |
4.06 |
1.03 |
configure.util-linux |
no-host |
11,020 |
11,569 |
24,811 |
10,296 |
11,139 |
2.25 |
0.93 |
configure.yash |
no-host |
1,401 |
1,394 |
1,959 |
1,690 |
2,017 |
1.40 |
1.21 |
hello-world |
no-host |
1 |
1 |
42 |
2 |
2 |
36.60 |
1.90 |
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,551 |
1,100 |
23,664 |
3,221 |
3,113 |
9.28 |
1.26 |
bin-true |
no-host |
108,308 |
66,416 |
765,521 |
130,946 |
127,878 |
7.07 |
1.21 |
configure.cpython |
no-host |
2,218,484 |
2,240,581 |
6,228,960 |
2,236,224 |
2,215,684 |
2.81 |
1.01 |
configure.ocaml |
no-host |
410,950 |
392,006 |
648,183 |
413,892 |
413,908 |
1.58 |
1.01 |
configure.tcc |
no-host |
6,560 |
5,492 |
24,011 |
7,008 |
6,974 |
3.66 |
1.07 |
configure.util-linux |
no-host |
2,103,455 |
2,259,056 |
5,358,888 |
2,011,932 |
2,001,299 |
2.55 |
0.96 |
configure.yash |
no-host |
256,675 |
245,294 |
387,979 |
258,347 |
258,543 |
1.51 |
1.01 |
hello-world |
no-host |
153 |
81 |
3,949 |
353 |
350 |
25.81 |
2.31 |
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 |
2 |
0 |
0 |
0.2 |
6.4 |
3,792 |
3,792 |
0 |
695 |
1,866 |
1,231 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
632 |
1 |
2 |
2.6 |
8.4 |
153,756 |
12,328 |
2,893 |
8,744 |
78,335 |
66,677 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
11,599 |
1 |
56 |
14.9 |
27.5 |
1,771,757 |
49,611 |
28,518 |
85,416 |
908,087 |
778,254 |
25,733 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
10,296 |
2 |
50 |
21.2 |
30.3 |
2,702,523 |
45,806 |
65,717 |
108,692 |
1,320,593 |
1,273,238 |
32,239 |
41 |
131,434 |
1 |
configure.ocaml |
no-host |
3,607 |
0 |
2 |
2.6 |
20.7 |
150,090 |
11,118 |
5,213 |
7,509 |
71,620 |
70,961 |
1,695 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
39 |
0 |
0 |
1.3 |
19.5 |
30,596 |
30,596 |
0 |
1,519 |
14,790 |
14,287 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,690 |
1 |
2 |
2.5 |
24.5 |
139,416 |
8,030 |
6,692 |
5,987 |
70,295 |
63,134 |
2,095 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
18 |
0 |
1 |
2.8 |
9.2 |
116,302 |
64,409 |
42,619 |
4,532 |
54,535 |
57,235 |
277 |
3 |
85,238 |
1 |
hello-world |
no-host |
2 |
0 |
0 |
0.2 |
6.0 |
3,791 |
3,791 |
0 |
696 |
1,866 |
1,229 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
601 |
0 |
1 |
2.6 |
7.9 |
153,755 |
12,117 |
2,831 |
8,745 |
78,335 |
66,675 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
14,202 |
2 |
60 |
14.8 |
27.6 |
1,771,756 |
49,069 |
28,456 |
85,417 |
908,087 |
778,252 |
25,733 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
11,139 |
3 |
57 |
21.2 |
30.3 |
2,702,523 |
53,699 |
65,655 |
108,694 |
1,320,593 |
1,273,236 |
32,239 |
41 |
131,310 |
1 |
configure.ocaml |
no-host |
4,690 |
1 |
2 |
2.6 |
20.7 |
150,090 |
11,056 |
5,151 |
7,511 |
71,620 |
70,959 |
1,695 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
52 |
0 |
0 |
1.3 |
19.5 |
30,596 |
30,596 |
0 |
1,521 |
14,790 |
14,285 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
2,017 |
1 |
2 |
2.5 |
24.5 |
139,416 |
7,968 |
6,630 |
5,989 |
70,295 |
63,132 |
2,095 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
17 |
1 |
2 |
2.8 |
8.7 |
116,301 |
64,347 |
42,557 |
4,533 |
54,535 |
57,233 |
277 |
3 |
85,114 |
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 |
16 |
11 |
5 |
4.6 |
bash |
15 |
no-host |
abuild-print-help |
8 |
7 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
358 |
317 |
44 |
22.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
18 |
14 |
4 |
9.2 |
osh-native |
39 |
no-host |
abuild-print-help |
17 |
6 |
11 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
561 |
409 |
172 |
2.9 |
bash |
9 |
no-host |
bin-true |
389 |
301 |
91 |
1.7 |
dash |
17 |
no-host |
bin-true |
1,815 |
1,192 |
835 |
18.5 |
osh-cpython |
25 |
no-host |
bin-true |
632 |
443 |
197 |
8.4 |
osh-native |
33 |
no-host |
bin-true |
601 |
440 |
168 |
7.9 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
12,156 |
7,721 |
4,764 |
27.6 |
bash |
10 |
no-host |
configure.cpython |
11,692 |
7,549 |
4,442 |
27.6 |
dash |
18 |
no-host |
configure.cpython |
24,052 |
14,975 |
10,757 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
11,599 |
7,342 |
4,457 |
27.5 |
osh-native |
34 |
no-host |
configure.cpython |
14,202 |
8,593 |
5,884 |
27.6 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,232 |
1,341 |
916 |
20.7 |
bash |
12 |
no-host |
configure.ocaml |
3,236 |
1,379 |
868 |
20.7 |
dash |
20 |
no-host |
configure.ocaml |
3,876 |
1,957 |
1,068 |
20.7 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,607 |
1,649 |
986 |
20.7 |
osh-native |
36 |
no-host |
configure.ocaml |
4,690 |
2,026 |
1,715 |
20.7 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
38 |
26 |
12 |
19.6 |
bash |
13 |
no-host |
configure.tcc |
34 |
18 |
16 |
19.5 |
dash |
21 |
no-host |
configure.tcc |
154 |
112 |
44 |
19.6 |
osh-cpython |
29 |
no-host |
configure.tcc |
39 |
22 |
17 |
19.5 |
osh-native |
37 |
no-host |
configure.tcc |
52 |
37 |
16 |
19.5 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
11,020 |
7,397 |
3,949 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
11,569 |
7,691 |
4,218 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
24,811 |
16,562 |
9,211 |
30.2 |
osh-cpython |
27 |
no-host |
configure.util-linux |
10,296 |
6,761 |
3,687 |
30.3 |
osh-native |
35 |
no-host |
configure.util-linux |
11,139 |
7,090 |
4,178 |
30.3 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,401 |
900 |
507 |
24.5 |
bash |
14 |
no-host |
configure.yash |
1,394 |
772 |
623 |
24.6 |
dash |
22 |
no-host |
configure.yash |
1,959 |
1,197 |
798 |
24.6 |
osh-cpython |
30 |
no-host |
configure.yash |
1,690 |
1,009 |
684 |
24.5 |
osh-native |
38 |
no-host |
configure.yash |
2,017 |
1,183 |
838 |
24.5 |
osh-native-souffle |
0 |
no-host |
hello-world |
1 |
1 |
0 |
3.0 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
16 |
no-host |
hello-world |
42 |
34 |
8 |
18.4 |
osh-cpython |
24 |
no-host |
hello-world |
2 |
2 |
0 |
6.4 |
osh-native |
32 |
no-host |
hello-world |
2 |
0 |
2 |
6.0 |
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,551 |
2 |
0 |
88 |
16 |
0 |
42 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,100 |
0 |
0 |
0 |
8 |
0 |
38 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,664 |
0 |
0 |
0 |
8 |
0 |
45 |
12 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,221 |
0 |
0 |
0 |
16 |
0 |
37 |
2 |
osh-native |
39 |
no-host |
abuild-print-help |
3,113 |
0 |
0 |
0 |
16 |
0 |
30 |
1 |
osh-native-souffle |
1 |
no-host |
bin-true |
108,308 |
2 |
0 |
72 |
8 |
0 |
2,000 |
64 |
bash |
9 |
no-host |
bin-true |
66,416 |
0 |
0 |
0 |
8 |
0 |
2,000 |
45 |
dash |
17 |
no-host |
bin-true |
765,521 |
0 |
0 |
0 |
8 |
0 |
2,006 |
144 |
osh-cpython |
25 |
no-host |
bin-true |
130,946 |
0 |
0 |
0 |
16 |
0 |
1,998 |
59 |
osh-native |
33 |
no-host |
bin-true |
127,878 |
0 |
0 |
0 |
16 |
0 |
2,001 |
57 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,218,484 |
7 |
0 |
200 |
32,928 |
0 |
14,390 |
1,414 |
bash |
10 |
no-host |
configure.cpython |
2,240,581 |
1 |
0 |
0 |
32,992 |
0 |
15,391 |
2,112 |
dash |
18 |
no-host |
configure.cpython |
6,228,960 |
0 |
0 |
0 |
27,512 |
0 |
13,253 |
2,030 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,236,224 |
2 |
0 |
0 |
27,520 |
0 |
14,229 |
2,055 |
osh-native |
34 |
no-host |
configure.cpython |
2,215,684 |
1 |
0 |
0 |
27,520 |
0 |
13,138 |
1,281 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,950 |
1 |
0 |
8 |
5,120 |
0 |
1,934 |
274 |
bash |
12 |
no-host |
configure.ocaml |
392,006 |
0 |
0 |
0 |
5,112 |
0 |
1,920 |
239 |
dash |
20 |
no-host |
configure.ocaml |
648,183 |
0 |
0 |
0 |
5,112 |
0 |
1,868 |
218 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,892 |
0 |
0 |
0 |
5,120 |
0 |
1,879 |
263 |
osh-native |
36 |
no-host |
configure.ocaml |
413,908 |
0 |
0 |
0 |
5,120 |
0 |
1,879 |
289 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,560 |
0 |
0 |
0 |
104 |
0 |
49 |
4 |
bash |
13 |
no-host |
configure.tcc |
5,492 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
24,011 |
0 |
0 |
0 |
96 |
0 |
53 |
7 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,008 |
0 |
0 |
0 |
104 |
0 |
47 |
6 |
osh-native |
37 |
no-host |
configure.tcc |
6,974 |
0 |
0 |
0 |
104 |
0 |
47 |
6 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,103,455 |
4 |
0 |
224 |
42,400 |
0 |
22,565 |
5,957 |
bash |
11 |
no-host |
configure.util-linux |
2,259,056 |
3 |
0 |
0 |
42,584 |
0 |
19,448 |
3,803 |
dash |
19 |
no-host |
configure.util-linux |
5,358,888 |
0 |
0 |
0 |
39,120 |
0 |
17,001 |
1,893 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,011,932 |
12 |
0 |
0 |
39,128 |
0 |
17,017 |
1,207 |
osh-native |
35 |
no-host |
configure.util-linux |
2,001,299 |
0 |
0 |
0 |
39,136 |
0 |
17,064 |
1,176 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,675 |
0 |
0 |
0 |
4,120 |
0 |
870 |
84 |
bash |
14 |
no-host |
configure.yash |
245,294 |
0 |
0 |
0 |
3,720 |
0 |
869 |
95 |
dash |
22 |
no-host |
configure.yash |
387,979 |
0 |
0 |
0 |
3,728 |
0 |
854 |
97 |
osh-cpython |
30 |
no-host |
configure.yash |
258,347 |
0 |
0 |
0 |
3,736 |
0 |
851 |
90 |
osh-native |
38 |
no-host |
configure.yash |
258,543 |
0 |
0 |
0 |
3,736 |
0 |
849 |
82 |
osh-native-souffle |
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 |
1 |
dash |
16 |
no-host |
hello-world |
3,949 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
353 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
350 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native-souffle |
Shell and Host