Skip to content

Instantly share code, notes, and snippets.

@hussachai
Last active November 22, 2015 01:24
Show Gist options
  • Save hussachai/36fd978cda9aa3a00595 to your computer and use it in GitHub Desktop.
Save hussachai/36fd978cda9aa3a00595 to your computer and use it in GitHub Desktop.
Filter Then Count
+----------+------------------------+-----------+---------+
| Language | Benchmark | Score | Error |
+----------+------------------------+-----------+---------+
| Java | Collections | 1,510,186 | 38,309 | <-- (3)
| Java | Collections (removeIf) | 1,211,592 | 122,352 |
| Java | Streams | 5,145,467 | 83,952 | <-- (1)
| Scala | Collections | 3,603,865 | 66,801 | <-- (2)
| Scala | Streams | 234,396 | 2,542 |
| Scala | Views | 1,079,969 | 23,248 |
+----------+------------------------+-----------+---------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment