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 |
452 |
22 |
21 |
23.37 |
1.14 |
bin-true |
no-host |
679 |
545 |
2,244 |
804 |
804 |
3.30 |
1.18 |
configure.cpython |
no-host |
15,426 |
15,323 |
28,420 |
15,209 |
15,622 |
1.84 |
0.99 |
configure.ocaml |
no-host |
3,794 |
3,695 |
4,631 |
3,870 |
3,930 |
1.22 |
1.02 |
configure.tcc |
no-host |
48 |
41 |
194 |
49 |
50 |
4.01 |
1.02 |
configure.util-linux |
no-host |
14,162 |
14,784 |
31,430 |
14,299 |
14,854 |
2.22 |
1.01 |
configure.yash |
no-host |
1,843 |
1,746 |
2,433 |
1,832 |
1,895 |
1.32 |
0.99 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
3 |
29.56 |
1.72 |
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,545 |
1,112 |
23,233 |
3,174 |
3,063 |
9.13 |
1.25 |
bin-true |
no-host |
107,323 |
66,494 |
775,341 |
125,878 |
124,797 |
7.22 |
1.17 |
configure.cpython |
no-host |
2,221,645 |
2,247,652 |
6,252,792 |
2,227,670 |
2,210,968 |
2.81 |
1.00 |
configure.ocaml |
no-host |
410,805 |
390,828 |
649,130 |
413,265 |
411,962 |
1.58 |
1.01 |
configure.tcc |
no-host |
6,585 |
5,478 |
23,720 |
6,950 |
6,895 |
3.60 |
1.06 |
configure.util-linux |
no-host |
2,100,888 |
2,264,235 |
5,364,296 |
2,002,320 |
1,994,544 |
2.55 |
0.95 |
configure.yash |
no-host |
256,114 |
244,157 |
389,021 |
258,059 |
258,299 |
1.52 |
1.01 |
hello-world |
no-host |
153 |
83 |
3,734 |
353 |
344 |
24.41 |
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.4 |
3,775 |
3,775 |
0 |
696 |
1,852 |
1,227 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
804 |
1 |
2 |
2.6 |
8.1 |
154,740 |
13,220 |
2,877 |
9,746 |
78,321 |
66,673 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,209 |
1 |
62 |
15.0 |
27.3 |
1,772,722 |
49,854 |
28,587 |
86,399 |
908,073 |
778,250 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,299 |
3 |
60 |
21.3 |
30.3 |
2,703,490 |
29,146 |
65,890 |
109,677 |
1,320,579 |
1,273,234 |
27,391 |
41 |
131,780 |
1 |
configure.ocaml |
no-host |
3,870 |
1 |
2 |
2.6 |
20.6 |
150,096 |
11,051 |
5,221 |
7,533 |
71,606 |
70,957 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,581 |
30,581 |
0 |
1,522 |
14,776 |
14,283 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,832 |
1 |
2 |
2.6 |
24.4 |
139,749 |
8,020 |
6,679 |
6,338 |
70,281 |
63,130 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,324 |
64,530 |
42,740 |
4,573 |
54,521 |
57,230 |
270 |
3 |
85,480 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.9 |
3,774 |
3,774 |
0 |
697 |
1,852 |
1,225 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
804 |
1 |
2 |
2.6 |
7.7 |
154,739 |
13,063 |
2,815 |
9,747 |
78,321 |
66,671 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,622 |
1 |
63 |
14.9 |
27.4 |
1,772,721 |
49,105 |
28,525 |
86,400 |
908,073 |
778,248 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,854 |
3 |
64 |
21.3 |
29.9 |
2,703,490 |
42,741 |
65,808 |
109,679 |
1,320,579 |
1,273,232 |
27,391 |
41 |
131,616 |
1 |
configure.ocaml |
no-host |
3,930 |
1 |
2 |
2.6 |
20.6 |
150,096 |
10,989 |
5,159 |
7,535 |
71,606 |
70,955 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.3 |
30,581 |
30,581 |
0 |
1,524 |
14,776 |
14,281 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,895 |
1 |
2 |
2.6 |
24.2 |
139,749 |
7,958 |
6,617 |
6,340 |
70,281 |
63,128 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.5 |
116,323 |
64,468 |
42,678 |
4,574 |
54,521 |
57,228 |
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 |
11 |
9 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
10 |
0 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
452 |
407 |
49 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
20 |
3 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
13 |
8 |
8.5 |
osh-native-souffle |
1 |
no-host |
bin-true |
679 |
495 |
215 |
2.9 |
bash |
9 |
no-host |
bin-true |
545 |
423 |
132 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,244 |
1,504 |
1,002 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
804 |
575 |
243 |
8.1 |
osh-native |
33 |
no-host |
bin-true |
804 |
563 |
254 |
7.7 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,426 |
9,299 |
6,535 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,323 |
9,328 |
6,415 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,420 |
17,487 |
12,782 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,209 |
8,977 |
6,495 |
27.3 |
osh-native |
34 |
no-host |
configure.cpython |
15,622 |
9,094 |
6,698 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,794 |
1,574 |
1,261 |
20.7 |
bash |
12 |
no-host |
configure.ocaml |
3,695 |
1,582 |
1,132 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,631 |
2,158 |
1,682 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,870 |
1,629 |
1,279 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,930 |
1,688 |
1,278 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
36 |
13 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
20 |
21 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
194 |
145 |
52 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
28 |
22 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
50 |
28 |
23 |
19.3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,162 |
8,862 |
5,776 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,784 |
8,998 |
6,258 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,430 |
20,911 |
11,603 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,299 |
8,563 |
5,921 |
30.3 |
osh-native |
35 |
no-host |
configure.util-linux |
14,854 |
8,813 |
6,239 |
29.9 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,843 |
1,113 |
738 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,746 |
1,030 |
719 |
24.5 |
dash |
22 |
no-host |
configure.yash |
2,433 |
1,509 |
967 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,832 |
1,091 |
744 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,895 |
1,065 |
834 |
24.2 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
30 |
18 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.4 |
osh-native |
32 |
no-host |
hello-world |
3 |
0 |
3 |
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,545 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,112 |
0 |
0 |
0 |
8 |
0 |
39 |
2 |
dash |
23 |
no-host |
abuild-print-help |
23,233 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,174 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
39 |
no-host |
abuild-print-help |
3,063 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
1 |
no-host |
bin-true |
107,323 |
0 |
0 |
0 |
8 |
0 |
1,990 |
71 |
bash |
9 |
no-host |
bin-true |
66,494 |
0 |
0 |
0 |
8 |
0 |
1,987 |
45 |
dash |
17 |
no-host |
bin-true |
775,341 |
0 |
0 |
0 |
8 |
0 |
1,992 |
190 |
osh-cpython |
25 |
no-host |
bin-true |
125,878 |
0 |
0 |
0 |
16 |
0 |
1,995 |
55 |
osh-native |
33 |
no-host |
bin-true |
124,797 |
0 |
0 |
0 |
16 |
0 |
1,989 |
63 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,221,645 |
2 |
0 |
0 |
32,928 |
0 |
14,466 |
1,101 |
bash |
10 |
no-host |
configure.cpython |
2,247,652 |
0 |
0 |
0 |
32,992 |
0 |
14,626 |
1,130 |
dash |
18 |
no-host |
configure.cpython |
6,252,792 |
0 |
0 |
0 |
27,512 |
0 |
13,258 |
1,220 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,227,670 |
0 |
0 |
0 |
27,520 |
0 |
13,319 |
1,128 |
osh-native |
34 |
no-host |
configure.cpython |
2,210,968 |
0 |
0 |
0 |
27,520 |
0 |
13,242 |
1,054 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,805 |
0 |
0 |
0 |
5,120 |
0 |
1,950 |
148 |
bash |
12 |
no-host |
configure.ocaml |
390,828 |
0 |
0 |
0 |
5,112 |
0 |
1,884 |
156 |
dash |
20 |
no-host |
configure.ocaml |
649,130 |
0 |
0 |
0 |
5,112 |
0 |
1,855 |
176 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,265 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
168 |
osh-native |
36 |
no-host |
configure.ocaml |
411,962 |
0 |
0 |
0 |
5,120 |
0 |
1,937 |
139 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,585 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,478 |
0 |
0 |
0 |
96 |
0 |
46 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,720 |
0 |
0 |
0 |
96 |
0 |
53 |
4 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,950 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
37 |
no-host |
configure.tcc |
6,895 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,100,888 |
1 |
0 |
0 |
42,400 |
0 |
18,620 |
1,016 |
bash |
11 |
no-host |
configure.util-linux |
2,264,235 |
0 |
0 |
0 |
42,592 |
0 |
17,382 |
1,091 |
dash |
19 |
no-host |
configure.util-linux |
5,364,296 |
11 |
0 |
0 |
39,112 |
0 |
16,953 |
1,220 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,002,320 |
0 |
0 |
0 |
39,120 |
0 |
17,002 |
1,011 |
osh-native |
35 |
no-host |
configure.util-linux |
1,994,544 |
0 |
0 |
0 |
39,136 |
0 |
16,993 |
1,044 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,114 |
0 |
0 |
0 |
4,120 |
0 |
871 |
80 |
bash |
14 |
no-host |
configure.yash |
244,157 |
0 |
0 |
0 |
3,720 |
0 |
870 |
69 |
dash |
22 |
no-host |
configure.yash |
389,021 |
0 |
0 |
0 |
3,728 |
0 |
855 |
118 |
osh-cpython |
30 |
no-host |
configure.yash |
258,059 |
0 |
0 |
0 |
3,736 |
0 |
853 |
79 |
osh-native |
38 |
no-host |
configure.yash |
258,299 |
0 |
0 |
0 |
3,736 |
0 |
852 |
76 |
osh-native-souffle |
0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
0 |
1 |
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 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
353 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native-souffle |
Shell and Host