proposal-signals
proposal-signals copied to clipboard
Benchmarks for signal implementations
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.
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)
@WebReflection has also developed a signals benchmark as a part of their usignal implementation: https://github.com/WebReflection/usignal/blob/main/test/benchmark.js
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: