Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wololock/groovy-palindrome-bench-demo
https://github.com/wololock/groovy-palindrome-bench-demo
Last synced: 28 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/wololock/groovy-palindrome-bench-demo
- Owner: wololock
- Created: 2020-02-02T18:26:13.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-02T18:26:28.000Z (almost 5 years ago)
- Last Synced: 2024-05-02T06:17:09.298Z (6 months ago)
- Language: Groovy
- Size: 54.7 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# Groovy `isPalindrome` benchmark demo
Run the benchmark with:
```
./gradlew --no-daemon jmh
```Here are results from my laptop:
```
# Run complete. Total time: 00:04:42REMEMBER: The numbers below are just data. To gain reusable insights, you need to follow up on
why the numbers are the way they are. Use profilers (see -prof, -lprof), design factorial
experiments, perform baseline and negative tests that provide experimental control, make sure
the benchmarking environment is safe on JVM/OS/HW level, ask for reviews from the domain experts.
Do not assume the numbers tell you what you want them to tell.Benchmark Mode Cnt Score Error Units
IsPalindromeBench.a_reverse_dynamic avgt 40 0,166 ± 0,002 ms/op
IsPalindromeBench.a_reverse_static avgt 40 0,139 ± 0,003 ms/op
IsPalindromeBench.b_imperative_dynamic avgt 40 0,155 ± 0,003 ms/op
IsPalindromeBench.b_imperative_static avgt 40 0,111 ± 0,002 ms/op```