diff options
author | mpociecha <michal.pociecha@gmail.com> | 2014-12-01 00:11:21 +0100 |
---|---|---|
committer | mpociecha <michal.pociecha@gmail.com> | 2014-12-05 01:21:05 +0100 |
commit | 959d1344b71c9eca1fb60c618d2bc1a4382e250e (patch) | |
tree | 52c6032fc46e8a6a3267766417d5b1b6e14255fe /test/benchmarking | |
parent | a8c43dc5caf7439dbcb47f6c25b33fb6b3ed8705 (diff) | |
download | scala-959d1344b71c9eca1fb60c618d2bc1a4382e250e.tar.gz scala-959d1344b71c9eca1fb60c618d2bc1a4382e250e.tar.bz2 scala-959d1344b71c9eca1fb60c618d2bc1a4382e250e.zip |
Add benchmarks to compare recursive and flat cp representations
The goal of these changes is to add possibility to:
- compare an efficiency and a content of both cp implementations
(ClassPathImplComparator)
- examine the memory consumption by creating a lot of globals using
a specified classpath (ClassPathMemoryConsumptionTester) - it can be
considered as e.g. some approximation of ScalaPresentationCompilers
in Scala IDE when working with many projects
ClassPathMemoryConsumptionTester is placed in main (I mean not test)
sources so thanks to that it has properly, out of the box configured
boot classpath etc. and it's easy to use it, e.g.:
scala scala.tools.nsc.ClassPathMemoryConsumptionTester
-YclasspathImpl:<implementation_to_test> -cp <some_cp>
-sourcepath <some_sp> -requiredInstances 50 SomeFileToCompile.scala
At the end it waits for the "exit" command so there can be used some
profiler like JProfiler to look how the given implementation behaves.
Also flat classpath implementation is set as a default one to test it
on Jenkins. This particular change must be reverted when all tests
will pass because for now it's not desirable to make it permanently
the default representation.
Diffstat (limited to 'test/benchmarking')
0 files changed, 0 insertions, 0 deletions