Title: Confused about performance · Issue #28 · AssemblyScript/examples · GitHub
Open Graph Title: Confused about performance · Issue #28 · AssemblyScript/examples
X Title: Confused about performance · Issue #28 · AssemblyScript/examples
Description: Hi there. I'm new to WebAssembly and AssemblyScript ... I was looking to speed up JavaScript code and started to play around with it. So I had a question: I was playing with the Mandelbrot demo. What I did is, I ported the code from the ...
Open Graph Description: Hi there. I'm new to WebAssembly and AssemblyScript ... I was looking to speed up JavaScript code and started to play around with it. So I had a question: I was playing with the Mandelbrot demo. Wh...
X Description: Hi there. I'm new to WebAssembly and AssemblyScript ... I was looking to speed up JavaScript code and started to play around with it. So I had a question: I was playing with the Mandelbrot demo...
Opengraph URL: https://github.com/AssemblyScript/examples/issues/28
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Confused about performance","articleBody":"Hi there.\r\nI'm new to WebAssembly and AssemblyScript ... I was looking to speed up JavaScript code and started to play around with it. \r\n\r\nSo I had a question:\r\nI was playing with the Mandelbrot demo.\r\nWhat I did is, I ported the code from the ts file, directly to the js file ... so I can calculate the mandelbot set either by the code in the compiled webassembly - or directly within the javascript code. I expected the webassmbly calculation to be (significantly?) quicker.\r\n\r\nBut actually these are my results:\r\n\r\nUsing Chrome: JavaScript Code ~ 530ms ... WebAssembly ~ 1000ms\r\nUsing Firefox: JavaScript Code ~ 580ms ... WebAssembly ~ 570ms\r\n(\"limit\" set to do 800 iterations. My PC is running windows, AMD Ryzen 9 3900X)\r\n\r\nSo it seems that in Chrome the WebAssembly version is half as fast as the normal JavaScript version ... in Firefox both version are at least equal in performance.\r\n\r\nIs this expected? Or am I missing something?\r\n","author":{"url":"https://github.com/GitHobi","@type":"Person","name":"GitHobi"},"datePublished":"2022-12-02T17:45:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/28/examples/issues/28"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:134c50d7-c198-d41d-bd64-ad7d0751c958 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AF10:144812:14F5E88:1D98A88:696F6233 |
| html-safe-nonce | 6cf936ffdb306eb405bcc90025742348a7843778ebe695da3bd91bc46ea0e2aa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjEwOjE0NDgxMjoxNEY1RTg4OjFEOThBODg6Njk2RjYyMzMiLCJ2aXNpdG9yX2lkIjoiMTY5OTE2MjQ4MDk3Nzc2MTc5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4551fffafb13d1a784b87194edc44a9b3d4b8dea458140390a704afafc93e1e2 |
| hovercard-subject-tag | issue:1473219679 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/AssemblyScript/examples/28/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b9097bcaf301c42b157db16560e4728d5b7e5881b6ee2733c58d933d6998675d/AssemblyScript/examples/issues/28 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b9097bcaf301c42b157db16560e4728d5b7e5881b6ee2733c58d933d6998675d/AssemblyScript/examples/issues/28 |
| og:image:alt | Hi there. I'm new to WebAssembly and AssemblyScript ... I was looking to speed up JavaScript code and started to play around with it. So I had a question: I was playing with the Mandelbrot demo. Wh... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | GitHobi |
| hostname | github.com |
| expected-hostname | github.com |
| None | 774d0922d2c4577043d2dab90427344eb4c6ce1d5579acb1dd504cff1a7e46f8 |
| turbo-cache-control | no-preview |
| go-import | github.com/AssemblyScript/examples git https://github.com/AssemblyScript/examples.git |
| octolytics-dimension-user_id | 28916798 |
| octolytics-dimension-user_login | AssemblyScript |
| octolytics-dimension-repository_id | 260460689 |
| octolytics-dimension-repository_nwo | AssemblyScript/examples |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 260460689 |
| octolytics-dimension-repository_network_root_nwo | AssemblyScript/examples |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 650acea592f12d1bd8931d44546c209e0b06ed6e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width