Debian Codegraph @

benchmarks/repo.py

raw
1 # ex: set sts=4 ts=4 sw=4 noet:
2 # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
3 #
4 # See COPYING file distributed along with the datalad package for the
5 # copyright and license terms.
6 #
7 # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
8 """Benchmarks of the basic repos (Git/Annex) functionality"""
9
10 from .common import (
11 SampleSuperDatasetBenchmarks,
12 SuprocBenchmarks,
13 )
14
15
16 # TODO: probably SampleSuperDatasetBenchmarks is not the best for these benchmarks
17 # but we are yet to make it parametric so we could sweep through a set
18 # of typical scenarios
19 class gitrepo(SampleSuperDatasetBenchmarks):
20
21 def time_get_content_info(self):
22 info = self.repo.get_content_info()
23 assert isinstance(info, dict) # just so we do not end up with a generator