tc39 / proposal-ecmascript-sharedmem

Shared memory and atomics for ECMAscript
Mozilla Public License 2.0
375 stars 32 forks source link

Performance tutorial #123

Open jfbastien opened 8 years ago

jfbastien commented 8 years ago

I'd like a section, maybe PERFORMANCE.md or in DISCUSSION.md, which explains the performance goals of this spec, and open areas which can help bridge the gap with native.

It'll be useful to evaluate the design, and point developers who have existing code so they can understand what performance to expect from:

  1. The current spec.
  2. Future revisions.
  3. Executing SAB code on different platforms.

For example:

This can't be exhaustive, but would be useful in developing benchmarks for SAB, and helping developers try it out (especially, setting expectations).

lars-t-hansen commented 8 years ago

OK, good point. Some of what you're suggesting is out of scope for DISCUSSION.md (certainly "future work" would be completely speculative and does not belong there) but these points could be made:

If you want to contribute a PERFORMANCE.md document that goes beyond that I'm happy to accept it.

lars-t-hansen commented 8 years ago

I beefed up DISCUSSION.md, leaving the bug open in case anyone feels called to provide a performance tutorial.

jfbastien commented 8 years ago

Great start, ty. I may take a stab at more later.