Comment #10 on issue 1662 by [email protected]: Excessive overhead of String.replace(/a/g,'b')
http://code.google.com/p/v8/issues/detail?id=1662

$ ./d8 test-d8.js
started: String.replace performance test
1mln char array composed in 35ms
array joined in 3ms
1mln symbol string: all symbols replaced in 87ms
too smart optimizations excluded 1000000 1000000 1000000


$ svn up
At revision 9182.

Built with:
scons --clean
scons profilingsupport=on prof=on arch=x64 d8 -j8


Profiling:
$ ./d8 --prof test-d8-100.js
(v8.log is attached)


 [C++]:
   ticks  total  nonlib   name
2635 28.1% 28.1% v8::internal::RegExpImpl::AtomExec(v8::internal::Handle<v8::internal::JSRegExp>, v8::internal::Handle<v8::internal::String>, int, v8::internal::Handle<v8::internal::JSArray>) 1506 16.1% 16.1% v8::internal::CompiledReplacement::Apply(v8::internal::ReplacementStringBuilder*, int, int, v8::internal::Handle<v8::internal::JSArray>)
    871    9.3%    9.3%  v8::internal::String::GetFlatContent()


Attachments:
        v8.log.gz  46.0 KB

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to