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 |
459 |
23 |
23.77 |
1.17 |
bin-true |
no-host |
681 |
563 |
2,275 |
839 |
3.34 |
1.23 |
configure.cpython |
no-host |
15,626 |
15,695 |
29,574 |
15,918 |
1.89 |
1.02 |
configure.ocaml |
no-host |
3,920 |
3,850 |
4,757 |
3,968 |
1.21 |
1.01 |
configure.tcc |
no-host |
49 |
43 |
195 |
50 |
3.99 |
1.02 |
configure.util-linux |
no-host |
14,559 |
15,451 |
32,631 |
15,015 |
2.24 |
1.03 |
configure.yash |
no-host |
1,892 |
1,820 |
2,519 |
1,892 |
1.33 |
1.00 |
hello-world |
no-host |
2 |
1 |
52 |
3 |
33.11 |
1.80 |
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,131 |
23,064 |
3,202 |
9.00 |
1.25 |
bin-true |
no-host |
106,312 |
66,455 |
745,946 |
128,610 |
7.02 |
1.21 |
configure.cpython |
no-host |
2,215,851 |
2,241,415 |
6,057,260 |
2,254,820 |
2.73 |
1.02 |
configure.ocaml |
no-host |
410,436 |
389,999 |
634,649 |
414,060 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,567 |
5,459 |
22,979 |
6,990 |
3.50 |
1.06 |
configure.util-linux |
no-host |
2,100,480 |
2,258,023 |
5,294,034 |
2,016,907 |
2.52 |
0.96 |
configure.yash |
no-host |
256,619 |
244,514 |
383,890 |
258,693 |
1.50 |
1.01 |
hello-world |
no-host |
151 |
84 |
3,624 |
342 |
24.00 |
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.2 |
6.3 |
3,673 |
3,673 |
0 |
681 |
1,828 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
839 |
1 |
2 |
2.7 |
8.1 |
154,619 |
12,860 |
2,762 |
12,730 |
77,280 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,918 |
1 |
64 |
15.9 |
27.5 |
1,765,934 |
39,052 |
24,503 |
101,923 |
901,347 |
762,664 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
15,015 |
3 |
63 |
22.2 |
30.0 |
2,695,085 |
29,056 |
65,754 |
126,121 |
1,312,366 |
1,256,598 |
49,081 |
41 |
131,508 |
1 |
configure.ocaml |
no-host |
3,968 |
1 |
2 |
2.7 |
20.6 |
149,110 |
10,969 |
5,100 |
8,602 |
70,893 |
69,615 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.4 |
30,387 |
30,387 |
0 |
1,599 |
14,663 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,892 |
1 |
2 |
2.6 |
24.4 |
138,968 |
6,642 |
6,495 |
7,554 |
69,574 |
61,840 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.9 |
116,013 |
64,388 |
42,627 |
4,601 |
54,295 |
57,117 |
478 |
3 |
85,254 |
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.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
7 |
3 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
459 |
409 |
54 |
21.5 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
10 |
13 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
681 |
499 |
216 |
2.9 |
bash |
9 |
no-host |
bin-true |
563 |
425 |
147 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,275 |
1,494 |
1,033 |
17.0 |
osh-cpython |
25 |
no-host |
bin-true |
839 |
571 |
282 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,626 |
9,414 |
6,625 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,695 |
9,317 |
6,810 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
29,574 |
17,861 |
13,586 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,918 |
9,333 |
6,860 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,920 |
1,696 |
1,264 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,850 |
1,609 |
1,259 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,757 |
2,184 |
1,781 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,968 |
1,684 |
1,322 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
49 |
23 |
26 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
43 |
27 |
15 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
195 |
153 |
46 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
32 |
19 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,559 |
9,081 |
5,958 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,451 |
9,439 |
6,511 |
30.4 |
dash |
19 |
no-host |
configure.util-linux |
32,631 |
21,526 |
12,225 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
15,015 |
8,965 |
6,248 |
30.0 |
osh-native |
6 |
no-host |
configure.yash |
1,892 |
1,079 |
822 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,820 |
1,028 |
795 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,519 |
1,585 |
978 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,892 |
1,102 |
795 |
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 |
52 |
35 |
17 |
17.2 |
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,564 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,131 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,064 |
0 |
0 |
0 |
8 |
0 |
47 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,202 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
osh-native |
1 |
no-host |
bin-true |
106,312 |
0 |
0 |
0 |
8 |
0 |
1,992 |
40 |
bash |
9 |
no-host |
bin-true |
66,455 |
0 |
0 |
0 |
8 |
0 |
1,988 |
122 |
dash |
17 |
no-host |
bin-true |
745,946 |
0 |
0 |
0 |
8 |
0 |
1,998 |
390 |
osh-cpython |
25 |
no-host |
bin-true |
128,610 |
0 |
0 |
0 |
16 |
0 |
1,987 |
118 |
osh-native |
2 |
no-host |
configure.cpython |
2,215,851 |
6 |
0 |
0 |
32,928 |
0 |
14,613 |
1,065 |
bash |
10 |
no-host |
configure.cpython |
2,241,415 |
0 |
0 |
0 |
32,992 |
0 |
14,760 |
1,108 |
dash |
18 |
no-host |
configure.cpython |
6,057,260 |
1 |
0 |
0 |
27,512 |
0 |
13,432 |
1,328 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,254,820 |
0 |
0 |
0 |
27,520 |
0 |
13,388 |
988 |
osh-native |
4 |
no-host |
configure.ocaml |
410,436 |
0 |
0 |
0 |
5,120 |
0 |
1,949 |
136 |
bash |
12 |
no-host |
configure.ocaml |
389,999 |
0 |
0 |
0 |
5,112 |
0 |
1,868 |
155 |
dash |
20 |
no-host |
configure.ocaml |
634,649 |
0 |
0 |
0 |
5,112 |
0 |
1,864 |
197 |
osh-cpython |
28 |
no-host |
configure.ocaml |
414,060 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
164 |
osh-native |
5 |
no-host |
configure.tcc |
6,567 |
0 |
0 |
0 |
104 |
0 |
48 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,459 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
22,979 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,990 |
0 |
0 |
0 |
104 |
0 |
47 |
5 |
osh-native |
3 |
no-host |
configure.util-linux |
2,100,480 |
0 |
0 |
0 |
42,400 |
0 |
18,426 |
1,127 |
bash |
11 |
no-host |
configure.util-linux |
2,258,023 |
0 |
0 |
0 |
42,592 |
0 |
17,412 |
1,088 |
dash |
19 |
no-host |
configure.util-linux |
5,294,034 |
4 |
0 |
0 |
39,120 |
0 |
16,995 |
1,285 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,016,907 |
2 |
0 |
0 |
39,128 |
0 |
17,078 |
1,058 |
osh-native |
6 |
no-host |
configure.yash |
256,619 |
0 |
0 |
0 |
4,120 |
0 |
868 |
84 |
bash |
14 |
no-host |
configure.yash |
244,514 |
0 |
0 |
0 |
3,720 |
0 |
870 |
96 |
dash |
22 |
no-host |
configure.yash |
383,890 |
0 |
0 |
0 |
3,728 |
0 |
857 |
79 |
osh-cpython |
30 |
no-host |
configure.yash |
258,693 |
0 |
0 |
0 |
3,736 |
0 |
854 |
82 |
osh-native |
0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
84 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,624 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
24 |
no-host |
hello-world |
342 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host