Skip to content

Commit

Permalink
reading speed also decreased
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Benes committed Sep 1, 2023
1 parent 30c1eef commit 25056c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def tearDown(self):
jpeglib.version.set(self.original_version)

def test_reading(self):
"""Test reading is statistically significantly faster than 300ms."""
"""Test reading is statistically significantly faster than 500ms."""
self.logger.info("test_reading")
# load and time jpeglib 50 times
jpeglib.version.set('turbo210')
Expand All @@ -40,14 +40,14 @@ def test_reading(self):
).spatial,
repeat=50, number=1,
)
# test in reading, jpeglin is faster than 300ms
faster_than_300ms = ttest_1samp(res_jpeglib, .3, alternative='less')
# test in reading, jpeglin is faster than 500ms
faster_than_500ms = ttest_1samp(res_jpeglib, .5, alternative='less')
logging.info(
"performance of reading: %.2fs" % (
np.mean(res_jpeglib)
)
)
self.assertLess(faster_than_300ms.pvalue, .05)
self.assertLess(faster_than_500ms.pvalue, .05)

def test_writing(self):
"""Test writing is statistically significantly faster than 500ms."""
Expand Down

0 comments on commit 25056c7

Please sign in to comment.