Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scala.js Support? #154

Open
mdedetrich opened this issue Oct 25, 2015 · 4 comments
Open

Scala.js Support? #154

mdedetrich opened this issue Oct 25, 2015 · 4 comments

Comments

@mdedetrich
Copy link

Would most likely need an entirely different backend (with support for different engines, i.e. node.js/Rhino/Nashorn), but it would be fantastic since ScalaMeter would be properly cross platform

@axel22
Copy link
Member

axel22 commented Oct 25, 2015

In principle it could work already in the current version. One would have to:

  1. One would have to set the jvmcmd Key to a custom VM command.
  2. One would possibly have to provide alternative measurers for the running time (or maybe not if ScalaJS is smart about System.nanoTime calls).

The idea sounds good to me. We could also have special Bench templates to have this more out-of-the-box.

@paullepoulpe
Copy link

We started porting scalameter to scalajs here => https://github.com/SebsLittleHelpers/scalameter-js

Use with caution, for the moment, only this basic config works :

  • Local Executor
  • Console / Dom reporter
  • Time measurer

@axel22
Copy link
Member

axel22 commented Oct 26, 2015

That is awesome! If you would be interested in adding a second build to
ScalaMeter to ensure that these things work, please go ahead and let me
know if you need any help.

On Mon, Oct 26, 2015 at 11:06 AM, Damien Engels [email protected]
wrote:

We started porting scalameter to scalajs here =>
https://github.com/SebsLittleHelpers/scalameter-js

Use with caution, for the moment, only this basic config works :

  • Local Executor
  • Console / Dom reporter
  • Time measurer


Reply to this email directly or view it on GitHub
#154 (comment)
.

@mdedetrich
Copy link
Author

Nice work @paullepoulpe, would also be freaking awesome (if it doesn't already do so) to provide support for different backends (Rhino/Nashorn natively, and stuff like node.js when run through command line)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants