-
Notifications
You must be signed in to change notification settings - Fork 333
Add asynchronous support to setup and teardown. #70
Comments
Actually as a weekend project, I will start implementing this in a fork ... |
@octatone: If you implemented this in a fork, that's awesome, and we'd be very interested at @pouchdb. We need something that can do async tests of indexedDB/websql and guarantee statistically significant results. As for indexedDB's |
@octatone If you get it working I'd accept a PR for sure on it. |
@jdalton I've forked, and started wrapping my head around the current deferred constructor for async benchmarks. We'll see see how far I get over the weekend.. |
Guess you never got very far over the weekend...? 😢 |
👍 |
+1 |
1 similar comment
+1 |
Moved to #174. |
Hello,
I was trying benchmark performance between indexedDB#add and indexedDB#put with the same data sets, but according to this closed issue it is not possible to properly setup with asynchronous function calls in benchmark.js.
IndexedDB is asynchronous only. Opening, creating, CRUD, etc. are all done async in the browser.
Ideally my benchmark would look something like this pseudocode:
I propose adding support for asynchronous for setup and teardown as more and more modern browser apis are async only.
The text was updated successfully, but these errors were encountered: