albertodemichelis / squirrel

Official repository for the programming language Squirrel
http://www.squirrel-lang.org
MIT License
913 stars 156 forks source link

Squirrel benchmarks? #234

Open rversteegen opened 3 years ago

rversteegen commented 3 years ago

I have a number of optimisations and bug fixes, and now I want some benchmarks to test the effect on language speed. I'm surprised that I could only find trivial Squirrel benchmarks like Fibonacci.

While it's easy to port Lua or JS to Squirrel, before I spent time on it I'd like to know if anyone already has any. Especially benchmarks that use Squirrel features like classes, closures, metamethods, the builtin methods on datatypes, its standard library, or the C API. It's nice if there's also versions of the benchmark in other languages

Once I have a collection of benchmarks I suggest adding them to the code repo as examples and to use for development; there are already a few trivial ones in scripts/samples/.

albertodemichelis commented 3 years ago

There are no benchmarks other then the ones in the samples folder.

rversteegen commented 3 years ago

OK, thanks. I discovered https://github.com/kiwipower/squirrel-benchmark which has a large number of micro-benchmarks, and am porting and collecting some larger ones. On second thoughts it might be best to keep the benchmarks in a separate repo, as it's not so trivial: I want scripts for running them, excluding outliers, reporting results relative to a previous version, and comparing build configurations.

AntonYudintsev commented 3 years ago

some squirrel (and other languages) benchmarks https://github.com/GaijinEntertainment/daScript/tree/master/examples/profile/tests/squirrel