localStorage: 1 Long Key vs Multiple Short Keys

JavaScript performance comparison

Test case created by Pamela Fox

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in CCBot 2.0.0 / Other 0.0.0
Test Ops/sec
1 Long Key
localStorage.setItem('a', 'aaHoodie dolore sunt helvetica, elit cred ethnic. Leggings pop-up banh mi, yr gastropub aliquip biodiesel commodo shoreditch brooklyn ullamco. Enim tempor ex gastropub brunch, elit raw denim occaecat keytar sint keffiyeh. Fap quis kogi synth nulla thundercats. Wolf gastropub anim, american apparel bespoke labore accusamus synth mollit. Chillwave semiotics skateboard, bushwick direct trade helvetica nostrud photo booth pariatur retro post-ironic typewriter. Brunch sint leggings retro cred cray photo booth tofu. Selvage Austin post-ironic next level officia, eiusmod williamsburg pop-up nulla high life sustainable. Locavore fanny pack forage mollit, ex synth PBR shoreditch readymade magna irony. Do velit lomo, echo park food truck godard veniam squid mlkshk quis nihil. Elit art party pop-up, lomo sint scenester flexitarian cupidatat authentic dolor skateboard mlkshk PBR blog four loko. Typewriter lomo mollit irony. Brunch cliche food truck helvetica tofu. Authentic chambray mustache, twee typewriter freegan terry richardson wes anderson shoreditch forage. Artisan hella twee selvage banh mi, reprehenderit retro veniam vice sed pitchfork. Selvage fixie enim, pork belly mustache officia salvia ennui typewriter banksy kale chips. Before they sold out brunch occaecat trust fund DIY commodo vice. Typewriter ut quinoa, et marfa est commodo id. Organic locavore 3 wolf moon, retro messenger bag elit sartorial enim nulla hella. Cardigan anim fap culpa, narwhal art party bicycle rights aliqua godard. PBR sustainable sunt you probably haven\'t heard of them, odio umami odd future. Vinyl et craft beer flexitarian, non dolore odio wes anderson. Cosby sweater echo park vinyl, irure portland nihil aliquip. Sriracha next level retro wayfarers, jean shorts sint seitan selvage. Mumblecore fugiat do nihil enim marfa ullamco, ex godard. Ethnic enim portland, eu PBR umami pinterest ad truffaut four loko sriracha trust fund semiotics brooklyn wayfarers. Minim cosby sweater messenger bag, forage non scenester before they sold out truffaut skateboard beard selvage mixtape farm-to-table nostrud biodiesel. Semiotics brooklyn ethical, yr enim sustainable swag nostrud mixtape.');
pending…
Multiple Short Keys
localStorage.setItem('b', 'Hoodie dolore sunt helvetica, elit cred ethnic. Leggings pop-up banh mi, yr gastropub aliquip biodiesel commodo shoreditch brooklyn ullamco. Enim tempor ex gastropub brunch, elit raw denim occaecat keytar sint keffiyeh. Fap quis kogi synth nulla thundercats. Wolf gastropub anim, american apparel bespoke labore accusamus synth mollit. Chillwave semiotics skateboard, bushwick direct trade helvetica nostrud photo booth pariatur retro post-ironic typewriter. Brunch sint leggings retro cred cray photo booth tofu.');
localStorage.setItem('c', 'Selvage Austin post-ironic next level officia, eiusmod williamsburg pop-up nulla high life sustainable. Locavore fanny pack forage mollit, ex synth PBR shoreditch readymade magna irony. Do velit lomo, echo park food truck godard veniam squid mlkshk quis nihil. Elit art party pop-up, lomo sint scenester flexitarian cupidatat authentic dolor skateboard mlkshk PBR blog four loko. Typewriter lomo mollit irony. Brunch cliche food truck helvetica tofu. Authentic chambray mustache, twee typewriter freegan terry richardson wes anderson shoreditch forage.');
localStorage.setItem('d', 'Artisan hella twee selvage banh mi, reprehenderit retro veniam vice sed pitchfork. Selvage fixie enim, pork belly mustache officia salvia ennui typewriter banksy kale chips. Before they sold out brunch occaecat trust fund DIY commodo vice. Typewriter ut quinoa, et marfa est commodo id. Organic locavore 3 wolf moon, retro messenger bag elit sartorial enim nulla hella. Cardigan anim fap culpa, narwhal art party bicycle rights aliqua godard. PBR sustainable sunt you probably haven\'t heard of them, odio umami odd future.');
localStorage.setItem('e', 'Vinyl et craft beer flexitarian, non dolore odio wes anderson. Cosby sweater echo park vinyl, irure portland nihil aliquip. Sriracha next level retro wayfarers, jean shorts sint seitan selvage. Mumblecore fugiat do nihil enim marfa ullamco, ex godard. Ethnic enim portland, eu PBR umami pinterest ad truffaut four loko sriracha trust fund semiotics brooklyn wayfarers. Minim cosby sweater messenger bag, forage non scenester before they sold out truffaut skateboard beard selvage mixtape farm-to-table nostrud biodiesel. Semiotics brooklyn ethical, yr enim sustainable swag nostrud mixtape.');
pending…

Compare results of other browsers

Revisions

You can edit these tests or add even more tests to this page by appending /edit to the URL.

0 Comments