FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add option for rigorous in benchmark.conf.sample by Fidget-Spinner · Pull Request #446 · python/pyperformance · GitHub

Repository navigation

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) .sample  (1) All 2 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
2 changes: 2 additions & 0 deletions doc/benchmark.conf.sample
This file contains hidden or 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
Expand Up @@ -96,6 +96,8 @@ affinity =
# disabled.
upload = False

# --rigorous option for 'pyperformance run'
rigorous = False

# Configuration to upload results to a Codespeed website
[upload]
Expand Down
3 changes: 3 additions & 0 deletions pyperformance/compile.py
This file contains hidden or 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
Expand Up @@ -570,6 +570,8 @@ def run_benchmark(self, python=None):
cmd.append("--debug-single-value")
if self.conf.same_loops:
cmd.append("--same_loops=%s" % self.conf.same_loops)
if self.conf.rigorous:
cmd.append("--rigorous")
exitcode = self.run_nocheck(*cmd)

if os.path.exists(self.filename):
Expand Down Expand Up @@ -842,6 +844,7 @@ def getint(section, key, default=None):
conf.affinity = getstr("run_benchmark", "affinity", default="")
conf.upload = getboolean("run_benchmark", "upload", False)
conf.same_loops = getfile("run_benchmark", "same_loops", default="")
conf.rigorous = getboolean("run_benchmark", "rigorous", False)

# paths
conf.build_dir = os.path.join(conf.directory, "build")
Expand Down

Back | FazBrowse Home | New Git URL