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 |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
19 |
10 |
457 |
23 |
23.80 |
1.17 |
bin-true |
no-host |
686 |
545 |
2,243 |
824 |
3.27 |
1.20 |
configure.cpython |
no-host |
15,134 |
15,191 |
28,766 |
15,267 |
1.90 |
1.01 |
configure.ocaml |
no-host |
3,811 |
3,758 |
4,658 |
3,843 |
1.22 |
1.01 |
configure.tcc |
no-host |
47 |
43 |
198 |
49 |
4.17 |
1.04 |
configure.util-linux |
no-host |
14,077 |
14,947 |
31,326 |
14,440 |
2.23 |
1.03 |
configure.yash |
no-host |
1,835 |
1,774 |
2,477 |
1,845 |
1.35 |
1.01 |
hello-world |
no-host |
2 |
1 |
51 |
3 |
33.49 |
1.88 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,574 |
1,135 |
22,841 |
3,200 |
8.87 |
1.24 |
bin-true |
no-host |
108,287 |
65,425 |
753,951 |
129,144 |
6.96 |
1.19 |
configure.cpython |
no-host |
2,226,432 |
2,246,152 |
6,150,947 |
2,211,703 |
2.76 |
0.99 |
configure.ocaml |
no-host |
410,273 |
391,024 |
640,280 |
413,423 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,537 |
5,482 |
23,294 |
6,988 |
3.56 |
1.07 |
configure.util-linux |
no-host |
2,104,691 |
2,261,748 |
5,309,761 |
1,996,529 |
2.52 |
0.95 |
configure.yash |
no-host |
255,890 |
244,548 |
384,777 |
257,787 |
1.50 |
1.01 |
hello-world |
no-host |
148 |
81 |
3,683 |
346 |
24.89 |
2.34 |
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.3 |
6.3 |
3,732 |
3,732 |
0 |
681 |
1,882 |
1,169 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
824 |
1 |
2 |
2.6 |
8.3 |
154,697 |
12,996 |
2,803 |
9,731 |
78,351 |
66,615 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,267 |
1 |
63 |
15.0 |
27.5 |
1,772,673 |
49,201 |
28,512 |
86,378 |
908,103 |
778,192 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,440 |
3 |
63 |
21.3 |
30.0 |
2,703,409 |
42,776 |
65,817 |
109,640 |
1,320,601 |
1,273,168 |
49,081 |
41 |
131,634 |
1 |
configure.ocaml |
no-host |
3,843 |
1 |
2 |
2.6 |
20.6 |
150,043 |
11,050 |
5,143 |
7,510 |
71,639 |
70,894 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,532 |
30,532 |
0 |
1,501 |
14,806 |
14,225 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,845 |
1 |
2 |
2.6 |
24.2 |
139,700 |
7,968 |
6,604 |
6,317 |
70,311 |
63,072 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
9.0 |
116,275 |
64,459 |
42,667 |
4,552 |
54,551 |
57,172 |
478 |
3 |
85,334 |
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 |
14 |
6 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
10 |
0 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
457 |
414 |
46 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
22 |
1 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
686 |
498 |
219 |
2.9 |
bash |
9 |
no-host |
bin-true |
545 |
418 |
134 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,243 |
1,452 |
1,056 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
824 |
588 |
250 |
8.3 |
osh-native |
2 |
no-host |
configure.cpython |
15,134 |
9,238 |
6,292 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,191 |
9,099 |
6,515 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,766 |
17,610 |
13,046 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,267 |
8,846 |
6,684 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,811 |
1,601 |
1,247 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,758 |
1,590 |
1,183 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,658 |
2,221 |
1,648 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,843 |
1,610 |
1,272 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
33 |
15 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
43 |
30 |
13 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
198 |
151 |
50 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
22 |
28 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,077 |
8,868 |
5,681 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,947 |
9,132 |
6,314 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,326 |
20,891 |
11,524 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,440 |
8,805 |
5,832 |
30.0 |
osh-native |
6 |
no-host |
configure.yash |
1,835 |
1,032 |
812 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,774 |
1,027 |
750 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,477 |
1,503 |
1,017 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,845 |
1,112 |
735 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.6 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
51 |
24 |
27 |
17.3 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.3 |
osh-native |
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,574 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,135 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
22,841 |
0 |
0 |
0 |
8 |
0 |
44 |
3 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,200 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
1 |
no-host |
bin-true |
108,287 |
0 |
0 |
0 |
8 |
0 |
1,989 |
57 |
bash |
9 |
no-host |
bin-true |
65,425 |
0 |
0 |
0 |
8 |
0 |
1,985 |
41 |
dash |
17 |
no-host |
bin-true |
753,951 |
0 |
0 |
0 |
8 |
0 |
1,999 |
152 |
osh-cpython |
25 |
no-host |
bin-true |
129,144 |
0 |
0 |
0 |
16 |
0 |
1,986 |
128 |
osh-native |
2 |
no-host |
configure.cpython |
2,226,432 |
0 |
0 |
0 |
32,928 |
0 |
14,553 |
1,010 |
bash |
10 |
no-host |
configure.cpython |
2,246,152 |
0 |
0 |
0 |
32,992 |
0 |
14,673 |
1,128 |
dash |
18 |
no-host |
configure.cpython |
6,150,947 |
1 |
0 |
0 |
27,512 |
0 |
13,264 |
1,208 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,211,703 |
0 |
0 |
0 |
27,520 |
0 |
13,240 |
1,006 |
osh-native |
4 |
no-host |
configure.ocaml |
410,273 |
0 |
0 |
0 |
5,120 |
0 |
1,947 |
212 |
bash |
12 |
no-host |
configure.ocaml |
391,024 |
0 |
0 |
0 |
5,112 |
0 |
1,947 |
156 |
dash |
20 |
no-host |
configure.ocaml |
640,280 |
0 |
0 |
0 |
5,112 |
0 |
1,854 |
187 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,423 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
178 |
osh-native |
5 |
no-host |
configure.tcc |
6,537 |
0 |
0 |
0 |
104 |
0 |
49 |
4 |
bash |
13 |
no-host |
configure.tcc |
5,482 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,294 |
0 |
0 |
0 |
96 |
0 |
53 |
13 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,988 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native |
3 |
no-host |
configure.util-linux |
2,104,691 |
0 |
0 |
0 |
42,400 |
0 |
18,580 |
1,175 |
bash |
11 |
no-host |
configure.util-linux |
2,261,748 |
2 |
0 |
0 |
42,584 |
0 |
17,583 |
1,132 |
dash |
19 |
no-host |
configure.util-linux |
5,309,761 |
19 |
0 |
0 |
39,120 |
0 |
16,956 |
1,203 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,996,529 |
1 |
0 |
0 |
39,120 |
0 |
16,973 |
1,133 |
osh-native |
6 |
no-host |
configure.yash |
255,890 |
0 |
0 |
0 |
4,120 |
0 |
867 |
68 |
bash |
14 |
no-host |
configure.yash |
244,548 |
0 |
0 |
0 |
3,720 |
0 |
869 |
86 |
dash |
22 |
no-host |
configure.yash |
384,777 |
0 |
0 |
0 |
3,728 |
0 |
851 |
112 |
osh-cpython |
30 |
no-host |
configure.yash |
257,787 |
0 |
0 |
0 |
3,736 |
0 |
846 |
111 |
osh-native |
0 |
no-host |
hello-world |
148 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
81 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,683 |
0 |
0 |
0 |
8 |
0 |
7 |
7 |
osh-cpython |
24 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host