Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. QWebView vs QWebEngineView Javascript performance.
QtWS25 Last Chance

QWebView vs QWebEngineView Javascript performance.

Scheduled Pinned Locked Moved Unsolved QtWebEngine
qwebviewqwebengineviewjavascript
2 Posts 1 Posters 1.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jersak
    wrote on 15 Oct 2017, 17:42 last edited by
    #1

    Hey there!
    A little background first:
    I provide a proxy service for gaming that aims to reduce latency (similar to WTFast and Lowerping if you ever heard about). Currently, my customers pay a monthly fee, but considering the boom in crypto-currencies, I was considering launching a new pilot where the customer, instead of paying a monthly fee, would donate a bit of CPU processing to mine some kind of virtual coin.

    Since I coded my client using Qt and it has an embedded QWebView, my first idea was to use https://coinhive.com, as it provides a nice JavaScript framework to farm the Monero crypto-currency using a web browser. However, the performance is awful when running inside the QWebView.

    As an example, if I open the page with the javascript on chrome I get around 60 hashes per second using around 20% of my CPU. When I open the same page inside the QWebView, I get 1~2 hashes per second using the same 20% of my CPU.

    I'm really new to coding overall and I was wondering if this is something that could be improved using QWebEngineView instead. Anyone has any idea? I'm asking before testing because I'm having some trouble getting MSVC to work and from what I've seen that is needed to use QWebEngine on windows (as I said, I'm a newbie...).

    I'd really appreciate any input. Thanks!

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jersak
      wrote on 20 Dec 2017, 03:18 last edited by
      #2

      Anyone has any idea?

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved