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 |
463 |
23 |
21 |
24.07 |
1.19 |
bin-true |
no-host |
690 |
553 |
2,271 |
820 |
817 |
3.29 |
1.19 |
configure.cpython |
no-host |
15,445 |
15,329 |
29,347 |
15,602 |
15,755 |
1.90 |
1.01 |
configure.ocaml |
no-host |
3,880 |
3,801 |
4,786 |
3,938 |
3,907 |
1.23 |
1.01 |
configure.tcc |
no-host |
49 |
43 |
201 |
50 |
49 |
4.12 |
1.02 |
configure.util-linux |
no-host |
14,172 |
15,237 |
32,099 |
14,874 |
14,607 |
2.26 |
1.05 |
configure.yash |
no-host |
1,885 |
1,801 |
2,548 |
1,898 |
1,892 |
1.35 |
1.01 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
3 |
30.71 |
1.80 |
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,502 |
1,116 |
23,489 |
3,218 |
3,123 |
9.39 |
1.29 |
bin-true |
no-host |
108,368 |
66,387 |
754,534 |
124,194 |
125,800 |
6.96 |
1.15 |
configure.cpython |
no-host |
2,225,368 |
2,243,408 |
6,214,004 |
2,224,454 |
2,218,079 |
2.79 |
1.00 |
configure.ocaml |
no-host |
410,588 |
391,201 |
645,604 |
413,487 |
412,945 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,559 |
5,457 |
23,465 |
6,999 |
6,964 |
3.58 |
1.07 |
configure.util-linux |
no-host |
2,107,075 |
2,262,174 |
5,340,103 |
1,993,909 |
1,996,290 |
2.53 |
0.95 |
configure.yash |
no-host |
256,328 |
245,019 |
387,364 |
258,109 |
257,718 |
1.51 |
1.01 |
hello-world |
no-host |
154 |
80 |
3,720 |
351 |
345 |
24.16 |
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 |
3 |
0 |
0 |
0.2 |
6.2 |
3,773 |
3,773 |
0 |
694 |
1,851 |
1,228 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
820 |
1 |
2 |
2.6 |
8.1 |
154,738 |
13,218 |
2,875 |
9,744 |
78,320 |
66,674 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,602 |
1 |
64 |
15.0 |
27.5 |
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,874 |
3 |
64 |
21.3 |
30.1 |
2,703,488 |
42,056 |
65,868 |
109,675 |
1,320,578 |
1,273,235 |
27,391 |
41 |
131,736 |
1 |
configure.ocaml |
no-host |
3,938 |
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,898 |
1 |
2 |
2.6 |
24.5 |
139,747 |
8,018 |
6,677 |
6,336 |
70,280 |
63,131 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.9 |
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 |
6.0 |
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.6 |
154,737 |
13,061 |
2,813 |
9,745 |
78,320 |
66,672 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,755 |
1 |
65 |
14.9 |
27.7 |
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,607 |
3 |
62 |
21.3 |
30.0 |
2,703,488 |
44,166 |
65,806 |
109,677 |
1,320,578 |
1,273,233 |
27,391 |
41 |
131,612 |
1 |
configure.ocaml |
no-host |
3,907 |
1 |
2 |
2.6 |
20.4 |
150,094 |
10,987 |
5,157 |
7,533 |
71,605 |
70,956 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
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,892 |
1 |
2 |
2.6 |
24.5 |
139,747 |
7,956 |
6,615 |
6,338 |
70,280 |
63,129 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.5 |
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 |
7 |
12 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
8 |
2 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
463 |
420 |
45 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
22 |
2 |
8.9 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
16 |
6 |
8.5 |
osh-native-souffle |
1 |
no-host |
bin-true |
690 |
493 |
230 |
2.9 |
bash |
9 |
no-host |
bin-true |
553 |
423 |
139 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,271 |
1,476 |
1,058 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
820 |
577 |
257 |
8.1 |
osh-native |
33 |
no-host |
bin-true |
817 |
554 |
278 |
7.6 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,445 |
9,361 |
6,491 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,329 |
9,353 |
6,408 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
29,347 |
17,862 |
13,399 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,602 |
9,125 |
6,747 |
27.5 |
osh-native |
34 |
no-host |
configure.cpython |
15,755 |
9,175 |
6,760 |
27.7 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,880 |
1,688 |
1,231 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,801 |
1,632 |
1,185 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,786 |
2,267 |
1,730 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,938 |
1,622 |
1,360 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,907 |
1,602 |
1,344 |
20.4 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
49 |
27 |
22 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
43 |
27 |
16 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
201 |
146 |
58 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
18 |
32 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
49 |
35 |
15 |
19.3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,172 |
8,819 |
5,829 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,237 |
9,326 |
6,388 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
32,099 |
21,349 |
11,876 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,874 |
8,648 |
6,420 |
30.1 |
osh-native |
35 |
no-host |
configure.util-linux |
14,607 |
8,669 |
6,137 |
30.0 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,885 |
1,124 |
770 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,801 |
1,098 |
705 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,548 |
1,501 |
1,092 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,898 |
1,125 |
777 |
24.5 |
osh-native |
38 |
no-host |
configure.yash |
1,892 |
1,058 |
838 |
24.5 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
16 |
33 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.2 |
osh-native |
32 |
no-host |
hello-world |
3 |
0 |
3 |
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,502 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,116 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,489 |
0 |
0 |
0 |
8 |
0 |
45 |
12 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,218 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
39 |
no-host |
abuild-print-help |
3,123 |
0 |
0 |
0 |
16 |
0 |
39 |
4 |
osh-native-souffle |
1 |
no-host |
bin-true |
108,368 |
0 |
0 |
0 |
8 |
0 |
1,989 |
113 |
bash |
9 |
no-host |
bin-true |
66,387 |
0 |
0 |
0 |
8 |
0 |
1,991 |
137 |
dash |
17 |
no-host |
bin-true |
754,534 |
0 |
0 |
0 |
8 |
0 |
2,001 |
331 |
osh-cpython |
25 |
no-host |
bin-true |
124,194 |
0 |
0 |
0 |
16 |
0 |
1,991 |
65 |
osh-native |
33 |
no-host |
bin-true |
125,800 |
0 |
0 |
0 |
16 |
0 |
1,994 |
78 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,225,368 |
1 |
0 |
0 |
32,928 |
0 |
14,512 |
1,183 |
bash |
10 |
no-host |
configure.cpython |
2,243,408 |
0 |
0 |
0 |
32,992 |
0 |
14,566 |
1,034 |
dash |
18 |
no-host |
configure.cpython |
6,214,004 |
0 |
0 |
0 |
27,512 |
0 |
13,241 |
1,213 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,224,454 |
0 |
0 |
0 |
27,520 |
0 |
13,189 |
1,013 |
osh-native |
34 |
no-host |
configure.cpython |
2,218,079 |
0 |
0 |
0 |
27,520 |
0 |
13,302 |
961 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,588 |
0 |
0 |
0 |
5,120 |
0 |
1,951 |
148 |
bash |
12 |
no-host |
configure.ocaml |
391,201 |
0 |
0 |
0 |
5,112 |
0 |
1,870 |
155 |
dash |
20 |
no-host |
configure.ocaml |
645,604 |
0 |
0 |
0 |
5,112 |
0 |
1,856 |
186 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,487 |
0 |
0 |
0 |
5,120 |
0 |
1,935 |
179 |
osh-native |
36 |
no-host |
configure.ocaml |
412,945 |
0 |
0 |
0 |
5,120 |
0 |
1,936 |
158 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,559 |
0 |
0 |
0 |
104 |
0 |
49 |
4 |
bash |
13 |
no-host |
configure.tcc |
5,457 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,465 |
0 |
0 |
0 |
96 |
0 |
53 |
14 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,999 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
37 |
no-host |
configure.tcc |
6,964 |
0 |
0 |
0 |
104 |
0 |
47 |
0 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,107,075 |
2 |
0 |
0 |
42,400 |
0 |
18,623 |
987 |
bash |
11 |
no-host |
configure.util-linux |
2,262,174 |
0 |
0 |
0 |
42,584 |
0 |
17,410 |
1,138 |
dash |
19 |
no-host |
configure.util-linux |
5,340,103 |
17 |
0 |
0 |
39,112 |
0 |
16,968 |
1,261 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,993,909 |
0 |
0 |
0 |
39,120 |
0 |
16,988 |
1,070 |
osh-native |
35 |
no-host |
configure.util-linux |
1,996,290 |
0 |
0 |
0 |
39,136 |
0 |
16,904 |
939 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,328 |
0 |
0 |
0 |
4,120 |
0 |
874 |
98 |
bash |
14 |
no-host |
configure.yash |
245,019 |
0 |
0 |
0 |
3,720 |
0 |
869 |
88 |
dash |
22 |
no-host |
configure.yash |
387,364 |
0 |
0 |
0 |
3,728 |
0 |
847 |
102 |
osh-cpython |
30 |
no-host |
configure.yash |
258,109 |
0 |
0 |
0 |
3,736 |
0 |
849 |
139 |
osh-native |
38 |
no-host |
configure.yash |
257,718 |
0 |
0 |
0 |
3,736 |
0 |
852 |
86 |
osh-native-souffle |
0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
80 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,720 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
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 |
1 |
osh-native-souffle |
Shell and Host