Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Issue 10790041: Add IDB perf tests for random read, with and without an index. (Closed)

Created:
8 years, 5 months ago by ericu
Modified:
8 years, 4 months ago
Reviewers:
alecflett, dgrogan, jsbell
CC:
chromium-reviews
Visibility:
Public.

Description

Add IDB perf tests for random read, with and without an index. BUG=137764 TEST=self Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=148630

Patch Set 1 #

Patch Set 2 : Fix argument order to put(). #

Patch Set 3 : Fix index creation and db deletion [but comment out deletion]. #

Total comments: 21

Patch Set 4 : Rolled in code review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -41 lines) Patch
M chrome/test/data/indexeddb/perf_shared.js View 1 2 3 2 chunks +45 lines, -22 lines 0 comments Download
M chrome/test/data/indexeddb/perf_test.js View 1 2 3 1 chunk +101 lines, -19 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
ericu
8 years, 5 months ago (2012-07-17 23:50:47 UTC) #1
ericu
Updated with some fixes for bugs I found in later work. I've commented out db ...
8 years, 5 months ago (2012-07-25 20:58:41 UTC) #2
jsbell
On 2012/07/25 20:58:41, ericu wrote: > I've commented out db deletion, as it turns out ...
8 years, 5 months ago (2012-07-25 21:39:11 UTC) #3
jsbell
lgtm with nits and commentary http://codereview.chromium.org/10790041/diff/5001/chrome/test/data/indexeddb/perf_shared.js File chrome/test/data/indexeddb/perf_shared.js (right): http://codereview.chromium.org/10790041/diff/5001/chrome/test/data/indexeddb/perf_shared.js#newcode53 chrome/test/data/indexeddb/perf_shared.js:53: var db; db is ...
8 years, 5 months ago (2012-07-26 18:23:30 UTC) #4
ericu
https://chromiumcodereview.appspot.com/10790041/diff/5001/chrome/test/data/indexeddb/perf_shared.js File chrome/test/data/indexeddb/perf_shared.js (right): https://chromiumcodereview.appspot.com/10790041/diff/5001/chrome/test/data/indexeddb/perf_shared.js#newcode53 chrome/test/data/indexeddb/perf_shared.js:53: var db; On 2012/07/26 18:23:30, jsbell wrote: > db ...
8 years, 5 months ago (2012-07-26 20:24:11 UTC) #5
jsbell
On 2012/07/26 20:24:11, ericu wrote: > > How about if I call it "getCompletionFunc" instead? ...
8 years, 5 months ago (2012-07-26 20:31:54 UTC) #6
dgrogan
https://chromiumcodereview.appspot.com/10790041/diff/5001/chrome/test/data/indexeddb/perf_test.js File chrome/test/data/indexeddb/perf_test.js (right): https://chromiumcodereview.appspot.com/10790041/diff/5001/chrome/test/data/indexeddb/perf_test.js#newcode117 chrome/test/data/indexeddb/perf_test.js:117: createDatabase(testName, objectStoreNames, onCreated, onError, options); On 2012/07/26 20:24:11, ericu ...
8 years, 5 months ago (2012-07-26 20:35:57 UTC) #7
alecflett
8 years, 4 months ago (2012-08-01 16:58:33 UTC) #8
On 2012/07/26 20:35:57, dgrogan wrote:
>
https://chromiumcodereview.appspot.com/10790041/diff/5001/chrome/test/data/in...
> File chrome/test/data/indexeddb/perf_test.js (right):
> 
>
https://chromiumcodereview.appspot.com/10790041/diff/5001/chrome/test/data/in...
> chrome/test/data/indexeddb/perf_test.js:117: createDatabase(testName,
> objectStoreNames, onCreated, onError, options);
> On 2012/07/26 20:24:11, ericu wrote:
> > On 2012/07/26 18:23:30, jsbell wrote:
> > > Might be just a personal thing, but I find tests more readable if the code
> > order
> > > follows the execution order, taking advantage of variable and function
> > hoisting
> > I lean the opposite way, and always want everything defined before I use it
> > [where recursion doesn't render that impossible].  Anybody else have a
> > tie-breaking preference?
> 
> I like code order = execution order, possibly just because the IDB layout
tests
> are written that way and I'm used to reading them.
> 
> Alec, wdyt?  I'm hoping for a 2v2 split...

Sorry I got buried in unread e-mail - just seeing this now, and I lean towards
code order = execution order as well. I've found a lot of the tests that kind of
run in "reverse" order confusing...

Powered by Google App Engine
This is Rietveld 408576698