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 |
457 |
23 |
23.98 |
1.19 |
bin-true |
no-host |
676 |
551 |
2,254 |
825 |
3.33 |
1.22 |
configure.cpython |
no-host |
15,043 |
15,154 |
28,487 |
15,338 |
1.89 |
1.02 |
configure.ocaml |
no-host |
3,809 |
3,749 |
4,619 |
3,867 |
1.21 |
1.02 |
configure.tcc |
no-host |
48 |
42 |
194 |
49 |
4.07 |
1.02 |
configure.util-linux |
no-host |
14,048 |
14,952 |
31,095 |
14,469 |
2.21 |
1.03 |
configure.yash |
no-host |
1,832 |
1,780 |
2,437 |
1,846 |
1.33 |
1.01 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
30.25 |
1.84 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,530 |
1,097 |
23,456 |
3,223 |
9.27 |
1.27 |
bin-true |
no-host |
106,372 |
67,456 |
757,108 |
128,159 |
7.12 |
1.20 |
configure.cpython |
no-host |
2,217,261 |
2,244,979 |
6,118,537 |
2,239,299 |
2.76 |
1.01 |
configure.ocaml |
no-host |
410,470 |
390,721 |
639,156 |
413,746 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,562 |
5,482 |
23,187 |
6,972 |
3.53 |
1.06 |
configure.util-linux |
no-host |
2,095,458 |
2,265,272 |
5,318,468 |
2,013,199 |
2.54 |
0.96 |
configure.yash |
no-host |
256,655 |
244,405 |
384,752 |
258,323 |
1.50 |
1.01 |
hello-world |
no-host |
155 |
80 |
3,649 |
344 |
23.54 |
2.22 |
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,729 |
3,729 |
0 |
684 |
1,881 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
825 |
1 |
2 |
2.7 |
8.0 |
154,694 |
12,996 |
2,803 |
11,737 |
78,350 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,338 |
1 |
61 |
15.8 |
27.4 |
1,772,610 |
49,201 |
28,512 |
101,770 |
908,057 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,469 |
3 |
60 |
22.2 |
30.1 |
2,703,274 |
44,770 |
65,796 |
126,121 |
1,320,501 |
1,256,652 |
49,081 |
41 |
131,592 |
1 |
configure.ocaml |
no-host |
3,867 |
1 |
2 |
2.7 |
20.6 |
150,036 |
11,049 |
5,142 |
8,602 |
71,635 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,529 |
30,529 |
0 |
1,599 |
14,805 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,846 |
1 |
2 |
2.6 |
24.4 |
139,693 |
7,968 |
6,604 |
7,554 |
70,307 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.9 |
116,272 |
64,459 |
42,667 |
4,610 |
54,550 |
57,112 |
478 |
3 |
85,334 |
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 |
16 |
4 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
457 |
395 |
65 |
21.5 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
20 |
3 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
676 |
502 |
206 |
3.0 |
bash |
9 |
no-host |
bin-true |
551 |
432 |
131 |
1.3 |
dash |
17 |
no-host |
bin-true |
2,254 |
1,495 |
1,027 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
825 |
572 |
267 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,043 |
9,005 |
6,431 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,154 |
9,159 |
6,413 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,487 |
17,055 |
13,254 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,338 |
9,140 |
6,469 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,809 |
1,611 |
1,234 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,749 |
1,638 |
1,125 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,619 |
2,203 |
1,618 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,867 |
1,647 |
1,258 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
23 |
25 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
22 |
20 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
194 |
147 |
50 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
19 |
30 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,048 |
8,873 |
5,656 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,952 |
9,209 |
6,241 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,095 |
20,689 |
11,479 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,469 |
8,769 |
5,887 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,832 |
1,033 |
809 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,780 |
983 |
801 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,437 |
1,544 |
935 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,846 |
1,031 |
819 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.3 |
dash |
16 |
no-host |
hello-world |
48 |
26 |
22 |
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,530 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,097 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,456 |
0 |
0 |
0 |
8 |
0 |
47 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,223 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
osh-native |
1 |
no-host |
bin-true |
106,372 |
0 |
0 |
0 |
8 |
0 |
1,992 |
120 |
bash |
9 |
no-host |
bin-true |
67,456 |
0 |
0 |
0 |
8 |
0 |
1,986 |
101 |
dash |
17 |
no-host |
bin-true |
757,108 |
0 |
0 |
0 |
8 |
0 |
1,995 |
115 |
osh-cpython |
25 |
no-host |
bin-true |
128,159 |
0 |
0 |
0 |
16 |
0 |
1,989 |
100 |
osh-native |
2 |
no-host |
configure.cpython |
2,217,261 |
0 |
0 |
0 |
32,928 |
0 |
14,514 |
1,032 |
bash |
10 |
no-host |
configure.cpython |
2,244,979 |
0 |
0 |
0 |
32,992 |
0 |
14,554 |
1,126 |
dash |
18 |
no-host |
configure.cpython |
6,118,537 |
1 |
0 |
0 |
27,512 |
0 |
13,301 |
1,179 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,239,299 |
0 |
0 |
0 |
27,520 |
0 |
13,272 |
1,153 |
osh-native |
4 |
no-host |
configure.ocaml |
410,470 |
0 |
0 |
0 |
5,120 |
0 |
1,945 |
316 |
bash |
12 |
no-host |
configure.ocaml |
390,721 |
0 |
0 |
0 |
5,112 |
0 |
1,891 |
169 |
dash |
20 |
no-host |
configure.ocaml |
639,156 |
1 |
0 |
0 |
5,112 |
0 |
1,865 |
200 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,746 |
0 |
0 |
0 |
5,120 |
0 |
1,932 |
187 |
osh-native |
5 |
no-host |
configure.tcc |
6,562 |
0 |
0 |
0 |
104 |
0 |
49 |
4 |
bash |
13 |
no-host |
configure.tcc |
5,482 |
0 |
0 |
0 |
96 |
0 |
47 |
5 |
dash |
21 |
no-host |
configure.tcc |
23,187 |
0 |
0 |
0 |
96 |
0 |
53 |
11 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,972 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,095,458 |
1 |
0 |
0 |
42,400 |
0 |
18,569 |
1,081 |
bash |
11 |
no-host |
configure.util-linux |
2,265,272 |
0 |
0 |
0 |
42,584 |
0 |
17,444 |
1,153 |
dash |
19 |
no-host |
configure.util-linux |
5,318,468 |
14 |
0 |
0 |
39,128 |
0 |
17,210 |
1,231 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,013,199 |
1 |
0 |
0 |
39,128 |
0 |
17,202 |
986 |
osh-native |
6 |
no-host |
configure.yash |
256,655 |
0 |
0 |
0 |
4,120 |
0 |
871 |
88 |
bash |
14 |
no-host |
configure.yash |
244,405 |
0 |
0 |
0 |
3,720 |
0 |
871 |
66 |
dash |
22 |
no-host |
configure.yash |
384,752 |
0 |
0 |
0 |
3,728 |
0 |
857 |
91 |
osh-cpython |
30 |
no-host |
configure.yash |
258,323 |
0 |
0 |
0 |
3,736 |
0 |
849 |
76 |
osh-native |
0 |
no-host |
hello-world |
155 |
0 |
0 |
0 |
8 |
0 |
0 |
1 |
bash |
8 |
no-host |
hello-world |
80 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,649 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host