Article View: comp.lang.forth
Article #57Re: Pairwise dot product
From: Anton Ertl
Date: Sat, 10 Oct 2026 16:08
Date: Sat, 10 Oct 2026 16:08
29 lines
2541 bytes
2541 bytes
marcel hendrix <mhx@iae.nl> writes:
>FORTH> BENCH2
>\ V* : 2,626,824,105 clock ticks
>\ naive-V* : 2,616,912,602 clock ticks
>\ pairwise-V* : 2,275,658,158 clock ticks ok
>
>( As V* and naive-V* should give the same result, there is about 0.5% of
>clock jitter going on. I did let the caches warm up for a few seconds now. )
>
>Compared to the previous results, with variable stride,
>
> >> \ V* : 2,598,357,958 clock ticks
> >> \ naive-V* : 2,596,436,412 clock ticks
> >> \ pairwise-V* : 2,286,386,056 clock ticks
>
>It appears the V* code is about 1% slower (!) but pair-wise-V* has
>become 1% faster. Decreasing the stack pressure does not help, the pain
>is somewhere else.
For NAIVE-V* the bottleneck is probably the latency of the faddp,
which appears to be around 5 cycles on the processor you use (the
precision of computation may also play a role).
- anton
--
M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
New standard: https://forth-standard.org/
EuroForth 2026 CFP: http://www.euroforth.org/ef26/cfp.html
Technical Details
Message-ID:
<2026Oct10.180835@mips.complang.tuwien.ac.at>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<2026Oct8.175513@mips.complang.tuwien.ac.at> <11a9aah$19g75$1@dont-email.me> <2026Oct9.073240@mips.complang.tuwien.ac.at> <11aa44u$9s7j$1@dont-email.me> <2026Oct9.092016@mips.complang.tuwien.ac.at> <11aa9kv$9va2$1@dont-email.me> <2026Oct9.123752@mips.complang.tuwien.ac.at> <11adfbu$1dlto$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: anton@mips.complang.tuwien.ac.at (Anton Ertl) Newsgroups: comp.lang.forth Subject: Re: Pairwise dot product Date: Sat, 10 Oct 2026 16:08:35 GMT Organization: Institut fuer Computersprachen, Technische Universitaet Wien Lines: 29 Message-ID: <2026Oct10.180835@mips.complang.tuwien.ac.at> References: <2026Oct8.175513@mips.complang.tuwien.ac.at> <11a9aah$19g75$1@dont-email.me> <2026Oct9.073240@mips.complang.tuwien.ac.at> <11aa44u$9s7j$1@dont-email.me> <2026Oct9.092016@mips.complang.tuwien.ac.at> <11aa9kv$9va2$1@dont-email.me> <2026Oct9.123752@mips.complang.tuwien.ac.at> <11adfbu$1dlto$1@dont-email.me> Injection-Date: Sat, 10 Oct 2026 16:13:33 +0000 (UTC) Injection-Info: dont-email.me; logging-data="1977601"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18T6PGJPHIBigX/l6hdqC5d"; posting-host="292a01f39f2ea9111407aa21ba536edb" Cancel-Lock: sha1:NdDYtBj97j0JUaDWaCuclv81aFA= sha256:QpjEkL5sYT5BMvHIZIaalLxEatoRihv4gkxM9W4ldi4= sha1:EiRew3F2W6VFIa9Q7aD8EJQOkTA= sha256:USdsyj4M4RD6LakAqgEBjZhdISgAh0bcV26IA9ib+tQ= X-newsreader: xrn 10.11