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

[TEST] Create micro benchmarks for compiler transformations #321

Open
1 of 3 tasks
joroKr21 opened this issue Mar 30, 2017 · 3 comments
Open
1 of 3 tasks

[TEST] Create micro benchmarks for compiler transformations #321

joroKr21 opened this issue Mar 30, 2017 · 3 comments
Assignees

Comments

@joroKr21
Copy link
Member

joroKr21 commented Mar 30, 2017

This will be useful for papers / thesis.

Use ScalaMeter to create the infrastructure for micro benchmarks of compiler transformations. This will also give us some simple statistics and reporting for free. Benchmarks can then be run on a bunch of Scala code like scala-repos. The tricky part is making sure the transformations are lenient enough to not fail on random input.

After this we can define a few variants of the core transformations like ANF and DSCF to compare: using the Transversers API, recursive methods, stateful transformers from scalac, quasiquotes vs the AST API, etc.

  • Benchmarking infrastructure
  • Benchmarks for ANF
  • Benchmarks for DSCF
@joroKr21 joroKr21 self-assigned this Mar 30, 2017
@aalexandrov
Copy link
Contributor

aalexandrov commented Apr 5, 2017

@joroKr21 I had to use this snippet in my pom.xml to add scalameter (the XML derived from the SBT config attempts to resolve the org.mongodb:casbah_2.11:3.1.1 with type jar and fails).

<!-- Scalameter -->
<dependency>
    <groupId>com.storm-enroute</groupId>
    <artifactId>scalameter_2.11</artifactId>
    <version>0.8.2</version>
    <exclusions>
        <exclusion>
            <groupId>org.mongodb</groupId>
            <artifactId>casbah_2.11</artifactId>
        </exclusion>
    </exclusions>
</dependency>
<dependency>
    <groupId>org.mongodb</groupId>
    <artifactId>casbah_2.11</artifactId>
    <version>3.1.1</version>
    <type>pom</type>
</dependency>

I reported the issue in the scalameter GitHub repository.

@joroKr21
Copy link
Member Author

joroKr21 commented Apr 5, 2017

Somehow I don't have this problem.

@aalexandrov
Copy link
Contributor

aalexandrov commented Apr 5, 2017

Maybe you had the packages cached in your local repository already.

Try running

rm -Rf ~/.m2/repository/org/mongodb/casbah_2.11
mvn dependency:resolve

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

No branches or pull requests

2 participants