You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While creating unit tests for AceBase, I had to compare whether stored binary data equals the generated data, which is 5MB large. The expect comparison method is very slow, takes about 5 seconds:
// Generate dataletdata=newUint8Array(5*1000*1000);for(leti=0;i<data.length;i++){data[i]=i%255;}// .. Store in the database & retrieve it again into variable 'stored'expect(stored).toEqual(data);// <-- SLOW
If I compare the data myself with a loop, this is way faster (takes few ms):
While creating unit tests for AceBase, I had to compare whether stored binary data equals the generated data, which is 5MB large. The
expect
comparison method is very slow, takes about 5 seconds:If I compare the data myself with a loop, this is way faster (takes few ms):
The text was updated successfully, but these errors were encountered: