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 |
452 |
22 |
21 |
23.85 |
1.14 |
bin-true |
no-host |
664 |
536 |
2,228 |
809 |
804 |
3.36 |
1.22 |
configure.cpython |
no-host |
14,732 |
14,781 |
28,132 |
14,993 |
14,955 |
1.91 |
1.02 |
configure.ocaml |
no-host |
3,752 |
3,680 |
4,562 |
3,789 |
3,764 |
1.22 |
1.01 |
configure.tcc |
no-host |
47 |
41 |
193 |
49 |
48 |
4.09 |
1.03 |
configure.util-linux |
no-host |
13,788 |
14,634 |
30,619 |
14,095 |
14,105 |
2.22 |
1.02 |
configure.yash |
no-host |
1,799 |
1,728 |
2,411 |
1,796 |
1,794 |
1.34 |
1.00 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
3 |
30.11 |
1.74 |
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,089 |
23,358 |
3,157 |
3,104 |
9.29 |
1.26 |
bin-true |
no-host |
104,335 |
66,367 |
763,536 |
126,850 |
124,860 |
7.32 |
1.22 |
configure.cpython |
no-host |
2,224,101 |
2,245,331 |
6,204,829 |
2,221,105 |
2,208,988 |
2.79 |
1.00 |
configure.ocaml |
no-host |
410,112 |
391,158 |
646,360 |
413,901 |
412,238 |
1.58 |
1.01 |
configure.tcc |
no-host |
6,552 |
5,460 |
23,671 |
6,989 |
6,911 |
3.61 |
1.07 |
configure.util-linux |
no-host |
2,108,825 |
2,264,539 |
5,348,843 |
1,997,343 |
1,996,090 |
2.54 |
0.95 |
configure.yash |
no-host |
255,493 |
245,045 |
387,515 |
258,314 |
257,027 |
1.52 |
1.01 |
hello-world |
no-host |
154 |
83 |
3,734 |
350 |
344 |
24.25 |
2.27 |
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 |
695 |
1,850 |
1,228 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
809 |
1 |
2 |
2.6 |
8.1 |
154,738 |
13,220 |
2,877 |
9,745 |
78,319 |
66,674 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
14,993 |
2 |
60 |
15.0 |
27.5 |
1,772,720 |
49,854 |
28,587 |
86,398 |
908,071 |
778,251 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,095 |
3 |
58 |
21.3 |
30.3 |
2,703,488 |
29,146 |
65,890 |
109,676 |
1,320,577 |
1,273,235 |
27,391 |
41 |
131,780 |
1 |
configure.ocaml |
no-host |
3,789 |
1 |
2 |
2.6 |
20.6 |
150,094 |
11,051 |
5,221 |
7,532 |
71,604 |
70,958 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,579 |
30,579 |
0 |
1,521 |
14,774 |
14,284 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,796 |
1 |
2 |
2.6 |
24.4 |
139,747 |
8,020 |
6,679 |
6,337 |
70,279 |
63,131 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,322 |
64,530 |
42,740 |
4,572 |
54,519 |
57,231 |
270 |
3 |
85,480 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.9 |
3,772 |
3,772 |
0 |
696 |
1,850 |
1,226 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
804 |
1 |
2 |
2.6 |
7.7 |
154,737 |
13,063 |
2,815 |
9,746 |
78,319 |
66,672 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
14,955 |
1 |
57 |
14.9 |
27.5 |
1,772,719 |
49,105 |
28,525 |
86,399 |
908,071 |
778,249 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,105 |
3 |
57 |
21.3 |
30.0 |
2,703,488 |
42,741 |
65,828 |
109,678 |
1,320,577 |
1,273,233 |
27,391 |
41 |
131,656 |
1 |
configure.ocaml |
no-host |
3,764 |
1 |
2 |
2.6 |
20.6 |
150,094 |
10,989 |
5,159 |
7,534 |
71,604 |
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,523 |
14,774 |
14,282 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,794 |
1 |
2 |
2.6 |
24.4 |
139,747 |
7,958 |
6,617 |
6,339 |
70,279 |
63,129 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.7 |
116,321 |
64,468 |
42,678 |
4,573 |
54,519 |
57,229 |
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 |
19 |
17 |
2 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
5 |
5 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
452 |
406 |
50 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
16 |
6 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
13 |
8 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
664 |
492 |
203 |
2.9 |
bash |
9 |
no-host |
bin-true |
536 |
418 |
127 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,228 |
1,456 |
1,032 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
809 |
573 |
251 |
8.1 |
osh-native |
33 |
no-host |
bin-true |
804 |
562 |
256 |
7.7 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
14,732 |
9,070 |
6,054 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
14,781 |
9,049 |
6,149 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,132 |
17,432 |
12,531 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
14,993 |
8,903 |
6,357 |
27.5 |
osh-native |
34 |
no-host |
configure.cpython |
14,955 |
8,737 |
6,403 |
27.5 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,752 |
1,591 |
1,198 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,680 |
1,544 |
1,155 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,562 |
2,163 |
1,606 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,789 |
1,597 |
1,232 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,764 |
1,637 |
1,164 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
47 |
35 |
12 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
41 |
20 |
21 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
193 |
157 |
39 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
34 |
15 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
48 |
23 |
26 |
19.3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
13,788 |
8,792 |
5,469 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,634 |
8,952 |
6,172 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
30,619 |
20,474 |
11,222 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,095 |
8,472 |
5,818 |
30.3 |
osh-native |
35 |
no-host |
configure.util-linux |
14,105 |
8,553 |
5,747 |
30.0 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,799 |
1,009 |
798 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,728 |
1,062 |
669 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,411 |
1,482 |
971 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,796 |
1,002 |
799 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,794 |
956 |
842 |
24.4 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
33 |
16 |
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 |
40 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,089 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,358 |
0 |
0 |
0 |
8 |
0 |
45 |
11 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,157 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
39 |
no-host |
abuild-print-help |
3,104 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
1 |
no-host |
bin-true |
104,335 |
0 |
0 |
0 |
8 |
0 |
1,989 |
77 |
bash |
9 |
no-host |
bin-true |
66,367 |
0 |
0 |
0 |
8 |
0 |
1,990 |
152 |
dash |
17 |
no-host |
bin-true |
763,536 |
0 |
0 |
0 |
8 |
0 |
1,998 |
95 |
osh-cpython |
25 |
no-host |
bin-true |
126,850 |
0 |
0 |
0 |
16 |
0 |
1,987 |
64 |
osh-native |
33 |
no-host |
bin-true |
124,860 |
0 |
0 |
0 |
16 |
0 |
1,989 |
67 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,224,101 |
0 |
0 |
0 |
32,928 |
0 |
14,554 |
1,192 |
bash |
10 |
no-host |
configure.cpython |
2,245,331 |
0 |
0 |
0 |
32,992 |
0 |
14,623 |
1,054 |
dash |
18 |
no-host |
configure.cpython |
6,204,829 |
1 |
0 |
0 |
27,512 |
0 |
13,228 |
1,172 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,221,105 |
0 |
0 |
0 |
27,520 |
0 |
13,183 |
1,084 |
osh-native |
34 |
no-host |
configure.cpython |
2,208,988 |
0 |
0 |
0 |
27,520 |
0 |
13,293 |
1,048 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,112 |
0 |
0 |
0 |
5,120 |
0 |
1,952 |
213 |
bash |
12 |
no-host |
configure.ocaml |
391,158 |
0 |
0 |
0 |
5,112 |
0 |
1,915 |
165 |
dash |
20 |
no-host |
configure.ocaml |
646,360 |
0 |
0 |
0 |
5,112 |
0 |
1,870 |
178 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,901 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
182 |
osh-native |
36 |
no-host |
configure.ocaml |
412,238 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
171 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,552 |
0 |
0 |
0 |
104 |
0 |
49 |
13 |
bash |
13 |
no-host |
configure.tcc |
5,460 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,671 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,989 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
37 |
no-host |
configure.tcc |
6,911 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,108,825 |
0 |
0 |
0 |
42,400 |
0 |
18,589 |
1,137 |
bash |
11 |
no-host |
configure.util-linux |
2,264,539 |
1 |
0 |
0 |
42,584 |
0 |
17,531 |
1,115 |
dash |
19 |
no-host |
configure.util-linux |
5,348,843 |
5 |
0 |
0 |
39,112 |
0 |
16,941 |
1,083 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,997,343 |
0 |
0 |
0 |
39,120 |
0 |
16,911 |
979 |
osh-native |
35 |
no-host |
configure.util-linux |
1,996,090 |
5 |
0 |
0 |
39,128 |
0 |
16,987 |
1,006 |
osh-native-souffle |
6 |
no-host |
configure.yash |
255,493 |
0 |
0 |
0 |
4,120 |
0 |
873 |
85 |
bash |
14 |
no-host |
configure.yash |
245,045 |
0 |
0 |
0 |
3,720 |
0 |
869 |
77 |
dash |
22 |
no-host |
configure.yash |
387,515 |
0 |
0 |
0 |
3,728 |
0 |
855 |
76 |
osh-cpython |
30 |
no-host |
configure.yash |
258,314 |
0 |
0 |
0 |
3,736 |
0 |
852 |
71 |
osh-native |
38 |
no-host |
configure.yash |
257,027 |
0 |
0 |
0 |
3,736 |
0 |
846 |
80 |
osh-native-souffle |
0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
83 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,734 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
350 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host