view contrib/python-zstandard/tests/test_estimate_sizes.py @ 40783:e207f0d6c243

perf: update perfindex to be more realistic The previous code was creating a revlog manually, we now use the actual `localrepo` method to create it. We have to jump though extra hops to work around the impact of filecache.
author Boris Feld <boris.feld@octobus.net>
date Fri, 23 Nov 2018 06:03:38 +0100
parents b1fb341d8a61
children de7838053207
line wrap: on
line source

import unittest

import zstandard as zstd

from . common import (
    make_cffi,
)


@make_cffi
class TestSizes(unittest.TestCase):
    def test_decompression_size(self):
        size = zstd.estimate_decompression_context_size()
        self.assertGreater(size, 100000)