biotite-dev
biotite
BlogDocs

Improve performance of `pdbx.compress()`

#677Merged
Comparing
padix-key:compress-performance
(
446ad0a
) with
main
(
4ca6318
)
+43%
Improvements
1
Regressions
0
Untouched
44
New
0
Dropped
0
Ignored
0

Benchmarks

Improved

benchmark_compress
benchmarks/structure/benchmark_pdbx.py::benchmark_compress
+43%
721.7 ms
503.5 ms

Passed

benchmark_match_kmer_selection[BucketKmerTable(10000)-11*11*1*1***111]
benchmarks/sequence/align/benchmark_kmers.py::benchmark_match_kmer_selection[BucketKmerTable(10000)-11*11*1*1***111]
+1%
559.4 µs
555.6 µs
benchmark_match_table[KmerTable-None]
benchmarks/sequence/align/benchmark_kmers.py::benchmark_match_table[KmerTable-None]
+1%
15.1 ms
15 ms
test_pickle_and_unpickle[BucketKmerTable(10000)-None]
benchmarks/sequence/align/benchmark_kmers.py::test_pickle_and_unpickle[BucketKmerTable(10000)-None]
0%
7.3 ms
7.3 ms
benchmark_serialize_pdbx[cif]
benchmarks/structure/benchmark_pdbx.py::benchmark_serialize_pdbx[cif]
0%
181.4 ms
180.8 ms
benchmark_match_kmer_selection[BucketKmerTable(10000)-None]
benchmarks/sequence/align/benchmark_kmers.py::benchmark_match_kmer_selection[BucketKmerTable(10000)-None]
0%
556 µs
554.6 µs
benchmark_get_structure[cif-False]
benchmarks/structure/benchmark_pdbx.py::benchmark_get_structure[cif-False]
0%
61.8 ms
61.7 ms
test_pickle_and_unpickle[KmerTable-None]
benchmarks/sequence/align/benchmark_kmers.py::test_pickle_and_unpickle[KmerTable-None]
0%
39.9 ms
39.9 ms
benchmark_serialize_pdbx[bcif]
benchmarks/structure/benchmark_pdbx.py::benchmark_serialize_pdbx[bcif]
0%
86.2 ms
86.1 ms
benchmark_match[BucketKmerTable(10000)-11*11*1*1***111]
benchmarks/sequence/align/benchmark_kmers.py::benchmark_match[BucketKmerTable(10000)-11*11*1*1***111]
0%
625.7 µs
625.1 µs
benchmark_match[KmerTable-None]
benchmarks/sequence/align/benchmark_kmers.py::benchmark_match[KmerTable-None]
0%
492.5 µs
492.1 µs
benchmark_indexing_from_kmers[11*11*1*1***111-BucketKmerTable(100000)]
benchmarks/sequence/align/benchmark_kmers.py::benchmark_indexing_from_kmers[11*11*1*1***111-BucketKmerTable(100000)]
0%
10.8 ms
10.8 ms
benchmark_indexing_from_sequences[None-BucketKmerTable(100000)]
benchmarks/sequence/align/benchmark_kmers.py::benchmark_indexing_from_sequences[None-BucketKmerTable(100000)]
0%
9.8 ms
9.7 ms
benchmark_set_structure[cif-True]
benchmarks/structure/benchmark_pdbx.py::benchmark_set_structure[cif-True]
0%
159 ms
158.9 ms
benchmark_indexing_from_sequences[11*11*1*1***111-BucketKmerTable(100000)]
benchmarks/sequence/align/benchmark_kmers.py::benchmark_indexing_from_sequences[11*11*1*1***111-BucketKmerTable(100000)]
0%
14.2 ms
14.2 ms
benchmark_score_threshold_rule[11*11*1*1***111]
benchmarks/sequence/align/benchmark_kmers.py::benchmark_score_threshold_rule[11*11*1*1***111]
0%
2.1 s
2.1 s
benchmark_indexing_from_sequences[11*11*1*1***111-KmerTable]
benchmarks/sequence/align/benchmark_kmers.py::benchmark_indexing_from_sequences[11*11*1*1***111-KmerTable]
0%
17.3 ms
17.3 ms
test_pickle_and_unpickle[BucketKmerTable(10000)-11*11*1*1***111]
benchmarks/sequence/align/benchmark_kmers.py::test_pickle_and_unpickle[BucketKmerTable(10000)-11*11*1*1***111]
0%
7.4 ms
7.4 ms
benchmark_indexing_from_kmers[None-KmerTable]
benchmarks/sequence/align/benchmark_kmers.py::benchmark_indexing_from_kmers[None-KmerTable]
0%
13.8 ms
13.8 ms
benchmark_match[KmerTable-11*11*1*1***111]
benchmarks/sequence/align/benchmark_kmers.py::benchmark_match[KmerTable-11*11*1*1***111]
0%
536.5 µs
536.5 µs
benchmark_deserialize_pdbx[bcif]
benchmarks/structure/benchmark_pdbx.py::benchmark_deserialize_pdbx[bcif]
0%
113 ms
113 ms
benchmark_get_structure[bcif-False]
benchmarks/structure/benchmark_pdbx.py::benchmark_get_structure[bcif-False]
0%
21.5 ms
21.5 ms
benchmark_indexing_from_kmer_selection[11*11*1*1***111-KmerTable]
benchmarks/sequence/align/benchmark_kmers.py::benchmark_indexing_from_kmer_selection[11*11*1*1***111-KmerTable]
0%
12.9 ms
12.9 ms
benchmark_indexing_from_sequences[None-KmerTable]
benchmarks/sequence/align/benchmark_kmers.py::benchmark_indexing_from_sequences[None-KmerTable]
0%
12.8 ms
12.8 ms
benchmark_indexing_from_kmers[None-BucketKmerTable(100000)]
benchmarks/sequence/align/benchmark_kmers.py::benchmark_indexing_from_kmers[None-BucketKmerTable(100000)]
0%
10.7 ms
10.7 ms
benchmark_indexing_from_kmers[11*11*1*1***111-KmerTable]
benchmarks/sequence/align/benchmark_kmers.py::benchmark_indexing_from_kmers[11*11*1*1***111-KmerTable]
0%
13.9 ms
13.9 ms
benchmark_indexing_from_kmer_selection[None-KmerTable]
benchmarks/sequence/align/benchmark_kmers.py::benchmark_indexing_from_kmer_selection[None-KmerTable]
0%
12.9 ms
12.9 ms
benchmark_score_threshold_rule[None]
benchmarks/sequence/align/benchmark_kmers.py::benchmark_score_threshold_rule[None]
0%
2.1 s
2.1 s
benchmark_set_structure[cif-False]
benchmarks/structure/benchmark_pdbx.py::benchmark_set_structure[cif-False]
0%
119.3 ms
119.4 ms
benchmark_match[BucketKmerTable(10000)-None]
benchmarks/sequence/align/benchmark_kmers.py::benchmark_match[BucketKmerTable(10000)-None]
0%
580.3 µs
580.7 µs
benchmark_match_table[BucketKmerTable(10000)-None]
benchmarks/sequence/align/benchmark_kmers.py::benchmark_match_table[BucketKmerTable(10000)-None]
0%
12.9 ms
12.9 ms
benchmark_match_kmer_selection[KmerTable-11*11*1*1***111]
benchmarks/sequence/align/benchmark_kmers.py::benchmark_match_kmer_selection[KmerTable-11*11*1*1***111]
0%
473.9 µs
474.3 µs
benchmark_set_structure[bcif-True]
benchmarks/structure/benchmark_pdbx.py::benchmark_set_structure[bcif-True]
0%
50.9 ms
50.9 ms
benchmark_indexing_from_kmer_selection[None-BucketKmerTable(100000)]
benchmarks/sequence/align/benchmark_kmers.py::benchmark_indexing_from_kmer_selection[None-BucketKmerTable(100000)]
0%
9.9 ms
9.9 ms
benchmark_kmer_decomposition[11*11*1*1***111]
benchmarks/sequence/align/benchmark_kmers.py::benchmark_kmer_decomposition[11*11*1*1***111]
0%
185.4 µs
185.7 µs
benchmark_deserialize_pdbx[cif]
benchmarks/structure/benchmark_pdbx.py::benchmark_deserialize_pdbx[cif]
0%
129.3 ms
129.5 ms
benchmark_set_structure[bcif-False]
benchmarks/structure/benchmark_pdbx.py::benchmark_set_structure[bcif-False]
0%
15.5 ms
15.5 ms
benchmark_match_table[BucketKmerTable(10000)-11*11*1*1***111]
benchmarks/sequence/align/benchmark_kmers.py::benchmark_match_table[BucketKmerTable(10000)-11*11*1*1***111]
0%
12.8 ms
12.9 ms
benchmark_match_kmer_selection[KmerTable-None]
benchmarks/sequence/align/benchmark_kmers.py::benchmark_match_kmer_selection[KmerTable-None]
0%
473.9 µs
474.8 µs
benchmark_indexing_from_kmer_selection[11*11*1*1***111-BucketKmerTable(100000)]
benchmarks/sequence/align/benchmark_kmers.py::benchmark_indexing_from_kmer_selection[11*11*1*1***111-BucketKmerTable(100000)]
0%
9.9 ms
9.9 ms
benchmark_get_structure[bcif-True]
benchmarks/structure/benchmark_pdbx.py::benchmark_get_structure[bcif-True]
0%
84.9 ms
85.1 ms
benchmark_kmer_decomposition[None]
benchmarks/sequence/align/benchmark_kmers.py::benchmark_kmer_decomposition[None]
0%
154.2 µs
154.7 µs
test_pickle_and_unpickle[KmerTable-11*11*1*1***111]
benchmarks/sequence/align/benchmark_kmers.py::test_pickle_and_unpickle[KmerTable-11*11*1*1***111]
-1%
37.7 ms
37.9 ms
benchmark_get_structure[cif-True]
benchmarks/structure/benchmark_pdbx.py::benchmark_get_structure[cif-True]
-1%
123.7 ms
124.4 ms
benchmark_match_table[KmerTable-11*11*1*1***111]
benchmarks/sequence/align/benchmark_kmers.py::benchmark_match_table[KmerTable-11*11*1*1***111]
-1%
14.4 ms
14.5 ms

Commits

Click on a commit to change the comparison range
Base
main
4ca6318
+43%
Reuse already encoded arrays
12f731d
1 month ago
by padix-key
0%
Fix typo in variable name Co-authored-by: Tom Duignan <tjduigna@users.noreply.github.com>
446ad0a
1 month ago
by padix-key
Home Terms PrivacyDocs