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 |
9 |
449 |
22 |
23.42 |
1.15 |
bin-true |
no-host |
678 |
545 |
2,216 |
859 |
3.27 |
1.27 |
configure.cpython |
no-host |
14,982 |
15,828 |
28,279 |
15,710 |
1.89 |
1.05 |
configure.ocaml |
no-host |
4,156 |
4,005 |
4,741 |
3,828 |
1.14 |
0.92 |
configure.tcc |
no-host |
48 |
41 |
194 |
48 |
4.06 |
1.01 |
configure.util-linux |
no-host |
13,967 |
15,264 |
32,046 |
14,380 |
2.29 |
1.03 |
configure.yash |
no-host |
1,855 |
1,756 |
2,508 |
1,826 |
1.35 |
0.98 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
31.90 |
1.87 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,543 |
1,117 |
23,533 |
3,231 |
9.25 |
1.27 |
bin-true |
no-host |
105,341 |
66,444 |
753,314 |
126,142 |
7.15 |
1.20 |
configure.cpython |
no-host |
2,224,756 |
2,242,821 |
6,137,437 |
2,234,741 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,218 |
390,821 |
639,486 |
413,420 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,553 |
5,487 |
23,298 |
6,988 |
3.56 |
1.07 |
configure.util-linux |
no-host |
2,093,095 |
2,258,410 |
5,314,720 |
2,016,254 |
2.54 |
0.96 |
configure.yash |
no-host |
256,553 |
244,596 |
384,880 |
258,979 |
1.50 |
1.01 |
hello-world |
no-host |
151 |
80 |
3,684 |
346 |
24.40 |
2.29 |
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.0 |
3,727 |
3,727 |
0 |
684 |
1,877 |
1,166 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
859 |
1 |
2 |
2.7 |
7.9 |
154,692 |
12,992 |
2,799 |
11,737 |
78,346 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,710 |
1 |
61 |
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,380 |
2 |
58 |
22.2 |
30.3 |
2,703,404 |
44,766 |
65,812 |
126,121 |
1,320,596 |
1,256,687 |
49,081 |
41 |
131,624 |
1 |
configure.ocaml |
no-host |
3,828 |
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 |
48 |
0 |
0 |
1.3 |
19.4 |
30,527 |
30,527 |
0 |
1,599 |
14,801 |
14,127 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,826 |
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 |
22 |
1 |
2 |
2.8 |
8.8 |
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 |
15 |
5 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
7 |
3 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
449 |
419 |
34 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
16 |
6 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
678 |
516 |
194 |
2.9 |
bash |
9 |
no-host |
bin-true |
545 |
419 |
135 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,216 |
1,461 |
1,007 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
859 |
572 |
288 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
14,982 |
9,110 |
6,267 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,828 |
9,573 |
6,628 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,279 |
17,199 |
12,903 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,710 |
8,971 |
6,933 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
4,156 |
1,813 |
1,392 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
4,005 |
1,723 |
1,301 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,741 |
2,329 |
1,614 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,828 |
1,661 |
1,206 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
27 |
21 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
27 |
15 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
194 |
142 |
55 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
48 |
26 |
23 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
13,967 |
8,888 |
5,552 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,264 |
9,228 |
6,529 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
32,046 |
21,461 |
11,648 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,380 |
8,654 |
5,915 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,855 |
1,110 |
748 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,756 |
1,037 |
723 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,508 |
1,493 |
1,057 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,826 |
1,002 |
828 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.3 |
dash |
16 |
no-host |
hello-world |
48 |
32 |
16 |
17.3 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.0 |
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,543 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,117 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,533 |
0 |
0 |
0 |
8 |
0 |
47 |
7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,231 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
osh-native |
1 |
no-host |
bin-true |
105,341 |
0 |
0 |
0 |
8 |
0 |
1,987 |
112 |
bash |
9 |
no-host |
bin-true |
66,444 |
0 |
0 |
0 |
8 |
0 |
1,978 |
69 |
dash |
17 |
no-host |
bin-true |
753,314 |
0 |
0 |
0 |
8 |
0 |
1,993 |
135 |
osh-cpython |
25 |
no-host |
bin-true |
126,142 |
0 |
0 |
0 |
16 |
0 |
1,989 |
61 |
osh-native |
2 |
no-host |
configure.cpython |
2,224,756 |
0 |
0 |
0 |
32,928 |
0 |
14,500 |
1,065 |
bash |
10 |
no-host |
configure.cpython |
2,242,821 |
1 |
0 |
0 |
32,992 |
0 |
14,696 |
1,128 |
dash |
18 |
no-host |
configure.cpython |
6,137,437 |
1 |
0 |
0 |
27,512 |
0 |
13,228 |
1,149 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,234,741 |
1 |
0 |
0 |
27,520 |
0 |
13,328 |
1,038 |
osh-native |
4 |
no-host |
configure.ocaml |
410,218 |
0 |
0 |
0 |
5,120 |
0 |
1,935 |
181 |
bash |
12 |
no-host |
configure.ocaml |
390,821 |
0 |
0 |
0 |
5,112 |
0 |
1,860 |
156 |
dash |
20 |
no-host |
configure.ocaml |
639,486 |
0 |
0 |
0 |
5,112 |
0 |
1,864 |
198 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,420 |
0 |
0 |
0 |
5,120 |
0 |
1,919 |
267 |
osh-native |
5 |
no-host |
configure.tcc |
6,553 |
0 |
0 |
0 |
104 |
0 |
49 |
10 |
bash |
13 |
no-host |
configure.tcc |
5,487 |
0 |
0 |
0 |
96 |
0 |
47 |
0 |
dash |
21 |
no-host |
configure.tcc |
23,298 |
0 |
0 |
0 |
96 |
0 |
53 |
7 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,988 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,093,095 |
0 |
0 |
0 |
42,400 |
0 |
18,603 |
1,114 |
bash |
11 |
no-host |
configure.util-linux |
2,258,410 |
2 |
0 |
0 |
42,592 |
0 |
17,469 |
1,145 |
dash |
19 |
no-host |
configure.util-linux |
5,314,720 |
7 |
0 |
0 |
39,136 |
0 |
17,124 |
1,353 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,016,254 |
0 |
0 |
0 |
39,128 |
0 |
17,069 |
1,008 |
osh-native |
6 |
no-host |
configure.yash |
256,553 |
0 |
0 |
0 |
4,120 |
0 |
874 |
74 |
bash |
14 |
no-host |
configure.yash |
244,596 |
0 |
0 |
0 |
3,720 |
0 |
870 |
80 |
dash |
22 |
no-host |
configure.yash |
384,880 |
0 |
0 |
0 |
3,728 |
0 |
858 |
92 |
osh-cpython |
30 |
no-host |
configure.yash |
258,979 |
0 |
0 |
0 |
3,736 |
0 |
853 |
95 |
osh-native |
0 |
no-host |
hello-world |
151 |
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,684 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host