shadow-cljs

https://github.com/thheller/shadow-cljs | https://github.com/sponsors/thheller | https://www.patreon.com/thheller
grounded_sage 2021-03-22T12:04:39.155400Z

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

thheller 2021-03-22T15:16:39.155700Z

no

👍 1
grounded_sage 2021-03-22T15:25:02.156100Z

Time for an adventure then I guess haha

thheller 2021-03-22T15:35:58.156300Z

yeah too many factors to make a generic setup

thheller 2021-03-22T15:36:43.156500Z

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

thheller 2021-03-22T15:37:07.156900Z

but thats a rather specific benchmark

thheller 2021-03-22T15:38:19.157100Z

some older benchmarks I used the npm benchmark package https://github.com/thheller/shadow-experiments/blob/master/src/test/shadow/experiments/grove/bench_db.cljs

thheller 2021-03-22T15:38:33.157500Z

works ok but not great

2021-03-22T15:59:53.157900Z

Is there any equivalent for deps.edn https://github.com/shadow-cljs/lein-template ?

thheller 2021-03-22T16:03:16.158200Z

don't know

2021-03-22T16:03:58.158800Z

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.

thheller 2021-03-22T16:04:37.159100Z

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

thheller 2021-03-22T16:05:41.160300Z

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

grounded_sage 2021-03-22T17:55:21.160500Z

Yea there is a cascade of dependencies and system requirement 😅

grounded_sage 2021-03-22T19:25:20.160800Z

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

thheller 2021-03-22T19:26:31.161Z

I don't understand the question

thheller 2021-03-22T19:26:40.161200Z

testing what?

grounded_sage 2021-03-22T19:28:15.161400Z

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.

thheller 2021-03-22T19:32:49.161700Z

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?

thheller 2021-03-22T19:33:28.161900Z

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

grounded_sage 2021-03-22T19:44:13.162100Z

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_sage 2021-03-22T19:46:18.162300Z

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

grounded_sage 2021-03-22T19:46:45.162500Z

Or even Cljs