Different CPU usage comparing CefSimple and Chrome browser

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Different CPU usage comparing CefSimple and Chrome browser

Postby jericho » Tue Jul 15, 2014 5:09 pm

Greetings!

I have a simple client code with few bindings and regular data exchange every 10 msecs.

The problem is that I have a different CPU usage while executing the same application comparing CefSimple and Chrome browser (the first one uses ~1.8 times more resources).

I've checked all CefSettings of CEF, all js-flags of V8 and didn't find any solution of the problem.

Could you please advise me on the right direction?

Thank you!
jericho
Newbie
 
Posts: 9
Joined: Tue Jul 15, 2014 5:08 pm

Re: Different CPU usage comparing CefSimple and Chrome brows

Postby magreenblatt » Tue Jul 15, 2014 7:09 pm

What OS, what CEF version and what Chrome version? Are you using a release build of CEF? Can you share a URL or html/js content that reproduces the problem?
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Different CPU usage comparing CefSimple and Chrome brows

Postby jericho » Wed Jul 16, 2014 5:02 am

magreenblatt wrote:What OS, what CEF version and what Chrome version? Are you using a release build of CEF? Can you share a URL or html/js content that reproduces the problem?


And I use CEF 3.2078.1772. Sorry, forgot to mention this in previous message.
jericho
Newbie
 
Posts: 9
Joined: Tue Jul 15, 2014 5:08 pm

Re: Different CPU usage comparing CefSimple and Chrome brows

Postby jericho » Wed Jul 16, 2014 6:02 am

Looks like previous message wasn't sent. I mentioned that I have Win 8.1 x64 and CEF release build configuration.

The application file to test the mentioned problem you can find here: https://drive.google.com/file/d/0B0Q9Gp ... sp=sharing
jericho
Newbie
 
Posts: 9
Joined: Tue Jul 15, 2014 5:08 pm

Re: Different CPU usage comparing CefSimple and Chrome brows

Postby magreenblatt » Wed Jul 16, 2014 2:49 pm

What Google Chrome version are you comparing against? You should compare CEF and Chrome at the same version. You can also try using a release branch of CEF (1750 or 1916) instead of trunk.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Different CPU usage comparing CefSimple and Chrome brows

Postby jericho » Thu Jul 17, 2014 1:36 pm

magreenblatt wrote:What Google Chrome version are you comparing against? You should compare CEF and Chrome at the same version. You can also try using a release branch of CEF (1750 or 1916) instead of trunk.


I have Chrome with ver. 36.0.1985.125 m;

Comparing Chrome and CEF, I have ~14% and 6% of CPU usage.
jericho
Newbie
 
Posts: 9
Joined: Tue Jul 15, 2014 5:08 pm

Re: Different CPU usage comparing CefSimple and Chrome brows

Postby magreenblatt » Fri Jul 18, 2014 10:42 am

Try disabling whatever customizations you've made to CefSimple so that the comparison between CEF and Chrome is as close as possible. Also, try running with a release build of the CEF 1750 or 1916 branch instead of trunk.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 49 guests