nosco / hx

A simple, easy to use library for React development in ClojureScript.
MIT License
249 stars 16 forks source link

Make it fast #48

Closed lilactown closed 5 years ago

lilactown commented 5 years ago

Thomas Heller setup a super simple benchmark that compares hx and some other wrapper libs. hx is significantly behind the pack:

react x 89,450 ops/sec ±3.99% (84 runs sampled)
reagent x 49,954 ops/sec ±2.25% (89 runs sampled)
hx x 8,489 ops/sec ±5.66% (79 runs sampled)

This is with a few simple perf tweaks (memoizing props processing), I can get it to about 13-6,000 ops/sec. This is still really bad.

My goal would to see hx at least as fast as reagent.