Skip to content

Instantly share code, notes, and snippets.

View khmarbaise's full-sized avatar

Karl Heinz Marbaise khmarbaise

View GitHub Profile
@mp911de
mp911de / Benchmarks.java
Last active February 11, 2022 20:04
Benchmark using Optional/Streams vs. imperative variants of the same code
/*
* Copyright 2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software