Comments (4)
Unfortunately, "jsperf is temporarily unavailable" is what we've been getting for a while, and I haven't been able to see the code that you created. Can you write what you had in mind in this issue?
I had been reluctant to depend on typed arrays (for old browser compatibility) but perhaps it's time to start using them if there is a significant speed benefit. I'd be open to patches with benchmarks.
from seedrandom.
It wasn't my jsperf but it showed a comparison of the same algorithm implemented in both asm.js and plain JavaScript. The asm.js version performed better.
It looks like using typed arrays would only exclude IE8 and IE9 unless a Uint8ClampedArray
is used then IE10 would be excluded as well.
http://caniuse.com/#feat=typedarrays
So it's a matter of how important is IE8-9 support to you. If someone needs support for those browser, they could always load a polyfill beforehand.
Typed arrays aside, the use of asm.js would be ignored by browsers that don't support it. That is, the code would just execute like regular JavaScript.
Personally I've never used asm.js in my own development, but it seems like crypto is a decent use case for it.
from seedrandom.
JSPerf seems to work (again), and if I read the results correctly, asm.js outperforms normal JS by factor 10 in Firefox.
from seedrandom.
It is a pretty significant performance difference.
from seedrandom.
Related Issues (20)
- is it possible to generate a number of 7 digits in length HOT 1
- Question about seeds and collisions HOT 1
- Problem with state HOT 2
- Same seed, different result on different browsers HOT 2
- Is it possible to include this module without extending the Math object? HOT 1
- Strings consisting of a repeated pattern cause collisions HOT 2
- Use of `eval` is unsafe and is disabled on some servers HOT 3
- cannot get it working in angular HOT 1
- document the range or results HOT 1
- inverted Math.round() result HOT 2
- add CHANGELOG file
- Can we get a "latest" url? HOT 1
- NPM package does not provide an ECMAScript module HOT 6
- executing from different computers returns different result HOT 1
- arc4.g in prng function sometimes returns NaN HOT 6
- This package is using eval(); any more modern way to avoid this? HOT 2
- python equivalent? HOT 2
- Is there a way to turn the seedrandom off? HOT 2
- Is there a way to go back steps and repeat them? HOT 1
- Math.random() rounds down when values are close to 0
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 seedrandom.