Now I have run the C benchmark and Ed's. My results are:
| Program | # iterations | time (s) | speed (K/s) | factor |
|--------------+--------------+----------+-------------+--------|
| ansi c | 150e6 | 133 | 1127.8195 | 1. |
| perl | 1.5e6 | 56 | 26.785714 | 42.1 |
| my pdl | 15e6 | 67 | 223.88060 | 5.0 |
| Ed's pdl | 15e6 | 16 | 937.5 | 1.2 |
| Ed's 4 cores | 15e6 | 11 | 1363.6364 | 0.8 |
So, as Ed wrote, just by stting and environment variable,
perl+pdl+pp_def can be made faster than c.
On Sat, Oct 02, 2021 at 07:03:50PM -0500, Luis Mochan wrote:
> I made my own version of the ray-tracing program (as I tried to
> understand it). I didn't use pp_def, only Perl and ordinary PDL. I used
> ...
--
o
W. Luis Mochán, | tel:(52)(777)329-1734 /<(*)
Instituto de Ciencias Físicas, UNAM | fax:(52)(777)317-5388 `>/ /\
Av. Universidad s/n CP 62210 | (*)/\/ \
Cuernavaca, Morelos, México | [email protected] /\_/\__/
GPG: 791EB9EB, C949 3F81 6D9B 1191 9A16 C2DF 5F0A C52B 791E B9EB
_______________________________________________
pdl-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pdl-devel