MCPcopy Index your code
hub / github.com/artalar/reactive-computed-bench

github.com/artalar/reactive-computed-bench @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
44 symbols 111 edges 5 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

This benchmark measured computation of complex computed reactive unit when it deep children change.

The rules:

  • A user space computations should be dumb as possible, to prevent it impact to the measurement. Also, it should return a new value each time to force all dependencies recomputation. For these purposes we use integer summarization, as it light, pure and plain for JIT.
  • Each update for each library should not go one after the other to prevent unexpected JIT overoptimizations. It is not how real applications work. In the iteration loop we apply the update (iteration counter) only once to each library. To prevent performance influence between two nearby tests we shuffle the list of tests before each iteration.
  • To prevent GC influence there is a minimum timeout after each iteration. It is not very honest, but there is no clear way to measure the library overhead and it GC usage.

The charts shows median value. If you will start the bench by yourself you could see average, minimum and maximum (5%) values in your console.

The results above is a median value in percent from a fastest library for each iteration loop.

Notes about Reatom performance 🤗

Run it localy to see detailed numbers (node 18 required).

Results

AMD_EPYC_7B13

all results

Apple_M1

all results

Core symbols most depended-on inside this repo

d
called by 15
computers_bench.ts
formatLog
called by 15
utils.ts
a
called by 11
computers_bench.ts
e
called by 10
computers_bench.ts
printLogs
called by 6
utils.ts
b
called by 5
computers_bench.ts
c
called by 5
computers_bench.ts
f
called by 5
computers_bench.ts

Shape

Function 44

Languages

TypeScript100%

Modules by API surface

computers_bench.ts29 symbols
utils.ts6 symbols
chart_gen.ts6 symbols
dynamic_deps_bench.ts3 symbols

For agents

$ claude mcp add reactive-computed-bench \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact