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

Issue 9689065: Benchmarkify pointer swapping string encoder

Created:
8 years, 9 months ago by piscisaureus
Modified:
8 years, 9 months ago
Reviewers:
CC:
v8-dev
Visibility:
Public.

Description

Benchmarkify pointer swapping string encoder Also, make the write-utf8 benchmark run on windows. api.cc is somewhat messy now because I landed a lot of stuff in there.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+727 lines, -60 lines) Patch
A benchmarks/write-utf8-benchmark.cc View 1 chunk +250 lines, -0 lines 0 comments Download
A benchmarks/write-utf8-benchmark.gyp View 1 chunk +45 lines, -0 lines 0 comments Download
M include/v8.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/api.cc View 4 chunks +430 lines, -60 lines 0 comments Download

Messages

Total messages: 1 (0 generated)
piscisaureus
8 years, 9 months ago (2012-03-13 17:19:15 UTC) #1
------------------------------------------------------------
Bert's method:

Short Ascii (plenty): 36ms
Short Unicode (plenty): 47ms
Prepend Unicode (plenty): 26ms
Unbalanced left (plenty): 17ms
Unbalanced right (plenty): 11ms
Unbalanced Unicode left (plenty): 12ms
Unbalanced Unicode right (plenty): 12ms
Unbalanced long left (plenty): 14ms
Unbalanced long right (plenty): 13ms
Unbalanced Unicode long left (plenty): 65ms
Unbalanced Unicode long right (plenty): 67ms
Prepend Unbalanced long left (plenty): 16ms
Prepend Unbalanced long right (plenty): 17ms
Unbalanced Unicode long left hint-many (plenty): 65ms
Unbalanced Unicode long right hint-many (plenty): 67ms
Short Ascii (just enough): 15ms
Short Unicode (just enough): 58ms
Prepend Unicode (just enough): 19ms
Unbalanced left (just enough): 11ms
Unbalanced right (just enough): 10ms
Unbalanced Unicode left (just enough): 13ms
Unbalanced Unicode right (just enough): 17ms
Unbalanced long left (just enough): 14ms
Unbalanced long right (just enough): 13ms
Unbalanced Unicode long left (just enough): 163ms
Unbalanced Unicode long right (just enough): 166ms
Prepend Unbalanced long left (just enough): 16ms
Prepend Unbalanced long right (just enough): 17ms
Unbalanced Unicode long left hint-many (just enough): 163ms
Unbalanced Unicode long right hint-many (just enough): 165ms

------------------------------------------------------------
Erik's method:

Short Ascii (plenty): 15ms
Short Unicode (plenty): 44ms
Prepend Unicode (plenty): 16ms
Unbalanced left (plenty): 11ms
Unbalanced right (plenty): 10ms
Unbalanced Unicode left (plenty): 12ms
Unbalanced Unicode right (plenty): 11ms
Unbalanced long left (plenty): 14ms
Unbalanced long right (plenty): 13ms
Unbalanced Unicode long left (plenty): 133ms
Unbalanced Unicode long right (plenty): 141ms
Prepend Unbalanced long left (plenty): 14ms
Prepend Unbalanced long right (plenty): 13ms
Unbalanced Unicode long left hint-many (plenty): 141ms
Unbalanced Unicode long right hint-many (plenty): 155ms
Short Ascii (just enough): 16ms
Short Unicode (just enough): 106ms
Prepend Unicode (just enough): 23ms
Unbalanced left (just enough): 11ms
Unbalanced right (just enough): 11ms
Unbalanced Unicode left (just enough): 14ms
Unbalanced Unicode right (just enough): 23ms
Unbalanced long left (just enough): 15ms
Unbalanced long right (just enough): 14ms
Unbalanced Unicode long left (just enough): 317ms
Unbalanced Unicode long right (just enough): 329ms
Prepend Unbalanced long left (just enough): 14ms
Prepend Unbalanced long right (just enough): 13ms
Unbalanced Unicode long left hint-many (just enough): 319ms
Unbalanced Unicode long right hint-many (just enough): 323ms

Powered by Google App Engine
This is Rietveld 408576698