3 ms·
> What are these suites testing? One is testing all permutations of actions on some observability thingy: does everyone get the updates they requested in the c
by tgv 4y ago
> What are these suites testing?
One is testing all permutations of actions on some observability thingy: does everyone get the updates they requested in the correct order, basically, but suppose you have 3 "clients" that can connect and disconnect at arbitrary moments, and we're testing a single insert-like operation on the initial empty data, there are already dozens of combinations.
Another one is some operation on two arbitrary JSON objects and an inverse, and I wanted to make sure that it works for things that look like normal looking objects, small and large, and for "random" objects. Fuzzing with hierarchical data. This code is in JS because it has to run in the browser, so it is not super fast.
- fzeindl 4y agoInteresting, thank you. > This code is in JS because it has to run in the browser, so it is not super fast. Try profiling heap allocations in Chrome Debugger. In my experience especially array-allocation can slow down JS-code a lot.