h3rald / min

A small but practical concatenative programming language and shell
https://min-lang.org
MIT License
310 stars 23 forks source link

Some Benchmarks #31

Open trans opened 6 years ago

trans commented 6 years ago

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

h3rald commented 6 years ago

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

h3rald commented 6 years ago

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!