Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for WebAssembly
  4. WebAssembly & JavaScript Comparison Fail

WebAssembly & JavaScript Comparison Fail

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
webassemblyjavascriptperformancecomparison
1 Posts 1 Posters 329 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.
  • R Offline
    R Offline
    roberto__belam
    wrote on 3 Dec 2021, 11:09 last edited by
    #1

    hello everyone,

    for a student research project i want to do a performance comparison between javascript and wasm. i built a prime number finder in c++(wasm) and javascript to run them against each other. unfortunately, running the function in c++ took much longer than in js. i can't explain why 🙂

    this would be the link to the source code: GitHub
    took this tutorial for compiling c++ to wasm: Compiling a New C/C++ Module to WebAssembly

    can someone tell me what i did wrong or what i didn't think of?
    or can someone tell me which functions are more suitable for comparison?
    I am grateful for any input!

    lg roberto

    1 Reply Last reply
    0

    1/1

    3 Dec 2021, 11:09

    • Login

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