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 |
464 |
23 |
23.92 |
1.17 |
bin-true |
no-host |
679 |
549 |
2,253 |
824 |
3.32 |
1.21 |
configure.cpython |
no-host |
15,478 |
15,450 |
29,439 |
15,414 |
1.90 |
1.00 |
configure.ocaml |
no-host |
3,892 |
3,826 |
4,771 |
3,891 |
1.23 |
1.00 |
configure.tcc |
no-host |
48 |
42 |
198 |
49 |
4.10 |
1.02 |
configure.util-linux |
no-host |
14,370 |
15,229 |
32,539 |
14,550 |
2.26 |
1.01 |
configure.yash |
no-host |
1,861 |
1,821 |
2,538 |
1,869 |
1.36 |
1.00 |
hello-world |
no-host |
2 |
1 |
50 |
3 |
30.76 |
1.74 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,570 |
1,105 |
23,517 |
3,222 |
9.15 |
1.25 |
bin-true |
no-host |
104,381 |
65,393 |
748,312 |
126,212 |
7.17 |
1.21 |
configure.cpython |
no-host |
2,223,323 |
2,249,244 |
6,139,048 |
2,232,633 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,200 |
390,701 |
640,360 |
413,755 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,579 |
5,497 |
23,312 |
6,999 |
3.54 |
1.06 |
configure.util-linux |
no-host |
2,091,609 |
2,250,354 |
5,329,257 |
2,017,683 |
2.55 |
0.96 |
configure.yash |
no-host |
256,244 |
242,875 |
384,383 |
258,847 |
1.50 |
1.01 |
hello-world |
no-host |
153 |
79 |
3,687 |
346 |
24.10 |
2.26 |
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,727 |
3,727 |
0 |
684 |
1,877 |
1,166 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
824 |
1 |
2 |
2.7 |
8.1 |
154,692 |
12,992 |
2,799 |
11,737 |
78,346 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,414 |
2 |
62 |
15.8 |
27.4 |
1,772,668 |
49,197 |
28,508 |
101,770 |
908,098 |
762,800 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,550 |
3 |
60 |
22.2 |
30.1 |
2,703,404 |
44,766 |
65,792 |
126,121 |
1,320,596 |
1,256,687 |
49,081 |
41 |
131,584 |
1 |
configure.ocaml |
no-host |
3,891 |
1 |
2 |
2.7 |
20.6 |
150,038 |
11,045 |
5,138 |
8,602 |
71,634 |
69,802 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.1 |
30,527 |
30,527 |
0 |
1,599 |
14,801 |
14,127 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,869 |
1 |
2 |
2.6 |
24.4 |
139,695 |
7,964 |
6,600 |
7,554 |
70,306 |
61,835 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
9.0 |
116,270 |
64,455 |
42,663 |
4,610 |
54,546 |
57,114 |
478 |
3 |
85,326 |
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.2 |
bash |
15 |
no-host |
abuild-print-help |
10 |
8 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
464 |
404 |
64 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
15 |
8 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
679 |
487 |
224 |
2.9 |
bash |
9 |
no-host |
bin-true |
549 |
415 |
142 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,253 |
1,503 |
1,012 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
824 |
588 |
249 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,478 |
9,096 |
6,794 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,450 |
9,433 |
6,438 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,439 |
17,834 |
13,549 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,414 |
9,045 |
6,641 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,892 |
1,677 |
1,248 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,826 |
1,687 |
1,156 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,771 |
2,384 |
1,604 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,891 |
1,670 |
1,258 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
24 |
25 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
32 |
10 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
198 |
135 |
66 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
29 |
21 |
19.1 |
osh-native |
3 |
no-host |
configure.util-linux |
14,370 |
9,045 |
5,803 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,229 |
9,408 |
6,310 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
32,539 |
21,544 |
12,154 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,550 |
8,697 |
6,066 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,861 |
1,056 |
812 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,821 |
1,013 |
811 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,538 |
1,622 |
962 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,869 |
1,083 |
788 |
24.4 |
osh-native |
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 |
50 |
27 |
22 |
17.4 |
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,570 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
bash |
15 |
no-host |
abuild-print-help |
1,105 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,517 |
0 |
0 |
0 |
8 |
0 |
47 |
7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,222 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
osh-native |
1 |
no-host |
bin-true |
104,381 |
0 |
0 |
0 |
8 |
0 |
1,992 |
105 |
bash |
9 |
no-host |
bin-true |
65,393 |
0 |
0 |
0 |
8 |
0 |
1,987 |
90 |
dash |
17 |
no-host |
bin-true |
748,312 |
0 |
0 |
0 |
8 |
0 |
1,995 |
315 |
osh-cpython |
25 |
no-host |
bin-true |
126,212 |
0 |
0 |
0 |
16 |
0 |
1,981 |
61 |
osh-native |
2 |
no-host |
configure.cpython |
2,223,323 |
1 |
0 |
0 |
32,928 |
0 |
14,487 |
1,152 |
bash |
10 |
no-host |
configure.cpython |
2,249,244 |
0 |
0 |
0 |
32,992 |
0 |
14,631 |
1,136 |
dash |
18 |
no-host |
configure.cpython |
6,139,048 |
0 |
0 |
0 |
27,512 |
0 |
13,284 |
1,214 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,232,633 |
0 |
0 |
0 |
27,520 |
0 |
13,320 |
959 |
osh-native |
4 |
no-host |
configure.ocaml |
410,200 |
0 |
0 |
0 |
5,120 |
0 |
1,964 |
151 |
bash |
12 |
no-host |
configure.ocaml |
390,701 |
0 |
0 |
0 |
5,112 |
0 |
1,915 |
132 |
dash |
20 |
no-host |
configure.ocaml |
640,360 |
0 |
0 |
0 |
5,112 |
0 |
1,863 |
172 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,755 |
0 |
0 |
0 |
5,120 |
0 |
1,932 |
165 |
osh-native |
5 |
no-host |
configure.tcc |
6,579 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,497 |
0 |
0 |
0 |
96 |
0 |
47 |
0 |
dash |
21 |
no-host |
configure.tcc |
23,312 |
0 |
0 |
0 |
96 |
0 |
53 |
6 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,999 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,091,609 |
2 |
0 |
0 |
42,400 |
0 |
18,623 |
1,244 |
bash |
11 |
no-host |
configure.util-linux |
2,250,354 |
0 |
0 |
0 |
42,584 |
0 |
17,472 |
1,171 |
dash |
19 |
no-host |
configure.util-linux |
5,329,257 |
7 |
0 |
0 |
39,120 |
0 |
17,043 |
1,315 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,017,683 |
0 |
0 |
0 |
39,128 |
0 |
17,123 |
1,124 |
osh-native |
6 |
no-host |
configure.yash |
256,244 |
0 |
0 |
0 |
4,120 |
0 |
870 |
78 |
bash |
14 |
no-host |
configure.yash |
242,875 |
0 |
0 |
0 |
3,720 |
0 |
869 |
72 |
dash |
22 |
no-host |
configure.yash |
384,383 |
0 |
0 |
0 |
3,728 |
0 |
857 |
86 |
osh-cpython |
30 |
no-host |
configure.yash |
258,847 |
0 |
0 |
0 |
3,736 |
0 |
853 |
171 |
osh-native |
0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
bash |
8 |
no-host |
hello-world |
79 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
dash |
16 |
no-host |
hello-world |
3,687 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host