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 |
22.74 |
1.10 |
bin-true |
no-host |
686 |
553 |
2,379 |
837 |
819 |
3.47 |
1.22 |
configure.cpython |
no-host |
15,717 |
15,781 |
30,250 |
15,901 |
15,955 |
1.92 |
1.01 |
configure.ocaml |
no-host |
3,898 |
3,868 |
4,824 |
3,932 |
3,928 |
1.24 |
1.01 |
configure.tcc |
no-host |
50 |
43 |
199 |
50 |
50 |
4.01 |
1.00 |
configure.util-linux |
no-host |
14,527 |
15,520 |
32,735 |
14,901 |
14,956 |
2.25 |
1.03 |
configure.yash |
no-host |
1,920 |
1,858 |
2,548 |
1,904 |
1,884 |
1.33 |
0.99 |
hello-world |
no-host |
2 |
1 |
54 |
3 |
3 |
23.77 |
1.34 |
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,525 |
1,129 |
23,458 |
3,141 |
3,074 |
9.29 |
1.24 |
bin-true |
no-host |
106,312 |
65,382 |
782,425 |
128,824 |
125,834 |
7.36 |
1.21 |
configure.cpython |
no-host |
2,217,655 |
2,242,524 |
6,272,970 |
2,228,795 |
2,222,991 |
2.83 |
1.01 |
configure.ocaml |
no-host |
410,440 |
390,889 |
647,626 |
413,476 |
412,129 |
1.58 |
1.01 |
configure.tcc |
no-host |
6,553 |
5,492 |
23,844 |
6,994 |
6,925 |
3.64 |
1.07 |
configure.util-linux |
no-host |
2,104,416 |
2,265,351 |
5,391,007 |
2,005,003 |
1,994,642 |
2.56 |
0.95 |
configure.yash |
no-host |
256,127 |
245,124 |
388,206 |
258,720 |
257,636 |
1.52 |
1.01 |
hello-world |
no-host |
152 |
79 |
3,754 |
351 |
346 |
24.70 |
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 |
3 |
0 |
0 |
0.2 |
6.3 |
3,782 |
3,782 |
0 |
695 |
1,857 |
1,230 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
837 |
1 |
2 |
2.6 |
8.1 |
154,747 |
13,284 |
2,886 |
9,745 |
78,326 |
66,676 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,901 |
1 |
64 |
15.0 |
27.4 |
1,772,729 |
49,954 |
28,595 |
86,398 |
908,078 |
778,253 |
25,733 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,901 |
3 |
63 |
21.3 |
30.1 |
2,703,497 |
29,754 |
65,879 |
109,676 |
1,320,584 |
1,273,237 |
32,239 |
41 |
131,758 |
1 |
configure.ocaml |
no-host |
3,932 |
1 |
2 |
2.6 |
20.6 |
150,103 |
11,131 |
5,225 |
7,532 |
71,611 |
70,960 |
1,695 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.3 |
30,588 |
30,588 |
0 |
1,521 |
14,781 |
14,286 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,904 |
1 |
2 |
2.6 |
24.4 |
139,756 |
8,029 |
6,688 |
6,337 |
70,286 |
63,133 |
2,095 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,331 |
64,539 |
42,749 |
4,572 |
54,526 |
57,233 |
277 |
3 |
85,498 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
6.0 |
3,781 |
3,781 |
0 |
696 |
1,857 |
1,228 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
819 |
1 |
2 |
2.6 |
7.9 |
154,746 |
13,072 |
2,824 |
9,746 |
78,326 |
66,674 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,955 |
1 |
65 |
15.0 |
27.5 |
1,772,728 |
49,114 |
28,533 |
86,399 |
908,078 |
778,251 |
25,733 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,956 |
3 |
63 |
21.3 |
30.1 |
2,703,497 |
44,714 |
65,817 |
109,678 |
1,320,584 |
1,273,235 |
32,239 |
41 |
131,634 |
1 |
configure.ocaml |
no-host |
3,928 |
1 |
2 |
2.6 |
20.6 |
150,103 |
11,069 |
5,163 |
7,534 |
71,611 |
70,958 |
1,695 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.4 |
30,588 |
30,588 |
0 |
1,523 |
14,781 |
14,284 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,884 |
1 |
2 |
2.6 |
24.4 |
139,756 |
7,967 |
6,626 |
6,339 |
70,286 |
63,131 |
2,095 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.7 |
116,330 |
64,477 |
42,687 |
4,573 |
54,526 |
57,231 |
277 |
3 |
85,374 |
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 |
6 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
465 |
432 |
36 |
22.0 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
16 |
7 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
19 |
3 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
686 |
497 |
222 |
2.6 |
bash |
9 |
no-host |
bin-true |
553 |
423 |
140 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,379 |
1,497 |
1,146 |
17.8 |
osh-cpython |
25 |
no-host |
bin-true |
837 |
583 |
268 |
8.1 |
osh-native |
33 |
no-host |
bin-true |
819 |
591 |
242 |
7.9 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,717 |
9,538 |
6,585 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,781 |
9,420 |
6,794 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
30,250 |
18,057 |
14,137 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,901 |
9,132 |
7,038 |
27.4 |
osh-native |
34 |
no-host |
configure.cpython |
15,955 |
9,261 |
6,870 |
27.5 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,898 |
1,711 |
1,226 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,868 |
1,629 |
1,259 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,824 |
2,282 |
1,757 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,932 |
1,656 |
1,313 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,928 |
1,724 |
1,240 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
50 |
34 |
16 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
43 |
27 |
16 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
199 |
163 |
39 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
31 |
19 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
50 |
27 |
24 |
19.4 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,527 |
9,098 |
5,918 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,520 |
9,358 |
6,666 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
32,735 |
21,484 |
12,372 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,901 |
8,833 |
6,260 |
30.1 |
osh-native |
35 |
no-host |
configure.util-linux |
14,956 |
9,016 |
6,120 |
30.1 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,920 |
1,099 |
829 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,858 |
1,060 |
803 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,548 |
1,571 |
1,020 |
25.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,904 |
1,055 |
851 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,884 |
1,099 |
787 |
24.4 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.3 |
dash |
16 |
no-host |
hello-world |
54 |
41 |
13 |
17.8 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.3 |
osh-native |
32 |
no-host |
hello-world |
3 |
3 |
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,525 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,129 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,458 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,141 |
0 |
0 |
0 |
16 |
0 |
38 |
0 |
osh-native |
39 |
no-host |
abuild-print-help |
3,074 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native-souffle |
1 |
no-host |
bin-true |
106,312 |
0 |
0 |
0 |
8 |
0 |
1,987 |
69 |
bash |
9 |
no-host |
bin-true |
65,382 |
0 |
0 |
0 |
8 |
0 |
1,993 |
113 |
dash |
17 |
no-host |
bin-true |
782,425 |
0 |
0 |
0 |
8 |
0 |
2,001 |
513 |
osh-cpython |
25 |
no-host |
bin-true |
128,824 |
0 |
0 |
0 |
16 |
0 |
1,982 |
101 |
osh-native |
33 |
no-host |
bin-true |
125,834 |
0 |
0 |
0 |
16 |
0 |
1,986 |
69 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,217,655 |
0 |
0 |
0 |
32,928 |
0 |
14,522 |
1,000 |
bash |
10 |
no-host |
configure.cpython |
2,242,524 |
0 |
0 |
0 |
32,992 |
0 |
14,627 |
1,040 |
dash |
18 |
no-host |
configure.cpython |
6,272,970 |
0 |
0 |
0 |
27,512 |
0 |
13,285 |
1,324 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,228,795 |
0 |
0 |
0 |
27,520 |
0 |
13,197 |
978 |
osh-native |
34 |
no-host |
configure.cpython |
2,222,991 |
0 |
0 |
0 |
27,520 |
0 |
13,245 |
937 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,440 |
0 |
0 |
0 |
5,120 |
0 |
1,948 |
151 |
bash |
12 |
no-host |
configure.ocaml |
390,889 |
0 |
0 |
0 |
5,112 |
0 |
1,886 |
152 |
dash |
20 |
no-host |
configure.ocaml |
647,626 |
0 |
0 |
0 |
5,112 |
0 |
1,862 |
219 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,476 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
169 |
osh-native |
36 |
no-host |
configure.ocaml |
412,129 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
176 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,553 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,492 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,844 |
0 |
0 |
0 |
96 |
0 |
52 |
5 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,994 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native |
37 |
no-host |
configure.tcc |
6,925 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,104,416 |
1 |
0 |
0 |
42,400 |
0 |
18,601 |
1,067 |
bash |
11 |
no-host |
configure.util-linux |
2,265,351 |
2 |
0 |
0 |
42,592 |
0 |
17,374 |
1,062 |
dash |
19 |
no-host |
configure.util-linux |
5,391,007 |
7 |
0 |
0 |
39,144 |
0 |
16,980 |
1,220 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,005,003 |
0 |
0 |
0 |
39,128 |
0 |
16,956 |
962 |
osh-native |
35 |
no-host |
configure.util-linux |
1,994,642 |
1 |
0 |
0 |
39,136 |
0 |
16,970 |
983 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,127 |
0 |
0 |
0 |
4,120 |
0 |
863 |
105 |
bash |
14 |
no-host |
configure.yash |
245,124 |
0 |
0 |
0 |
3,720 |
0 |
869 |
71 |
dash |
22 |
no-host |
configure.yash |
388,206 |
0 |
0 |
0 |
3,728 |
0 |
857 |
111 |
osh-cpython |
30 |
no-host |
configure.yash |
258,720 |
0 |
0 |
0 |
3,736 |
0 |
848 |
86 |
osh-native |
38 |
no-host |
configure.yash |
257,636 |
0 |
0 |
0 |
3,736 |
0 |
850 |
78 |
osh-native-souffle |
0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
79 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,754 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
24 |
no-host |
hello-world |
351 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
32 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host