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 |
20 |
10 |
463 |
23 |
23.47 |
1.18 |
bin-true |
no-host |
673 |
552 |
2,238 |
821 |
3.33 |
1.22 |
configure.cpython |
no-host |
15,524 |
15,747 |
29,527 |
15,625 |
1.90 |
1.01 |
configure.ocaml |
no-host |
3,940 |
3,873 |
4,724 |
3,947 |
1.20 |
1.00 |
configure.tcc |
no-host |
49 |
44 |
195 |
51 |
3.95 |
1.03 |
configure.util-linux |
no-host |
14,522 |
15,407 |
32,439 |
14,881 |
2.23 |
1.02 |
configure.yash |
no-host |
1,893 |
1,838 |
2,500 |
1,909 |
1.32 |
1.01 |
hello-world |
no-host |
2 |
1 |
50 |
3 |
32.05 |
1.93 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,564 |
1,135 |
23,311 |
3,231 |
9.09 |
1.26 |
bin-true |
no-host |
105,416 |
66,405 |
752,053 |
129,208 |
7.13 |
1.23 |
configure.cpython |
no-host |
2,235,137 |
2,248,889 |
6,165,980 |
2,229,132 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,547 |
390,897 |
640,814 |
413,061 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,545 |
5,485 |
23,280 |
7,011 |
3.56 |
1.07 |
configure.util-linux |
no-host |
2,093,534 |
2,264,381 |
5,349,162 |
2,015,692 |
2.56 |
0.96 |
configure.yash |
no-host |
256,156 |
245,229 |
385,536 |
258,872 |
1.51 |
1.01 |
hello-world |
no-host |
151 |
82 |
3,682 |
347 |
24.38 |
2.30 |
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.2 |
3,727 |
3,727 |
0 |
684 |
1,877 |
1,166 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
821 |
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,625 |
1 |
63 |
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,881 |
3 |
65 |
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,947 |
1 |
2 |
2.7 |
20.4 |
150,038 |
11,045 |
5,138 |
8,602 |
71,634 |
69,802 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
51 |
0 |
0 |
1.3 |
19.3 |
30,527 |
30,527 |
0 |
1,599 |
14,801 |
14,127 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,909 |
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 |
8.9 |
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 |
20 |
13 |
7 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
5 |
6 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
463 |
443 |
23 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
15 |
8 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
673 |
497 |
208 |
2.9 |
bash |
9 |
no-host |
bin-true |
552 |
423 |
137 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,238 |
1,488 |
1,013 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
821 |
586 |
250 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,524 |
9,412 |
6,526 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,747 |
9,281 |
6,901 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,527 |
17,711 |
13,737 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,625 |
9,273 |
6,619 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,940 |
1,634 |
1,345 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,873 |
1,695 |
1,196 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,724 |
2,204 |
1,727 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,947 |
1,704 |
1,281 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
49 |
28 |
21 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
44 |
29 |
15 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
195 |
144 |
54 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
51 |
33 |
19 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,522 |
8,982 |
6,015 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,407 |
9,577 |
6,332 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
32,439 |
21,484 |
12,098 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,881 |
8,952 |
6,101 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,893 |
1,119 |
784 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,838 |
1,056 |
783 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,500 |
1,473 |
1,071 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,909 |
1,129 |
785 |
24.4 |
osh-native |
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 |
31 |
19 |
17.3 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.2 |
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,564 |
0 |
0 |
0 |
16 |
0 |
40 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,135 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,311 |
0 |
0 |
0 |
8 |
0 |
47 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,231 |
0 |
0 |
0 |
16 |
0 |
41 |
4 |
osh-native |
1 |
no-host |
bin-true |
105,416 |
0 |
0 |
0 |
8 |
0 |
1,993 |
76 |
bash |
9 |
no-host |
bin-true |
66,405 |
0 |
0 |
0 |
8 |
0 |
1,989 |
39 |
dash |
17 |
no-host |
bin-true |
752,053 |
0 |
0 |
0 |
8 |
0 |
1,996 |
114 |
osh-cpython |
25 |
no-host |
bin-true |
129,208 |
0 |
0 |
0 |
16 |
0 |
1,996 |
61 |
osh-native |
2 |
no-host |
configure.cpython |
2,235,137 |
1 |
0 |
0 |
32,928 |
0 |
14,538 |
1,119 |
bash |
10 |
no-host |
configure.cpython |
2,248,889 |
0 |
0 |
0 |
32,992 |
0 |
14,722 |
1,045 |
dash |
18 |
no-host |
configure.cpython |
6,165,980 |
0 |
0 |
0 |
27,512 |
0 |
13,245 |
1,211 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,229,132 |
0 |
0 |
0 |
27,520 |
0 |
13,296 |
1,020 |
osh-native |
4 |
no-host |
configure.ocaml |
410,547 |
0 |
0 |
0 |
5,120 |
0 |
1,948 |
156 |
bash |
12 |
no-host |
configure.ocaml |
390,897 |
0 |
0 |
0 |
5,112 |
0 |
1,860 |
174 |
dash |
20 |
no-host |
configure.ocaml |
640,814 |
0 |
0 |
0 |
5,112 |
0 |
1,857 |
200 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,061 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
167 |
osh-native |
5 |
no-host |
configure.tcc |
6,545 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,485 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,280 |
0 |
0 |
0 |
96 |
0 |
53 |
5 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,011 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,093,534 |
0 |
0 |
0 |
42,400 |
0 |
18,508 |
1,121 |
bash |
11 |
no-host |
configure.util-linux |
2,264,381 |
1 |
0 |
0 |
42,584 |
0 |
17,525 |
1,191 |
dash |
19 |
no-host |
configure.util-linux |
5,349,162 |
7 |
0 |
0 |
39,120 |
0 |
17,019 |
1,386 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,015,692 |
0 |
0 |
0 |
39,128 |
0 |
17,097 |
1,140 |
osh-native |
6 |
no-host |
configure.yash |
256,156 |
0 |
0 |
0 |
4,120 |
0 |
868 |
57 |
bash |
14 |
no-host |
configure.yash |
245,229 |
0 |
0 |
0 |
3,720 |
0 |
864 |
128 |
dash |
22 |
no-host |
configure.yash |
385,536 |
0 |
0 |
0 |
3,728 |
0 |
857 |
112 |
osh-cpython |
30 |
no-host |
configure.yash |
258,872 |
0 |
0 |
0 |
3,736 |
0 |
851 |
72 |
osh-native |
0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
82 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,682 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
347 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host