File: repo.py

package info (click to toggle)
datalad 1.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,148 kB
  • sloc: python: 69,414; sh: 1,521; makefile: 220
file content (23 lines) | stat: -rw-r--r-- 846 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# ex: set sts=4 ts=4 sw=4 noet:
# ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
#
#   See COPYING file distributed along with the datalad package for the
#   copyright and license terms.
#
# ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
"""Benchmarks of the basic repos (Git/Annex) functionality"""

from .common import (
    SampleSuperDatasetBenchmarks,
    SuprocBenchmarks,
)


# TODO: probably SampleSuperDatasetBenchmarks is not the best for these benchmarks
#       but we are yet to make it parametric so we could sweep through a set
#       of typical scenarios
class gitrepo(SampleSuperDatasetBenchmarks):

    def time_get_content_info(self):
        info = self.repo.get_content_info()
        assert isinstance(info, dict)   # just so we do not end up with a generator