Comments (5)
如题
from wasm-examples.
现在 js 引擎的优化已经很厉害了,尤其是对 for 循环。 wasm 在浏览器里复用的是一部分 js 引擎的实现,性能还不行,跑在独立的 runtime 里会好一些。
from wasm-examples.
from wasm-examples.
可以自己实验一下。 wasm 不是很适合做渲染,做高性能运算还可以,主要是目前 js 和 wasm 之间的传值效率不够高,如果频繁互相调用的话,挺影响性能的。
另外 wasm 是跑在 CPU 里的,大部分和 js 一样用在主线程里,浏览器主线程已经够忙的了, WebGL 可以写 shader 跑在 GPU 里,用它做渲染性能更好一些。
from wasm-examples.
from wasm-examples.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wasm-examples.