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 |
15 |
8 |
353 |
18 |
21 |
23.15 |
1.19 |
bin-true |
no-host |
558 |
404 |
1,896 |
666 |
620 |
3.40 |
1.19 |
configure.cpython |
no-host |
11,823 |
12,535 |
22,637 |
11,355 |
11,591 |
1.91 |
0.96 |
configure.ocaml |
no-host |
3,374 |
3,090 |
3,844 |
4,079 |
3,614 |
1.14 |
1.21 |
configure.tcc |
no-host |
35 |
31 |
155 |
40 |
40 |
4.43 |
1.13 |
configure.util-linux |
no-host |
11,126 |
12,420 |
25,602 |
11,060 |
10,865 |
2.30 |
0.99 |
configure.yash |
no-host |
1,350 |
1,312 |
2,625 |
1,334 |
1,565 |
1.94 |
0.99 |
hello-world |
no-host |
1 |
1 |
41 |
2 |
2 |
33.82 |
1.81 |
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,546 |
1,123 |
23,737 |
3,233 |
3,147 |
9.32 |
1.27 |
bin-true |
no-host |
106,364 |
66,549 |
765,341 |
131,881 |
126,906 |
7.20 |
1.24 |
configure.cpython |
no-host |
2,217,676 |
2,241,158 |
6,244,831 |
2,232,860 |
2,221,267 |
2.82 |
1.01 |
configure.ocaml |
no-host |
410,316 |
391,914 |
647,594 |
413,607 |
413,682 |
1.58 |
1.01 |
configure.tcc |
no-host |
6,521 |
5,494 |
23,992 |
7,003 |
6,962 |
3.68 |
1.07 |
configure.util-linux |
no-host |
2,106,772 |
2,265,927 |
5,363,214 |
2,013,058 |
2,002,586 |
2.55 |
0.96 |
configure.yash |
no-host |
256,733 |
245,566 |
387,448 |
258,181 |
258,106 |
1.51 |
1.01 |
hello-world |
no-host |
155 |
82 |
3,948 |
354 |
347 |
25.47 |
2.28 |
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 |
666 |
1 |
2 |
2.6 |
8.3 |
153,756 |
12,328 |
2,893 |
8,744 |
78,335 |
66,677 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
11,355 |
1 |
57 |
14.9 |
27.6 |
1,771,757 |
49,611 |
28,518 |
85,416 |
908,087 |
778,254 |
25,733 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
11,060 |
3 |
56 |
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 |
4,079 |
1 |
2 |
2.6 |
20.6 |
150,090 |
11,118 |
5,213 |
7,509 |
71,620 |
70,961 |
1,695 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
40 |
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,334 |
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 |
1 |
2 |
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 |
620 |
1 |
2 |
2.6 |
7.8 |
153,755 |
12,117 |
2,831 |
8,745 |
78,335 |
66,675 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
11,591 |
2 |
52 |
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 |
10,865 |
3 |
56 |
21.2 |
30.4 |
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 |
3,614 |
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 |
40 |
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 |
1,565 |
1 |
2 |
2.5 |
24.6 |
139,416 |
7,968 |
6,630 |
5,989 |
70,295 |
63,132 |
2,095 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
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 |
15 |
10 |
6 |
4.6 |
bash |
15 |
no-host |
abuild-print-help |
8 |
4 |
3 |
3.6 |
dash |
23 |
no-host |
abuild-print-help |
353 |
306 |
50 |
22.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
18 |
12 |
7 |
9.2 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
16 |
6 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
558 |
412 |
165 |
3.1 |
bash |
9 |
no-host |
bin-true |
404 |
295 |
108 |
1.6 |
dash |
17 |
no-host |
bin-true |
1,896 |
1,186 |
960 |
18.6 |
osh-cpython |
25 |
no-host |
bin-true |
666 |
462 |
211 |
8.3 |
osh-native |
33 |
no-host |
bin-true |
620 |
448 |
179 |
7.8 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
11,823 |
7,582 |
4,538 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
12,535 |
8,155 |
4,693 |
27.6 |
dash |
18 |
no-host |
configure.cpython |
22,637 |
14,401 |
9,853 |
27.6 |
osh-cpython |
26 |
no-host |
configure.cpython |
11,355 |
7,248 |
4,301 |
27.6 |
osh-native |
34 |
no-host |
configure.cpython |
11,591 |
7,353 |
4,438 |
27.6 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,374 |
1,451 |
953 |
20.7 |
bash |
12 |
no-host |
configure.ocaml |
3,090 |
1,316 |
785 |
20.7 |
dash |
20 |
no-host |
configure.ocaml |
3,844 |
1,833 |
1,158 |
20.7 |
osh-cpython |
28 |
no-host |
configure.ocaml |
4,079 |
1,813 |
1,292 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,614 |
1,562 |
1,084 |
20.7 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
35 |
22 |
14 |
19.5 |
bash |
13 |
no-host |
configure.tcc |
31 |
28 |
4 |
19.5 |
dash |
21 |
no-host |
configure.tcc |
155 |
107 |
51 |
19.5 |
osh-cpython |
29 |
no-host |
configure.tcc |
40 |
16 |
24 |
19.5 |
osh-native |
37 |
no-host |
configure.tcc |
40 |
24 |
17 |
19.5 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
11,126 |
7,427 |
4,040 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
12,420 |
8,095 |
4,676 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
25,602 |
17,168 |
9,342 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
11,060 |
7,222 |
3,971 |
30.3 |
osh-native |
35 |
no-host |
configure.util-linux |
10,865 |
6,963 |
4,021 |
30.4 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,350 |
821 |
535 |
24.5 |
bash |
14 |
no-host |
configure.yash |
1,312 |
848 |
465 |
24.5 |
dash |
22 |
no-host |
configure.yash |
2,625 |
1,629 |
1,046 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,334 |
801 |
535 |
24.5 |
osh-native |
38 |
no-host |
configure.yash |
1,565 |
950 |
616 |
24.6 |
osh-native-souffle |
0 |
no-host |
hello-world |
1 |
1 |
0 |
3.1 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
41 |
30 |
11 |
18.3 |
osh-cpython |
24 |
no-host |
hello-world |
2 |
2 |
0 |
6.4 |
osh-native |
32 |
no-host |
hello-world |
2 |
2 |
0 |
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,546 |
2 |
0 |
88 |
16 |
0 |
42 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,123 |
0 |
0 |
0 |
8 |
0 |
38 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,737 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,233 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
39 |
no-host |
abuild-print-help |
3,147 |
0 |
0 |
0 |
16 |
0 |
40 |
2 |
osh-native-souffle |
1 |
no-host |
bin-true |
106,364 |
2 |
0 |
72 |
8 |
0 |
2,002 |
59 |
bash |
9 |
no-host |
bin-true |
66,549 |
0 |
0 |
0 |
8 |
0 |
2,001 |
40 |
dash |
17 |
no-host |
bin-true |
765,341 |
0 |
0 |
0 |
8 |
0 |
2,007 |
171 |
osh-cpython |
25 |
no-host |
bin-true |
131,881 |
0 |
0 |
0 |
16 |
0 |
2,002 |
71 |
osh-native |
33 |
no-host |
bin-true |
126,906 |
0 |
0 |
0 |
16 |
0 |
2,001 |
62 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,217,676 |
6 |
0 |
208 |
32,928 |
0 |
15,589 |
2,122 |
bash |
10 |
no-host |
configure.cpython |
2,241,158 |
1 |
0 |
0 |
32,992 |
0 |
15,204 |
2,297 |
dash |
18 |
no-host |
configure.cpython |
6,244,831 |
0 |
0 |
0 |
27,512 |
0 |
13,086 |
1,873 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,232,860 |
0 |
0 |
0 |
27,520 |
0 |
13,352 |
1,283 |
osh-native |
34 |
no-host |
configure.cpython |
2,221,267 |
0 |
0 |
0 |
27,520 |
0 |
14,060 |
1,635 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,316 |
1 |
0 |
16 |
5,120 |
0 |
1,889 |
253 |
bash |
12 |
no-host |
configure.ocaml |
391,914 |
0 |
0 |
0 |
5,112 |
0 |
1,921 |
227 |
dash |
20 |
no-host |
configure.ocaml |
647,594 |
0 |
0 |
0 |
5,112 |
0 |
1,866 |
227 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,607 |
0 |
0 |
0 |
5,120 |
0 |
1,868 |
279 |
osh-native |
36 |
no-host |
configure.ocaml |
413,682 |
0 |
0 |
0 |
5,120 |
0 |
1,889 |
258 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,521 |
0 |
0 |
0 |
104 |
0 |
49 |
4 |
bash |
13 |
no-host |
configure.tcc |
5,494 |
0 |
0 |
0 |
96 |
0 |
47 |
5 |
dash |
21 |
no-host |
configure.tcc |
23,992 |
0 |
0 |
0 |
96 |
0 |
53 |
10 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,003 |
0 |
0 |
0 |
104 |
0 |
48 |
5 |
osh-native |
37 |
no-host |
configure.tcc |
6,962 |
0 |
0 |
0 |
104 |
0 |
46 |
2 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,106,772 |
6 |
0 |
224 |
42,408 |
0 |
22,588 |
5,970 |
bash |
11 |
no-host |
configure.util-linux |
2,265,927 |
0 |
0 |
0 |
42,584 |
0 |
19,409 |
3,884 |
dash |
19 |
no-host |
configure.util-linux |
5,363,214 |
2 |
0 |
0 |
39,120 |
0 |
17,031 |
1,920 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,013,058 |
2 |
0 |
0 |
39,128 |
0 |
16,860 |
1,189 |
osh-native |
35 |
no-host |
configure.util-linux |
2,002,586 |
1 |
0 |
0 |
39,128 |
0 |
17,040 |
1,217 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,733 |
0 |
0 |
0 |
4,120 |
0 |
863 |
78 |
bash |
14 |
no-host |
configure.yash |
245,566 |
0 |
0 |
0 |
3,720 |
0 |
871 |
88 |
dash |
22 |
no-host |
configure.yash |
387,448 |
0 |
0 |
0 |
3,728 |
0 |
853 |
92 |
osh-cpython |
30 |
no-host |
configure.yash |
258,181 |
0 |
0 |
0 |
3,736 |
0 |
849 |
92 |
osh-native |
38 |
no-host |
configure.yash |
258,106 |
0 |
0 |
0 |
3,736 |
0 |
850 |
92 |
osh-native-souffle |
0 |
no-host |
hello-world |
155 |
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,948 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
354 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
347 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host