-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from max-au/max-au/erlperf-20
erlperf 2.0: total rewrite
- Loading branch information
Showing
39 changed files
with
2,647 additions
and
3,347 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
stages: | ||
- test | ||
- deploy | ||
|
||
test-default-docker: | ||
tags: | ||
- linux | ||
- x86_64 | ||
image: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/erlang:latest | ||
stage: test | ||
script: | ||
- rebar3 compile | ||
- rebar3 edoc | ||
- rebar3 dialyzer | ||
- rebar3 ct | ||
- rebar3 as prod escriptize | ||
- ./erlperf 'timer:sleep(1).' | ||
after_script: | ||
- mv "_build/test/logs" ./public | ||
artifacts: | ||
when: always | ||
paths: | ||
- "./public" | ||
expire_in: 3 days | ||
reports: | ||
junit: | ||
- "./public/last/junit_report.xml" | ||
|
||
# Pages: publishing Common Test results | ||
pages: | ||
stage: deploy | ||
needs: | ||
- test-default-docker | ||
script: | ||
- echo "Uploading to pages" | ||
artifacts: | ||
paths: | ||
- public | ||
rules: | ||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Changelog | ||
|
||
## 2.0 | ||
- incompatible change: `erlperf` requires runner arity to be defined explicitly. | ||
Code example: `erlperf:run(#{runner => {timer, sleep, []}, init_runner => "1."})`, | ||
with `erlperf` making a guess that `init_runner` is defined, therefore its return | ||
value can be passed as the argument to `timer:sleep/1`. This behaviour was confusing | ||
and is no longer supported. | ||
- incompatible change: crashed runner causes entire job to stop (error contains the | ||
reason and stack trace) | ||
- incompatible change: removed fprof/profiling support in favour of JIT + `perf` | ||
- `erlperf` application is no longer required to be started for one-off benchmark runs | ||
|
||
## 1.1.5: | ||
- support for OTP 25 (peer replacing slave) | ||
|
||
## 1.1.4: | ||
- fixed an issue with pg already started | ||
- moved profiling to spawned process | ||
|
||
## 1.1.3: | ||
- addressed deprecation, updated to argparse 1.1.4 | ||
|
||
## 1.1.2: | ||
- updated command line parser to new argparse | ||
|
||
## 1.1.1: | ||
- added support for OTP 24 | ||
- added edoc documentation | ||
|
||
## 1.0.0: | ||
- initial release |
Oops, something went wrong.