Humble benchmark (fisher's exact test)
Ali Çehreli
acehreli at yahoo.com
Sat Aug 14 02:44:31 UTC 2021
On 8/13/21 7:19 PM, Ki Rill wrote:
> It's a simple benchmark examining:
> * execution time (sec)
> * memory consumption (kb)
> * binary size (kb)
> * conciseness of a programming language (lines of code)
>
> [Link](https://github.com/rillki/humble-benchmarks/tree/main/fishers-exact-test)
>
The most obvious improvement I can see is removing the dynamic array
creations in a loop. Since that array seems to be very short, using a
static array would improve performance. (Ok, now I see that you already
do that for the betterC and nogc versios.)
Also, I wonder how disabling GC collections would affect execution time
and memory consumption:
https://dlang.org/spec/garbage.html#gc_config
Ali
More information about the Digitalmars-d
mailing list