I'm not sure where/how to address this... so bear with me if this isn't 
JUST V8.

My latest toy is a RK3399 system ( 
http://en.t-firefly.com/product/rocrk3399pc ) 
I've manged to get the linux image to build, and install a more complete 
development environment, and got Node 13-pre (12.7.0) to build, and my own 
addon.
I was curious about the JS vs native performance, and I have both JS and C 
versions of many things in a few packages.  The JS performance is pretty 
good, can't fault much there, but then when I ran the same simple tests 
like "parse( '1234' )" to get a number result, the Node Addon (which works 
directly with the V8 library for 99% of the interfacing, just using a few 
convenience macros to build FunctionTemplates) 
I *think* that the conversion from string to String::Utf8Value is 
extra-ordinarily slow.  another test that either passes numbers, or passes 
nothing and gets back arraybuffers(with external storage) and/or Numbers is 
actually very fast.

I don't know how I can create a reproduction, and/or I don't know what to 
really investigate.... I do have, in the case of the parsin, some 
performance timers around converting from JS to C, doing the parsing, and 
building the values back in JS Engine from C that can narrow it down...

A test that usese the same parser in JS does 4M parsings in 6 seconds, and 
takes the (CMake Debug) build does 2M parsings in 35 seconds, and the CMake 
Release build 27 seconds.  The run times on windows x64 are approximately 
the same (as each other, at about 1 seconds for 4M/2M respectively... 
because getting utf8 values sucks (pardon the slang)).  Single threaded.

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-users/dc1c1cdd-80b4-4f23-ba87-a7ff49610339%40googlegroups.com.

Reply via email to