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 |
472 |
23 |
23.99 |
1.16 |
bin-true |
no-host |
686 |
553 |
2,310 |
825 |
3.37 |
1.20 |
configure.cpython |
no-host |
15,742 |
15,865 |
29,867 |
15,678 |
1.90 |
1.00 |
configure.ocaml |
no-host |
3,987 |
3,869 |
4,755 |
3,940 |
1.19 |
0.99 |
configure.tcc |
no-host |
50 |
44 |
200 |
51 |
3.97 |
1.01 |
configure.util-linux |
no-host |
14,818 |
15,483 |
32,716 |
14,837 |
2.21 |
1.00 |
configure.yash |
no-host |
1,915 |
1,838 |
2,524 |
1,900 |
1.32 |
0.99 |
hello-world |
no-host |
2 |
1 |
51 |
3 |
33.27 |
2.00 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,527 |
1,113 |
23,333 |
3,200 |
9.23 |
1.27 |
bin-true |
no-host |
106,339 |
65,415 |
755,109 |
127,162 |
7.10 |
1.20 |
configure.cpython |
no-host |
2,218,081 |
2,241,772 |
6,137,225 |
2,233,951 |
2.77 |
1.01 |
configure.ocaml |
no-host |
410,439 |
390,963 |
639,408 |
413,524 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,579 |
5,491 |
23,195 |
6,979 |
3.53 |
1.06 |
configure.util-linux |
no-host |
2,104,584 |
2,256,527 |
5,337,462 |
2,009,956 |
2.54 |
0.96 |
configure.yash |
no-host |
256,033 |
245,123 |
386,216 |
258,686 |
1.51 |
1.01 |
hello-world |
no-host |
148 |
83 |
3,656 |
350 |
24.70 |
2.36 |
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,722 |
3,722 |
0 |
684 |
1,874 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
825 |
1 |
2 |
2.7 |
7.9 |
154,687 |
12,991 |
2,798 |
11,737 |
78,343 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,678 |
2 |
66 |
15.8 |
27.4 |
1,772,603 |
49,196 |
28,507 |
101,770 |
908,050 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,837 |
3 |
64 |
22.2 |
30.3 |
2,703,267 |
44,765 |
65,791 |
126,121 |
1,320,494 |
1,256,652 |
49,081 |
41 |
131,582 |
1 |
configure.ocaml |
no-host |
3,940 |
1 |
2 |
2.7 |
20.4 |
150,029 |
11,044 |
5,137 |
8,602 |
71,628 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
51 |
0 |
0 |
1.3 |
19.3 |
30,522 |
30,522 |
0 |
1,599 |
14,798 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,900 |
1 |
2 |
2.6 |
24.4 |
139,686 |
7,963 |
6,599 |
7,554 |
70,300 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.7 |
116,265 |
64,454 |
42,662 |
4,610 |
54,543 |
57,112 |
478 |
3 |
85,324 |
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 |
12 |
8 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
2 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
472 |
431 |
44 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
17 |
7 |
8.7 |
osh-native |
1 |
no-host |
bin-true |
686 |
498 |
220 |
2.9 |
bash |
9 |
no-host |
bin-true |
553 |
432 |
130 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,310 |
1,474 |
1,105 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
825 |
573 |
265 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,742 |
9,336 |
6,813 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,865 |
9,396 |
6,904 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,867 |
17,970 |
13,821 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,678 |
9,403 |
6,545 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,987 |
1,751 |
1,276 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,869 |
1,606 |
1,280 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,755 |
2,274 |
1,689 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,940 |
1,638 |
1,340 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
50 |
35 |
16 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
44 |
28 |
16 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
200 |
145 |
59 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
51 |
34 |
17 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,818 |
9,282 |
6,027 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,483 |
9,381 |
6,597 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
32,716 |
21,522 |
12,331 |
29.9 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,837 |
9,014 |
6,015 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,915 |
1,169 |
753 |
24.5 |
bash |
14 |
no-host |
configure.yash |
1,838 |
983 |
859 |
24.5 |
dash |
22 |
no-host |
configure.yash |
2,524 |
1,490 |
1,079 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,900 |
1,082 |
822 |
24.4 |
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 |
42 |
8 |
17.2 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
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,527 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,113 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,333 |
0 |
0 |
0 |
8 |
0 |
47 |
6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,200 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
osh-native |
1 |
no-host |
bin-true |
106,339 |
0 |
0 |
0 |
8 |
0 |
1,991 |
92 |
bash |
9 |
no-host |
bin-true |
65,415 |
0 |
0 |
0 |
8 |
0 |
1,989 |
79 |
dash |
17 |
no-host |
bin-true |
755,109 |
0 |
0 |
0 |
8 |
0 |
1,999 |
311 |
osh-cpython |
25 |
no-host |
bin-true |
127,162 |
0 |
0 |
0 |
16 |
0 |
1,987 |
95 |
osh-native |
2 |
no-host |
configure.cpython |
2,218,081 |
0 |
0 |
0 |
32,928 |
0 |
14,350 |
1,040 |
bash |
10 |
no-host |
configure.cpython |
2,241,772 |
0 |
0 |
0 |
32,992 |
0 |
14,574 |
1,241 |
dash |
18 |
no-host |
configure.cpython |
6,137,225 |
0 |
0 |
0 |
27,512 |
0 |
13,266 |
1,306 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,233,951 |
0 |
0 |
0 |
27,520 |
0 |
13,252 |
950 |
osh-native |
4 |
no-host |
configure.ocaml |
410,439 |
0 |
0 |
0 |
5,120 |
0 |
1,950 |
154 |
bash |
12 |
no-host |
configure.ocaml |
390,963 |
0 |
0 |
0 |
5,112 |
0 |
1,906 |
149 |
dash |
20 |
no-host |
configure.ocaml |
639,408 |
0 |
0 |
0 |
5,112 |
0 |
1,857 |
180 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,524 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
158 |
osh-native |
5 |
no-host |
configure.tcc |
6,579 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,491 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
dash |
21 |
no-host |
configure.tcc |
23,195 |
0 |
0 |
0 |
96 |
0 |
53 |
6 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,979 |
0 |
0 |
0 |
104 |
0 |
47 |
5 |
osh-native |
3 |
no-host |
configure.util-linux |
2,104,584 |
0 |
0 |
0 |
42,408 |
0 |
18,611 |
1,131 |
bash |
11 |
no-host |
configure.util-linux |
2,256,527 |
1 |
0 |
0 |
42,592 |
0 |
17,480 |
1,199 |
dash |
19 |
no-host |
configure.util-linux |
5,337,462 |
17 |
0 |
0 |
39,112 |
0 |
17,057 |
1,436 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,009,956 |
4 |
0 |
0 |
39,128 |
0 |
17,036 |
1,274 |
osh-native |
6 |
no-host |
configure.yash |
256,033 |
0 |
0 |
0 |
4,120 |
0 |
869 |
93 |
bash |
14 |
no-host |
configure.yash |
245,123 |
0 |
0 |
0 |
3,720 |
0 |
866 |
76 |
dash |
22 |
no-host |
configure.yash |
386,216 |
0 |
0 |
0 |
3,728 |
0 |
857 |
83 |
osh-cpython |
30 |
no-host |
configure.yash |
258,686 |
0 |
0 |
0 |
3,736 |
0 |
851 |
81 |
osh-native |
0 |
no-host |
hello-world |
148 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
83 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,656 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
350 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host