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 |
476 |
22 |
24.35 |
1.14 |
bin-true |
no-host |
679 |
549 |
2,239 |
818 |
3.30 |
1.21 |
configure.cpython |
no-host |
15,620 |
15,701 |
29,359 |
15,866 |
1.88 |
1.02 |
configure.ocaml |
no-host |
3,939 |
3,832 |
4,779 |
3,928 |
1.21 |
1.00 |
configure.tcc |
no-host |
48 |
42 |
198 |
50 |
4.08 |
1.03 |
configure.util-linux |
no-host |
14,554 |
15,346 |
32,200 |
14,893 |
2.21 |
1.02 |
configure.yash |
no-host |
1,874 |
1,816 |
2,535 |
1,887 |
1.35 |
1.01 |
hello-world |
no-host |
2 |
1 |
51 |
3 |
31.70 |
1.81 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,533 |
1,107 |
23,411 |
3,214 |
9.24 |
1.27 |
bin-true |
no-host |
106,337 |
66,440 |
752,483 |
126,176 |
7.08 |
1.19 |
configure.cpython |
no-host |
2,223,421 |
2,243,329 |
6,144,870 |
2,228,670 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,162 |
391,139 |
638,691 |
413,863 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,536 |
5,484 |
23,199 |
6,999 |
3.55 |
1.07 |
configure.util-linux |
no-host |
2,102,368 |
2,261,500 |
5,334,836 |
2,012,202 |
2.54 |
0.96 |
configure.yash |
no-host |
255,706 |
243,122 |
386,503 |
259,069 |
1.51 |
1.01 |
hello-world |
no-host |
152 |
83 |
3,659 |
346 |
24.07 |
2.28 |
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,722 |
3,722 |
0 |
684 |
1,874 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
818 |
1 |
2 |
2.7 |
8.0 |
154,687 |
12,991 |
2,798 |
11,737 |
78,343 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,866 |
1 |
64 |
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,893 |
3 |
63 |
22.2 |
30.0 |
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,928 |
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 |
50 |
0 |
0 |
1.3 |
19.4 |
30,522 |
30,522 |
0 |
1,599 |
14,798 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,887 |
1 |
2 |
2.6 |
24.5 |
139,686 |
7,963 |
6,599 |
7,554 |
70,300 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.9 |
116,265 |
64,454 |
42,662 |
4,609 |
54,543 |
57,113 |
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 |
15 |
5 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
8 |
2 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
476 |
424 |
54 |
21.5 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
13 |
10 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
679 |
506 |
203 |
3.0 |
bash |
9 |
no-host |
bin-true |
549 |
423 |
133 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,239 |
1,467 |
1,040 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
818 |
584 |
248 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,620 |
9,216 |
6,810 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,701 |
9,484 |
6,636 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,359 |
17,707 |
13,561 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,866 |
9,197 |
6,933 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,939 |
1,761 |
1,207 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,832 |
1,650 |
1,200 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,779 |
2,334 |
1,656 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,928 |
1,694 |
1,274 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
33 |
16 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
21 |
21 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
198 |
144 |
57 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
26 |
24 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,554 |
9,098 |
5,946 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,346 |
9,470 |
6,365 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
32,200 |
21,556 |
11,782 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,893 |
8,884 |
6,197 |
30.0 |
osh-native |
6 |
no-host |
configure.yash |
1,874 |
1,091 |
792 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,816 |
1,062 |
757 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,535 |
1,535 |
1,046 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,887 |
1,056 |
837 |
24.5 |
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 |
51 |
35 |
15 |
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,533 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,107 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,411 |
0 |
0 |
0 |
8 |
0 |
47 |
13 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,214 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
106,337 |
0 |
0 |
0 |
8 |
0 |
1,987 |
49 |
bash |
9 |
no-host |
bin-true |
66,440 |
0 |
0 |
0 |
8 |
0 |
1,982 |
42 |
dash |
17 |
no-host |
bin-true |
752,483 |
0 |
0 |
0 |
8 |
0 |
1,990 |
148 |
osh-cpython |
25 |
no-host |
bin-true |
126,176 |
0 |
0 |
0 |
16 |
0 |
1,988 |
61 |
osh-native |
2 |
no-host |
configure.cpython |
2,223,421 |
1 |
0 |
0 |
32,928 |
0 |
14,447 |
1,154 |
bash |
10 |
no-host |
configure.cpython |
2,243,329 |
0 |
0 |
0 |
32,992 |
0 |
14,574 |
1,136 |
dash |
18 |
no-host |
configure.cpython |
6,144,870 |
1 |
0 |
0 |
27,512 |
0 |
13,173 |
1,237 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,228,670 |
2 |
0 |
0 |
27,520 |
0 |
13,263 |
944 |
osh-native |
4 |
no-host |
configure.ocaml |
410,162 |
0 |
0 |
0 |
5,120 |
0 |
1,964 |
172 |
bash |
12 |
no-host |
configure.ocaml |
391,139 |
0 |
0 |
0 |
5,112 |
0 |
1,898 |
139 |
dash |
20 |
no-host |
configure.ocaml |
638,691 |
0 |
0 |
0 |
5,112 |
0 |
1,861 |
155 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,863 |
0 |
0 |
0 |
5,120 |
0 |
1,934 |
159 |
osh-native |
5 |
no-host |
configure.tcc |
6,536 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,484 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,199 |
0 |
0 |
0 |
96 |
0 |
53 |
14 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,999 |
0 |
0 |
0 |
104 |
0 |
46 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,102,368 |
1 |
0 |
0 |
42,400 |
0 |
18,556 |
1,076 |
bash |
11 |
no-host |
configure.util-linux |
2,261,500 |
0 |
0 |
0 |
42,584 |
0 |
17,479 |
1,082 |
dash |
19 |
no-host |
configure.util-linux |
5,334,836 |
7 |
0 |
0 |
39,144 |
0 |
17,094 |
1,229 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,012,202 |
0 |
0 |
0 |
39,128 |
0 |
17,039 |
1,042 |
osh-native |
6 |
no-host |
configure.yash |
255,706 |
0 |
0 |
0 |
4,120 |
0 |
866 |
71 |
bash |
14 |
no-host |
configure.yash |
243,122 |
0 |
0 |
0 |
3,720 |
0 |
868 |
88 |
dash |
22 |
no-host |
configure.yash |
386,503 |
0 |
0 |
0 |
3,728 |
0 |
857 |
111 |
osh-cpython |
30 |
no-host |
configure.yash |
259,069 |
0 |
0 |
0 |
3,736 |
0 |
853 |
66 |
osh-native |
0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
bash |
8 |
no-host |
hello-world |
83 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,659 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host