Fork me on GitHub
#shadow-cljs
<
2021-03-22
>
grounded_sage12:03:39

Does shadow offer any conveniences for benchmarking and possibly across JS VM’s by any chance?

grounded_sage15:03:02

Time for an adventure then I guess haha

thheller15:03:58

yeah too many factors to make a generic setup

thheller15:03:43

I did some benchmarks recently using the js-framework-benchmark https://github.com/thheller/js-framework-shadow-grove

thheller15:03:07

but thats a rather specific benchmark

thheller15:03:33

works ok but not great

grounded_sage17:03:21

Yea there is a cascade of dependencies and system requirement 😅

grounded_sage19:03:20

Do you know if this is the right way to go for testing libraries @U05224H0W? Or am I going down the wrong path here? https://clojurescript.org/community/running-tests

thheller19:03:31

I don't understand the question

thheller19:03:40

testing what?

grounded_sage19:03:15

I’m trying to figure out the best way to benchmark Datahike across different JS VM’s. I also guess this would not work with IndexedDB and only work for in-memory so I would need to actually have the headless browsers. So perhaps I am going down the wrong path.

thheller19:03:49

what are different JS VMs for you? you mean just different browsers or actually different lower level JS VMs without being hooked up to a browser, so jsc directly instead of safari?

thheller19:03:28

I mean if you intend this to run in the browser then I'd be testing the browsers?

grounded_sage19:03:13

We do intend to offer node support etc. Despite the value prop in our opinion not being that high compared to using it on JVM. So I was investigating the most general testing and then going to work to more specific. From my basic tests at the REPL the in-memory is pretty similar to IndexedDB so I was thinking that this would give us the best view into our performance. We could then more accurately identify where the performance problems are.

grounded_sage19:03:18

Arguably some people might want to do some IOT stuff using Datahike from JS.

pinkfrog16:03:58

Currently I manually touch a shadow-cljs.edn and add stuff according to the user manual. Dunno if it is the normal flow to go.

thheller16:03:37

I use the create-cljs-project described here https://github.com/thheller/shadow-cljs#quick-start

thheller16:03:41

but that just sets up the minimum folder structure and config file, not a complete template if you are looking for that