min icon indicating copy to clipboard operation
min copied to clipboard

Some Benchmarks

Open trans opened this issue 6 years ago • 2 comments

I'm curious as to the performance of min. Would be nice to see a few benchmarks, maybe for some of these.

trans avatar May 15 '18 12:05 trans

I knew this was coming... :) OK I will take a look and try to provide something similar.

h3rald avatar May 16 '18 02:05 h3rald

I started implementing the benchmarks available here mostly because they are simple to implement and to run.

Things like base64 seem to score OK... not as fast as C or nim, but faster than python for example.

Then I implemented the JSON benchmark and realised that probably I need to review the current implementation of dictionaries (currently there is no real datatype for dictionaries really, they are just lists of lists), because lookups are extremely inefficient.

I think I'll have to rethink something and perhaps introduce a native dictionary data type before running those benchmarks again.

Thank you for suggesting this BTW, it is a good way to improve the language!

h3rald avatar May 20 '18 11:05 h3rald