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 |
19 |
9 |
450 |
22 |
22 |
23.58 |
1.14 |
bin-true |
no-host |
681 |
540 |
2,242 |
810 |
817 |
3.29 |
1.19 |
configure.cpython |
no-host |
14,926 |
15,104 |
28,407 |
15,365 |
15,177 |
1.90 |
1.03 |
configure.ocaml |
no-host |
3,786 |
3,731 |
4,623 |
3,893 |
3,862 |
1.22 |
1.03 |
configure.tcc |
no-host |
48 |
41 |
191 |
50 |
48 |
4.02 |
1.05 |
configure.util-linux |
no-host |
13,940 |
14,823 |
31,118 |
14,541 |
14,393 |
2.23 |
1.04 |
configure.yash |
no-host |
1,809 |
1,757 |
2,445 |
1,860 |
1,841 |
1.35 |
1.03 |
hello-world |
no-host |
1 |
1 |
49 |
3 |
3 |
32.98 |
2.04 |
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,507 |
1,129 |
23,166 |
3,198 |
3,152 |
9.24 |
1.28 |
bin-true |
no-host |
106,369 |
65,388 |
754,992 |
126,029 |
128,839 |
7.10 |
1.18 |
configure.cpython |
no-host |
2,228,407 |
2,240,466 |
6,220,645 |
2,229,540 |
2,221,279 |
2.79 |
1.00 |
configure.ocaml |
no-host |
410,102 |
390,959 |
645,602 |
413,032 |
413,063 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,558 |
5,479 |
23,496 |
7,016 |
6,915 |
3.58 |
1.07 |
configure.util-linux |
no-host |
2,102,590 |
2,262,795 |
5,339,830 |
1,998,658 |
1,994,248 |
2.54 |
0.95 |
configure.yash |
no-host |
255,683 |
245,179 |
386,307 |
258,089 |
257,354 |
1.51 |
1.01 |
hello-world |
no-host |
156 |
79 |
3,725 |
349 |
344 |
23.88 |
2.24 |
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,773 |
3,773 |
0 |
694 |
1,851 |
1,228 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
810 |
1 |
2 |
2.6 |
8.0 |
154,738 |
13,218 |
2,875 |
9,744 |
78,320 |
66,674 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,365 |
2 |
62 |
15.0 |
27.4 |
1,772,720 |
49,852 |
28,585 |
86,397 |
908,072 |
778,251 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,541 |
3 |
62 |
21.3 |
30.1 |
2,703,488 |
29,144 |
65,888 |
109,675 |
1,320,578 |
1,273,235 |
27,391 |
41 |
131,776 |
1 |
configure.ocaml |
no-host |
3,893 |
1 |
2 |
2.6 |
20.6 |
150,094 |
11,049 |
5,219 |
7,531 |
71,605 |
70,958 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.3 |
30,579 |
30,579 |
0 |
1,520 |
14,775 |
14,284 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,860 |
1 |
2 |
2.6 |
24.2 |
139,747 |
8,018 |
6,677 |
6,336 |
70,280 |
63,131 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,322 |
64,528 |
42,738 |
4,571 |
54,520 |
57,231 |
270 |
3 |
85,476 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.9 |
3,772 |
3,772 |
0 |
695 |
1,851 |
1,226 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
817 |
1 |
2 |
2.6 |
7.7 |
154,737 |
13,061 |
2,813 |
9,745 |
78,320 |
66,672 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,177 |
1 |
61 |
14.9 |
27.3 |
1,772,719 |
49,103 |
28,523 |
86,398 |
908,072 |
778,249 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,393 |
3 |
60 |
21.3 |
30.3 |
2,703,488 |
42,739 |
65,826 |
109,677 |
1,320,578 |
1,273,233 |
27,391 |
41 |
131,652 |
1 |
configure.ocaml |
no-host |
3,862 |
0 |
2 |
2.6 |
20.6 |
150,094 |
10,987 |
5,157 |
7,533 |
71,605 |
70,956 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.3 |
30,579 |
30,579 |
0 |
1,522 |
14,775 |
14,282 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,841 |
1 |
2 |
2.6 |
24.4 |
139,747 |
7,956 |
6,615 |
6,338 |
70,280 |
63,129 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.8 |
116,321 |
64,466 |
42,676 |
4,572 |
54,520 |
57,229 |
270 |
3 |
85,352 |
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 |
11 |
8 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
7 |
3 |
3.3 |
dash |
23 |
no-host |
abuild-print-help |
450 |
397 |
56 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
15 |
7 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
22 |
13 |
9 |
8.8 |
osh-native-souffle |
1 |
no-host |
bin-true |
681 |
505 |
209 |
3.0 |
bash |
9 |
no-host |
bin-true |
540 |
423 |
126 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,242 |
1,390 |
1,110 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
810 |
579 |
246 |
8.0 |
osh-native |
33 |
no-host |
bin-true |
817 |
575 |
255 |
7.7 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
14,926 |
8,919 |
6,401 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,104 |
8,977 |
6,550 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
28,407 |
17,214 |
13,020 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,365 |
9,258 |
6,377 |
27.4 |
osh-native |
34 |
no-host |
configure.cpython |
15,177 |
8,911 |
6,446 |
27.3 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,786 |
1,677 |
1,149 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,731 |
1,551 |
1,198 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,623 |
2,249 |
1,579 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,893 |
1,723 |
1,210 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,862 |
1,667 |
1,226 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
32 |
16 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
41 |
23 |
18 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
191 |
149 |
46 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
38 |
12 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
48 |
31 |
17 |
19.3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
13,940 |
8,819 |
5,598 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,823 |
9,122 |
6,203 |
30.4 |
dash |
19 |
no-host |
configure.util-linux |
31,118 |
20,563 |
11,646 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,541 |
8,669 |
6,071 |
30.1 |
osh-native |
35 |
no-host |
configure.util-linux |
14,393 |
8,779 |
5,805 |
30.3 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,809 |
1,029 |
789 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,757 |
1,023 |
738 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,445 |
1,504 |
983 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,860 |
1,018 |
845 |
24.2 |
osh-native |
38 |
no-host |
configure.yash |
1,841 |
1,026 |
819 |
24.4 |
osh-native-souffle |
0 |
no-host |
hello-world |
1 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
27 |
22 |
17.6 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
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,507 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,129 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,166 |
0 |
0 |
0 |
8 |
0 |
45 |
6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,198 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
39 |
no-host |
abuild-print-help |
3,152 |
0 |
0 |
0 |
16 |
0 |
38 |
3 |
osh-native-souffle |
1 |
no-host |
bin-true |
106,369 |
0 |
0 |
0 |
8 |
0 |
1,993 |
59 |
bash |
9 |
no-host |
bin-true |
65,388 |
0 |
0 |
0 |
8 |
0 |
1,984 |
41 |
dash |
17 |
no-host |
bin-true |
754,992 |
0 |
0 |
0 |
8 |
0 |
1,994 |
203 |
osh-cpython |
25 |
no-host |
bin-true |
126,029 |
0 |
0 |
0 |
16 |
0 |
1,991 |
51 |
osh-native |
33 |
no-host |
bin-true |
128,839 |
0 |
0 |
0 |
16 |
0 |
1,988 |
121 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,228,407 |
0 |
0 |
0 |
32,928 |
0 |
14,474 |
970 |
bash |
10 |
no-host |
configure.cpython |
2,240,466 |
0 |
0 |
0 |
32,992 |
0 |
14,642 |
1,155 |
dash |
18 |
no-host |
configure.cpython |
6,220,645 |
0 |
0 |
0 |
27,512 |
0 |
13,172 |
1,169 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,229,540 |
0 |
0 |
0 |
27,520 |
0 |
13,147 |
1,009 |
osh-native |
34 |
no-host |
configure.cpython |
2,221,279 |
0 |
0 |
0 |
27,520 |
0 |
13,236 |
1,003 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,102 |
0 |
0 |
0 |
5,120 |
0 |
1,948 |
161 |
bash |
12 |
no-host |
configure.ocaml |
390,959 |
0 |
0 |
0 |
5,112 |
0 |
1,914 |
160 |
dash |
20 |
no-host |
configure.ocaml |
645,602 |
0 |
0 |
0 |
5,112 |
0 |
1,855 |
191 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,032 |
0 |
0 |
0 |
5,120 |
0 |
1,932 |
171 |
osh-native |
36 |
no-host |
configure.ocaml |
413,063 |
0 |
0 |
0 |
5,120 |
0 |
1,927 |
169 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,558 |
0 |
0 |
0 |
104 |
0 |
49 |
4 |
bash |
13 |
no-host |
configure.tcc |
5,479 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,496 |
0 |
0 |
0 |
96 |
0 |
52 |
11 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,016 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
37 |
no-host |
configure.tcc |
6,915 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,102,590 |
0 |
0 |
0 |
42,400 |
0 |
18,564 |
1,017 |
bash |
11 |
no-host |
configure.util-linux |
2,262,795 |
0 |
0 |
0 |
42,584 |
0 |
17,448 |
1,197 |
dash |
19 |
no-host |
configure.util-linux |
5,339,830 |
10 |
0 |
0 |
39,120 |
0 |
16,947 |
1,370 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,998,658 |
0 |
0 |
0 |
39,120 |
0 |
16,943 |
1,042 |
osh-native |
35 |
no-host |
configure.util-linux |
1,994,248 |
2 |
0 |
0 |
39,128 |
0 |
16,963 |
997 |
osh-native-souffle |
6 |
no-host |
configure.yash |
255,683 |
0 |
0 |
0 |
4,120 |
0 |
871 |
88 |
bash |
14 |
no-host |
configure.yash |
245,179 |
0 |
0 |
0 |
3,720 |
0 |
865 |
79 |
dash |
22 |
no-host |
configure.yash |
386,307 |
0 |
0 |
0 |
3,728 |
0 |
853 |
93 |
osh-cpython |
30 |
no-host |
configure.yash |
258,089 |
0 |
0 |
0 |
3,736 |
0 |
848 |
152 |
osh-native |
38 |
no-host |
configure.yash |
257,354 |
0 |
0 |
0 |
3,736 |
0 |
851 |
75 |
osh-native-souffle |
0 |
no-host |
hello-world |
156 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
79 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
dash |
16 |
no-host |
hello-world |
3,725 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
32 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host