Signal vs. primitive comparison

Benchmark created on


Preparation HTML

    <script src="https://unpkg.com/@angular/core@16.0.0/bundles/core.umd.js"></script>

Setup

const signal1 = ng.core.signal(1);
const signal2 = ng.core.signal(2);

Test runner

Ready to run.

Testing in
TestOps/sec
Comparing signals
signal1() === signal2()
ready
Comparing primitives
1 === 2
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.