From d3510e48bdec84b537c0e37aeb5e424dff6e0604 Mon Sep 17 00:00:00 2001 From: Luiz Irber Date: Tue, 8 Dec 2020 16:05:59 -0800 Subject: [PATCH] fix benchmarks --- asv.conf.json | 8 ++++++-- benchmarks/benchmarks.py | 4 ++-- src/core/Cargo.toml | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/asv.conf.json b/asv.conf.json index 065ba54afb..e11e5b15af 100644 --- a/asv.conf.json +++ b/asv.conf.json @@ -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}" + ] } diff --git a/benchmarks/benchmarks.py b/benchmarks/benchmarks.py index fa10346e15..481cb76b43 100644 --- a/benchmarks/benchmarks.py +++ b/benchmarks/benchmarks.py @@ -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 diff --git a/src/core/Cargo.toml b/src/core/Cargo.toml index cb41e221b9..cb2d0258db 100644 --- a/src/core/Cargo.toml +++ b/src/core/Cargo.toml @@ -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"