[Gambas-user] updated benchmark
Brian G
brian at westwoodsvcs.com
Wed Sep 28 06:01:48 CEST 2022
Why use C when gambas will do just fine.
Unsafe is only a concept, well written code is safe.
--
Thanks
Brian G Tuesday, 27 September 2022, 03:51PM -07:00 from Jussi Lahtinen jussi.lahtinen at gmail.com :
>Probably no particular reason, other than it is generally wise to avoid "unsafe".
>In my opinion, if you want to get closer to the "C territory" because of speed, then you could as well use C.
>
>Jussi
>
>On Wed, Sep 28, 2022 at 1:12 AM Brian G < brian at westwoodsvcs.com> wrote:
>>By adding fast unsafe to the start of primes.gbs the speed is orders of magnitude faster.
>>
>>
>>Is there a reason not to do this for the benchmarks?
>>
>>1.5 seconds gbs
>>5.7 seconds without fast unsafe gbs
>>16.217seconds for py
>>
>>
>>
>>"Failure is the key to success;
>> each mistake teaches us something" .. Morihei Ueshiba
>>Brian G
>>----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
>----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220928/a9586beb/attachment.htm>
More information about the User
mailing list