Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Feb 2021 13:00:43 -0800
From:      Mark Millard <marklmi@yahoo.com>
To:        Robert Crowston <crowston@protonmail.com>
Cc:        Elwood Downey <elwood.downey@gmail.com>, freebsd-arm@freebsd.org
Subject:   Re: freebsd 6x slower than Raspbian 10 buster on RPi 4b
Message-ID:  <5936166C-AC39-4801-A5A9-16583CAB4426@yahoo.com>
In-Reply-To: <dBWMEocegYB5Tyr0NAjt47UFprbaLJnAZK00oG8D-0xAXcJCOfCCU5JnBKu3LA8aO8EcN3gg25r9CvllNQw8KKJ0BzxvWYWJxGIpw893Nyg=@protonmail.com>
References:  <CAL98DL44SPbiT9EHuxrDSzttUyv0coj6nGNJ2VpYArsfujP_bg@mail.gmail.com> <643B18D0-B1B1-40E9-9FC6-B6380D1DD4A8@yahoo.com> <DD1E1EAD-A166-4B11-BBB0-A7A6F059A285@yahoo.com> <2F92A281-11DF-41C1-80A4-64FD914E9FF4@yahoo.com> <dBWMEocegYB5Tyr0NAjt47UFprbaLJnAZK00oG8D-0xAXcJCOfCCU5JnBKu3LA8aO8EcN3gg25r9CvllNQw8KKJ0BzxvWYWJxGIpw893Nyg=@protonmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2021-Feb-10, at 06:05, Robert Crowston <crowston at protonmail.com> =
wrote:

> I am surprised gcc does not eliminate this side-effect free =
computation, it seems almost a missed-optimization bug to me. But the =
Clang people have put a lot of work into finding ways to elide =
unnecessary malloc() calls, so perhaps that is the fruit of their =
labour.

> By the use of variable length arrays and the style this code does not =
appear to be C++. I assume it is C. It is unwise to confuse these two =
different languages.

Yep. But the file was supplied as a .cpp file and g++ was listed as =
used.
I had commented on the variable length arrays via reporting what the
compilers say when more checks are enabled. Not knowing if it might
be the start of something bigger that would be more C++ specific, I
left it at that for the language issue.

> What is the actual use case here? This kind of contrived micro =
benchmark never tells you very much about realworld performance.

Other than the language issue I mostly provided notes relative to =
various
assumptions made in the code and in the compile options and choice of
what tool chains to explore, points that were probably contrary to a
variety of potential purposes that involve timing things.

This does not mean that I disagree about the limited uses to which the
type of benchmark exploration apply. But I'm fine with folks exploring
things that they are unfamiliar with. I primarily helped with the
exploration aspect some.

> The Linux people have full time staff working on the Raspbian. They =
have access to proprietary hardware information we do not. I would =
expect they will always edge ahead on this platform.
>=20
> But you have too many variables in play to draw the conclusion freebsd =
is 6 times slower.

I never made such a claim in what I replied with. I gave specific
evidence of some specific issues that needed to be addressed to even
have a fairly well controlled testing activity (unless checking the
variations in optimizations of the specific code for just the g++
context was the goal).

I did get an off-list reply indicating that various adjustments had been
made that made the results more uniform across the contexts, so,  I
would presume, no more factor of 6. (It did not indicate specific =
figures
or show the updated code.) In some respects it is too bad that that note
was off list: no on-list updated conclusions presented by the =
originator.

=3D=3D=3D
Mark Millard
marklmi at yahoo.com
( dsl-only.net <http://dsl-only.net/>; went
away in early 2018-Mar)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5936166C-AC39-4801-A5A9-16583CAB4426>