Skip to content

Commit

Permalink
fix benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
luizirber committed Dec 9, 2020
1 parent 154bf2f commit d3510e4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
8 changes: 6 additions & 2 deletions asv.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@
"project": "sourmash",
"project_url": "https://github.com/dib-lab/sourmash",
"repo": ".",
"branches": ["latest"], // for git
"branches": ["latest"],
"dvcs": "git",
"environment_type": "virtualenv",
"pythons": ["3.7"],
"env_dir": ".asv/env",
"results_dir": ".asv/results",
"html_dir": ".asv/html",
"build_cache_size": 8
"build_cache_size": 8,
"build_command": [
"python -m pip install build",
"python -m build --sdist --wheel --outdir {build_cache_dir} {build_dir}"
]
}
4 changes: 2 additions & 2 deletions benchmarks/benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ def time_add_many(self):
mh = self.mh
mh.add_many(list(range(1000)))

def time_compare(self):
def time_similarity(self):
mh = self.mh
other_mh = self.populated_mh
for i in range(500):
mh.compare(other_mh)
mh.similarity(other_mh)

def time_count_common(self):
mh = self.mh
Expand Down
2 changes: 1 addition & 1 deletion src/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ getset = "0.1.1"
log = "0.4.8"
md5 = "0.7.0"
murmurhash3 = "0.0.5"
niffler = { version = "2.2.0", default-features = false, features = [ "gz" ] }
niffler = { version = "2.3.1", default-features = false, features = [ "gz" ] }
nohash-hasher = "0.2.0"
num-iter = "0.1.41"
once_cell = "1.3.1"
Expand Down

0 comments on commit d3510e4

Please sign in to comment.