Skip to content

Sample ~ Efficient Collections

Vlad Ureche edited this page May 9, 2015 · 31 revisions
Frog Work Ahead

Come back soon for the final page.

Problem

Solution

Description Object

Transformed Code

Benchmark

> ildl-benchmarks/runMain ildl.benchmark.hamming.BenchmarkRunner
...
Parameters(bench -> direct, jvm_interpreter -> true): 271.93535
Parameters(bench -> adrt__, jvm_interpreter -> true): 151.61195
...
Parameters(bench -> direct, jvm_interpreter -> false): 4.937213
Parameters(bench -> adrt__, jvm_interpreter -> false): 1.652576

In a table:

Size Target Direct (ms) ADRT (ms)
10K elts interpreter 272 4.94
10K elts compiled 152 1.65

Conclusion: Using the nested ADRT scopes allows the code to run between 1.79x and 3x faster.

Frog Work Ahead: Some of the pages of this wiki are in flux. If you can't find what you are looking for, please [file a bug](https://github.com/miniboxing/ildl-plugin/issues).
Clone this wiki locally