squirrel icon indicating copy to clipboard operation
squirrel copied to clipboard

Squirrel benchmarks?

Open rversteegen opened this issue 4 years ago • 3 comments

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/.

rversteegen avatar Feb 15 '21 03:02 rversteegen

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

albertodemichelis avatar Feb 19 '21 06:02 albertodemichelis

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.

rversteegen avatar Feb 20 '21 15:02 rversteegen

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

AntonYudintsev avatar Mar 06 '21 03:03 AntonYudintsev