diff --git a/README.md b/README.md index 9e2a33d..ef7a884 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -[![Latest Report][BADGE_TIMES_FASTER]][TIMES_FASTER] +[![Latest Report][BADGE_TIMES_FASTER]][BENCHMARK] # Result Library Benchmarks @@ -15,7 +15,8 @@ There are simple and complex scenarios to compare performance when using results ### Simple Scenarios -The first scenarios compare the most basic usage: a method that returns a `String` or fails, depending on a given `int` parameter: +The first scenarios compare the most basic usage: a method that returns a `String` or fails, depending on a given `int` +parameter: #### Using Exceptions @@ -41,7 +42,8 @@ public Result usingResults(int number) { ### Complex Scenarios -The next scenarios do something a little bit more elaborate: a method invokes the previous method to retrieve a `String`; if successful, then converts it to upper case; otherwise transforms the "simple" error into a "complex" error. +The next scenarios do something a little bit more elaborate: a method invokes the previous method to retrieve a +`String`; if successful, then converts it to upper case; otherwise transforms the "simple" error into a "complex" error. #### Using Exceptions @@ -69,9 +71,11 @@ public Result usingResults(int number) { > [!IMPORTANT] > -> The report you can see [here][BENCHMARK] was generated on a [GitHub-hosted runner][GITHUB_HOSTED_RUNNER] using the latest [Ubuntu][UBUNTU_RUNNER] image and the latest [Azul Zulu OpenJDK][AZUL_ZULU_OPENJDK] version. -> Performance measurements may vary depending on different factors such as architecture, operating system, or Java virtual machine. -> Please remember that you should run your own benchmarks to make informed decisions for your specific project. +> The report you can see [here][BENCHMARK] was generated on a [GitHub-hosted runner][GITHUB_HOSTED_RUNNER] using the +> latest [Ubuntu][UBUNTU_RUNNER] image and the latest [Azul Zulu OpenJDK][AZUL_ZULU_OPENJDK] version. +> Performance measurements may vary depending on different factors such as architecture, operating system, or Java +> virtual machine. Please remember that you should run your own benchmarks to make informed decisions for your specific +> project. To run the [JMH benchmarks][JMH] locally, execute this command: @@ -136,6 +140,5 @@ See the License for the specific language governing permissions and limitations [GUILLERMO_IMAGE]: https://guillermo.dev/assets/images/thumb.png [JMH]: https://openjdk.org/projects/code-tools/jmh/ [JMH_VISUALIZER]: https://github.com/jzillmann/jmh-visualizer/ -[RESULT]: https://dev.leakyabstractions.com/result/ -[TIMES_FASTER]: https://dev.leakyabstractions.com/result-benchmark/ +[RESULT]: https://result.leakyabstractions.com/ [UBUNTU_RUNNER]: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index e644113..2c35211 100644 Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 8a1f6b9..68e8816 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,7 +1,7 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionSha256Sum=a4b4158601f8636cdeeab09bd76afb640030bb5b144aafe261a5e8af027dc612 -distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip +distributionSha256Sum=d725d707bfabd4dfdc958c624003b3c80accc03f7037b5122c4b1d0ef15cecab +distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME diff --git a/gradlew b/gradlew index b740cf1..f5feea6 100755 --- a/gradlew +++ b/gradlew @@ -15,6 +15,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +# SPDX-License-Identifier: Apache-2.0 +# ############################################################################## # @@ -84,7 +86,8 @@ done # shellcheck disable=SC2034 APP_BASE_NAME=${0##*/} # Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) -APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit +APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s +' "$PWD" ) || exit # Use the maximum available, or set MAX_FD != -1 to use that value. MAX_FD=maximum diff --git a/gradlew.bat b/gradlew.bat index 25da30d..9d21a21 100644 --- a/gradlew.bat +++ b/gradlew.bat @@ -13,6 +13,8 @@ @rem See the License for the specific language governing permissions and @rem limitations under the License. @rem +@rem SPDX-License-Identifier: Apache-2.0 +@rem @if "%DEBUG%"=="" @echo off @rem ##########################################################################