You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Benchmark suite for Java 8 Streams compatibility layer
2
+
3
+
This project is intended to support semi-manual benchmarking of the Java 8 streams compatibility layer in Scala collections.
4
+
5
+
Because the benchmarking is **very computationally expensive** it should be done occasionally, not automatically.
6
+
7
+
## Code generation step
8
+
9
+
1. Run `sbt console`
10
+
11
+
2. If the `JmhBench.scala` file already exists, delete it.
12
+
13
+
3. Enter `bench.codegen.Generate.jmhBench()` to generate the `JmhBench.scala` file.
14
+
15
+
## Benchmarking step
16
+
17
+
1. Make sure your terminal has plenty of lines of scrollback. (A couple thousand should do.)
18
+
19
+
2. Run `sbt`
20
+
21
+
3. Enter `jmh:run -i 5 -wi 3 -f5`. Wait overnight.
22
+
23
+
4. Clip off the last set of lines from the terminal window starting before the line that contains `[info] # Run complete. Total time:` and including that line until the end.
24
+
25
+
5. Save that in the file `results/jmhbench.log`
26
+
27
+
## Comparison step
28
+
29
+
1. Run `sbt console`
30
+
31
+
2. Enter `bench.examine.SpeedReports()`
32
+
33
+
3. Look at the ASCII art results showing speed comparisons.
0 commit comments