Reviewers: , Message: ------------------------------------------------------------ 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 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. Please review this at http://codereview.chromium.org/9689065/ Affected files: A benchmarks/write-utf8-benchmark.cc A benchmarks/write-utf8-benchmark.gyp M include/v8.h M src/api.cc -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
