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 |
10 |
462 |
22 |
21 |
24.33 |
1.16 |
bin-true |
no-host |
675 |
546 |
2,267 |
805 |
808 |
3.36 |
1.19 |
configure.cpython |
no-host |
15,058 |
15,415 |
28,634 |
15,227 |
15,307 |
1.90 |
1.01 |
configure.ocaml |
no-host |
3,836 |
3,755 |
4,654 |
3,811 |
3,818 |
1.21 |
0.99 |
configure.tcc |
no-host |
47 |
41 |
194 |
48 |
48 |
4.10 |
1.03 |
configure.util-linux |
no-host |
13,986 |
14,865 |
31,325 |
14,309 |
14,273 |
2.24 |
1.02 |
configure.yash |
no-host |
1,812 |
1,770 |
2,445 |
1,825 |
1,828 |
1.35 |
1.01 |
hello-world |
no-host |
2 |
1 |
50 |
3 |
3 |
33.01 |
1.87 |
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,563 |
1,097 |
23,424 |
3,176 |
3,077 |
9.14 |
1.24 |
bin-true |
no-host |
105,404 |
66,483 |
764,622 |
124,866 |
122,750 |
7.25 |
1.18 |
configure.cpython |
no-host |
2,221,679 |
2,243,680 |
6,208,290 |
2,225,342 |
2,211,544 |
2.79 |
1.00 |
configure.ocaml |
no-host |
410,423 |
390,748 |
644,840 |
412,116 |
412,465 |
1.57 |
1.00 |
configure.tcc |
no-host |
6,557 |
5,488 |
23,718 |
6,965 |
6,894 |
3.62 |
1.06 |
configure.util-linux |
no-host |
2,105,424 |
2,264,215 |
5,363,690 |
1,994,227 |
1,993,725 |
2.55 |
0.95 |
configure.yash |
no-host |
256,715 |
244,596 |
387,089 |
258,290 |
257,856 |
1.51 |
1.01 |
hello-world |
no-host |
153 |
84 |
3,736 |
351 |
345 |
24.42 |
2.29 |
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 |
805 |
1 |
2 |
2.6 |
8.3 |
154,738 |
13,220 |
2,877 |
9,745 |
78,319 |
66,674 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,227 |
1 |
61 |
15.0 |
27.4 |
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,309 |
3 |
60 |
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,811 |
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 |
48 |
0 |
0 |
1.3 |
19.4 |
30,579 |
30,579 |
0 |
1,521 |
14,774 |
14,284 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,825 |
1 |
2 |
2.6 |
24.2 |
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 |
6.0 |
3,772 |
3,772 |
0 |
696 |
1,850 |
1,226 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
808 |
1 |
2 |
2.6 |
7.6 |
154,737 |
13,063 |
2,815 |
9,746 |
78,319 |
66,672 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,307 |
1 |
60 |
14.9 |
27.4 |
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,273 |
3 |
59 |
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,818 |
1 |
2 |
2.6 |
20.4 |
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,828 |
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.5 |
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 |
3 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
8 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
462 |
413 |
53 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
19 |
4 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
15 |
6 |
8.5 |
osh-native-souffle |
1 |
no-host |
bin-true |
675 |
504 |
203 |
3.0 |
bash |
9 |
no-host |
bin-true |
546 |
413 |
143 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,267 |
1,449 |
1,089 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
805 |
574 |
246 |
8.3 |
osh-native |
33 |
no-host |
bin-true |
808 |
568 |
255 |
7.6 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,058 |
8,874 |
6,582 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,415 |
9,003 |
6,465 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,634 |
17,686 |
12,827 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,227 |
8,943 |
6,548 |
27.4 |
osh-native |
34 |
no-host |
configure.cpython |
15,307 |
8,837 |
6,611 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,836 |
1,565 |
1,279 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,755 |
1,557 |
1,216 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,654 |
2,215 |
1,649 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,811 |
1,539 |
1,311 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,818 |
1,689 |
1,166 |
20.4 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
47 |
37 |
11 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
41 |
24 |
18 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
194 |
144 |
53 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
48 |
28 |
21 |
19.4 |
osh-native |
37 |
no-host |
configure.tcc |
48 |
20 |
28 |
19.3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
13,986 |
8,559 |
5,895 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,865 |
9,082 |
6,289 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,325 |
20,994 |
11,430 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,309 |
8,571 |
5,938 |
30.3 |
osh-native |
35 |
no-host |
configure.util-linux |
14,273 |
8,491 |
5,975 |
30.0 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,812 |
1,070 |
750 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,770 |
1,018 |
755 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,445 |
1,503 |
986 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,825 |
1,078 |
751 |
24.2 |
osh-native |
38 |
no-host |
configure.yash |
1,828 |
1,096 |
734 |
24.4 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
50 |
20 |
29 |
17.6 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
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,563 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,097 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,424 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,176 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
39 |
no-host |
abuild-print-help |
3,077 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
1 |
no-host |
bin-true |
105,404 |
0 |
0 |
0 |
8 |
0 |
1,995 |
94 |
bash |
9 |
no-host |
bin-true |
66,483 |
0 |
0 |
0 |
8 |
0 |
1,987 |
59 |
dash |
17 |
no-host |
bin-true |
764,622 |
0 |
0 |
0 |
8 |
0 |
1,998 |
306 |
osh-cpython |
25 |
no-host |
bin-true |
124,866 |
0 |
0 |
0 |
16 |
0 |
1,990 |
56 |
osh-native |
33 |
no-host |
bin-true |
122,750 |
0 |
0 |
0 |
16 |
0 |
1,990 |
102 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,221,679 |
0 |
0 |
0 |
32,928 |
0 |
14,501 |
1,164 |
bash |
10 |
no-host |
configure.cpython |
2,243,680 |
0 |
0 |
0 |
32,992 |
0 |
14,643 |
1,191 |
dash |
18 |
no-host |
configure.cpython |
6,208,290 |
0 |
0 |
0 |
27,512 |
0 |
13,165 |
1,177 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,225,342 |
0 |
0 |
0 |
27,520 |
0 |
13,274 |
1,187 |
osh-native |
34 |
no-host |
configure.cpython |
2,211,544 |
0 |
0 |
0 |
27,520 |
0 |
13,297 |
1,115 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,423 |
0 |
0 |
0 |
5,120 |
0 |
1,954 |
177 |
bash |
12 |
no-host |
configure.ocaml |
390,748 |
0 |
0 |
0 |
5,112 |
0 |
1,943 |
223 |
dash |
20 |
no-host |
configure.ocaml |
644,840 |
0 |
0 |
0 |
5,112 |
0 |
1,863 |
177 |
osh-cpython |
28 |
no-host |
configure.ocaml |
412,116 |
0 |
0 |
0 |
5,120 |
0 |
1,928 |
171 |
osh-native |
36 |
no-host |
configure.ocaml |
412,465 |
0 |
0 |
0 |
5,120 |
0 |
1,932 |
151 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,557 |
0 |
0 |
0 |
104 |
0 |
49 |
0 |
bash |
13 |
no-host |
configure.tcc |
5,488 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
dash |
21 |
no-host |
configure.tcc |
23,718 |
0 |
0 |
0 |
96 |
0 |
52 |
19 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,965 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
37 |
no-host |
configure.tcc |
6,894 |
0 |
0 |
0 |
104 |
0 |
46 |
3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,105,424 |
2 |
0 |
0 |
42,400 |
0 |
18,599 |
1,056 |
bash |
11 |
no-host |
configure.util-linux |
2,264,215 |
0 |
0 |
0 |
42,584 |
0 |
17,601 |
1,038 |
dash |
19 |
no-host |
configure.util-linux |
5,363,690 |
10 |
0 |
0 |
39,112 |
0 |
16,957 |
1,204 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,994,227 |
1 |
0 |
0 |
39,120 |
0 |
16,973 |
954 |
osh-native |
35 |
no-host |
configure.util-linux |
1,993,725 |
1 |
0 |
0 |
39,128 |
0 |
16,936 |
1,078 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,715 |
0 |
0 |
0 |
4,120 |
0 |
870 |
75 |
bash |
14 |
no-host |
configure.yash |
244,596 |
0 |
0 |
0 |
3,720 |
0 |
871 |
74 |
dash |
22 |
no-host |
configure.yash |
387,089 |
0 |
0 |
0 |
3,728 |
0 |
855 |
96 |
osh-cpython |
30 |
no-host |
configure.yash |
258,290 |
0 |
0 |
0 |
3,736 |
0 |
851 |
88 |
osh-native |
38 |
no-host |
configure.yash |
257,856 |
0 |
0 |
0 |
3,736 |
0 |
847 |
75 |
osh-native-souffle |
0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
84 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,736 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
351 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
345 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host