-
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 #15 from max-au/max-au/usability-fixes
[erlperf] usability fixes
- Loading branch information
Showing
8 changed files
with
52 additions
and
29 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,6 +1,6 @@ | ||
** this is the overview.doc file for the application 'erlperf' ** | ||
|
||
@version 2.0.0 | ||
@version 2.0.1 | ||
@author Maxim Fedorov, <[email protected]> | ||
@title erlperf: Erlang Performance & Benchmarking Suite. | ||
|
||
|
@@ -123,8 +123,8 @@ | |
Command-line benchmarking does not save results anywhere. It is designed to provide a quick answer to the question | ||
"is that piece of code faster". | ||
|
||
=== Minimal overhead mode === | ||
Since 2.0, `erlperf' includes "low overhead" mode. It cannot be used for continuous benchmarking. In this mode | ||
=== Timed (low overhead) mode === | ||
Since 2.0, `erlperf' includes timed mode. It cannot be used for continuous benchmarking. In this mode | ||
runner code is executed specified amount of times in a tight loop: | ||
|
||
``` | ||
|
@@ -135,7 +135,8 @@ | |
''' | ||
|
||
This mode effectively runs following code: `loop(0) -> ok; loop(Count) -> rand:uniform(), loop(Count - 1).' | ||
Continuous mode adds 1-2 ns to each iteration. | ||
Timed mode reduced benchmarking overhead (compared to continuous mode) by 1-2 ns per iteration. | ||
|
||
|
||
== Benchmarking existing application == | ||
`erlperf' can be used to measure performance of your application running in production, or code that is stored | ||
|
@@ -324,7 +325,7 @@ | |
the same invocation method to get a relevant result. | ||
|
||
Absolute benchmarking overhead may be significant for very fast functions taking just a few nanoseconds. | ||
Use "low overhead mode" for such occasions. | ||
Use timed mode for such occasions. | ||
|
||
=== Experimental: recording call chain === | ||
This experimental feature allows capturing a sequence of calls as a list of | ||
|
@@ -409,7 +410,7 @@ | |
used `atomics' to maintain a counter shared between all runner processes, introducing | ||
unnecessary BIF call overhead. | ||
|
||
Low-overhead mode tightens it even further, turning runner into this function: | ||
Timed (low-overhead) mode tightens it even further, turning runner into this function: | ||
``` | ||
runner(0) -> | ||
ok; | ||
|
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
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