-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
def9d3b
commit 4e80c9e
Showing
3 changed files
with
18 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,29 @@ | ||
Microbenchmarks | ||
--------------- | ||
# Microbenchmarks | ||
Benchmarks in this module are suitable for things like: | ||
- performance of SpEL evaluation | ||
- handling Context operations | ||
and probably not for more end to end scenarios - like testing Flink process | ||
and probably not for more end to end scenarios - like testing Flink process | ||
|
||
For some benchmarks sample values for 4-core machine are included. They **should not** be considered | ||
as proper reference, since results will vary a lot between machines/runs. However, if after some changes | ||
the results are like 10 times worse it's probably worth having a closer look ;) | ||
|
||
|
||
Docs: | ||
----- | ||
## Docs: | ||
https://github.com/sbt/sbt-jmh | ||
|
||
Running in sbt: | ||
--------------- | ||
``` | ||
## Running in sbt: | ||
```bash | ||
benchmarks/Jmh/run -i 8 -wi 3 -f1 -t2 .*SampleSpelBenchmark.* | ||
benchmarks/Jmh/run -i 8 -wi 3 -f1 -t2 -prof jfr:stackDepth=512 .*SampleSpelBenchmark.* | ||
``` | ||
|
||
# E2E benchmarks | ||
Benchmarks based on the docker installation example environment. | ||
The docker from sources is built and published in local registry and then the benchmark code is run. | ||
|
||
## Running in sbt: | ||
```bash | ||
bash -c "export NUSSKNACKER_SCALA_VERSION=2.12 && sbt \"benchmarks/test:runMain pl.touk.nussknacker.engine.benchmarks.e2e.FlinkSteamingScenarioBenchmark 10000000\"" | ||
``` | ||
|
||
> :warning: **Warning:** At the moment they support only Scala 2.12-based Nu-stack |