proposal-signals icon indicating copy to clipboard operation
proposal-signals copied to clipboard

Benchmarks for signal implementations

Open littledan opened this issue 1 year ago • 3 comments

A few signal benchmarks exist already. It would be great to adapt them to this signal implementation, as well as to consider creating new specialized benchmarks for this API. Such benchmarks would help with implementations of polyfills as well as native engines. It would be ideal if attention could be paid to making benchmarks be realistic representations of application needs.

littledan avatar Mar 30 '24 01:03 littledan

I found js-reactivity-benchmark to be pretty good, it would be worth submitting an implementation with the polyfill there (and updating the results chart)

fabiospampinato avatar Mar 31 '24 18:03 fabiospampinato

@WebReflection has also developed a signals benchmark as a part of their usignal implementation: https://github.com/WebReflection/usignal/blob/main/test/benchmark.js

joshgillies avatar Apr 07 '24 07:04 joshgillies

FYI I am planning to port this library to @webreflection/signal as major update and then that will be benchmarked automatically in there too ... somebody mentioned that the S benchmark is not ideal but had zero time to update that so far ... soon though ... :tm:

WebReflection avatar Apr 08 '24 08:04 WebReflection