http://hg.code.sf.net:8000/p/roundup/code/atom-log/tip/test/benchmark.py Mercurial Repository: p/roundup/code: test/benchmark.py history 2026-04-08T21:39:40-04:00 chore: remove __future print_funcion from code. http://hg.code.sf.net:8000/p/roundup/code/#changeset-9c3ec0a5c7fc88acb8a65632ecc13b2d52380314 John Rouillard rouilj@ieee.org 2026-04-08T21:39:40-04:00 2026-04-08T21:39:40-04:00
changeset 9c3ec0a5c7fc
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description chore: remove __future print_funcion from code.

Not needed as of Python 3.
files
test: update benchmark add basic CLI support for backend arguments http://hg.code.sf.net:8000/p/roundup/code/#changeset-7a3392f1f7ac70aa68b04b626cc79a7621d765d8 John Rouillard rouilj@ieee.org 2024-04-16T22:19:29-04:00 2024-04-16T22:19:29-04:00
changeset 7a3392f1f7ac
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description test: update benchmark add basic CLI support for backend arguments

Also docstring for file.

Handle ^C interruption and cleanup partly created databases.

Support postgresql and mysql.
files
chore: remove pdb invocation. http://hg.code.sf.net:8000/p/roundup/code/#changeset-867418c2433980c4fdd9ff28fb125c49e8f66596 John Rouillard rouilj@ieee.org 2024-04-10T12:57:37-04:00 2024-04-10T12:57:37-04:00
changeset 867418c24339
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description chore: remove pdb invocation.
files
test: benchmark no progress when INCI defined; set path; signal handling http://hg.code.sf.net:8000/p/roundup/code/#changeset-163d2c60fdf3c5e17917dcdceeae819112d2cb1a John Rouillard rouilj@ieee.org 2024-04-10T12:54:18-04:00 2024-04-10T12:54:18-04:00
changeset 163d2c60fdf3
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description test: benchmark no progress when INCI defined; set path; signal handling

The progress reports on issue creation in the db breaks up the table
in CI as each is reported on a new line. If the environment variable
INCI is set to any value, don't generate progress output. Change
GitHub action to define INCI

Insert roundup root directory in sys.path so import from test directory
will be found.

Also set up signal handler to delete the database if ^C is pressed
during creation. The interrupted db is incomplete (required data
missing), but it is used as is for a subsequent run. This causes the
benchmark to crash.
files
test: fix benchmark.py and set up to run under github if requested http://hg.code.sf.net:8000/p/roundup/code/#changeset-30fcdf60da4446196743dbac1ff48e87e14553ba John Rouillard rouilj@ieee.org 2024-04-10T00:14:58-04:00 2024-04-10T00:14:58-04:00
changeset 30fcdf60da44
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description test: fix benchmark.py and set up to run under github if requested

Add the word "benchmark" to the comment to get the benchmarking code
to run.
files
Python 3 preparation: use // and __truediv__ as needed. http://hg.code.sf.net:8000/p/roundup/code/#changeset-2120f77554d5ebacd5bccdd7692716660a4f32a1 Joseph Myers jsm@polyomino.org.uk 2018-07-24T23:16:09+00:00 2018-07-24T23:16:09+00:00
changeset 2120f77554d5
branch
bookmark
tag
user Joseph Myers <jsm@polyomino.org.uk>
description Python 3 preparation: use // and __truediv__ as needed.

Tool-assisted patch. Those divisions that I thought must be integer
floor divisions and rely on Python 2 integer floor division semantics
are changed to use // (if any are actually meant to be floating-point
divisions, that would break things). One __div__ method is changed to
__truediv__ (with __div__ = __truediv__ for Python 2 compatibility).
files
Python 3 preparation: make relative imports explicit. http://hg.code.sf.net:8000/p/roundup/code/#changeset-d26921b851c328681aa6638475ce2cdae29963b4 Joseph Myers jsm@polyomino.org.uk 2018-07-24T22:22:08+00:00 2018-07-24T22:22:08+00:00
changeset d26921b851c3
branch
bookmark
tag
user Joseph Myers <jsm@polyomino.org.uk>
description Python 3 preparation: make relative imports explicit.

Tool-generated patch.
files
Python 3 preparation: convert print to a function. http://hg.code.sf.net:8000/p/roundup/code/#changeset-64b05e24dbd889f52bf8f773d3456bd0135baa27 Joseph Myers jsm@polyomino.org.uk 2018-07-24T09:54:52+00:00 2018-07-24T09:54:52+00:00
changeset 64b05e24dbd8
branch
bookmark
tag
user Joseph Myers <jsm@polyomino.org.uk>
description Python 3 preparation: convert print to a function.

Tool-assisted patch. It is possible that some "from __future__ import
print_function" are not in fact needed, if a file only uses print()
with a single string as an argument and so would work fine in Python 2
without that import.
files
remove unused imports: shutil, Indexer; http://hg.code.sf.net:8000/p/roundup/code/#changeset-d41f38de578e59033d535975827ecb12ad2fcde8 Alexander Smishlajev a1s@users.sourceforge.net 2004-10-24T10:16:13+00:00 2004-10-24T10:16:13+00:00
changeset d41f38de578e
branch
bookmark
tag
user Alexander Smishlajev <a1s@users.sourceforge.net>
description remove unused imports: shutil, Indexer;

use config object from db_test_base
files
remove bsddb, bsddb3 backends; http://hg.code.sf.net:8000/p/roundup/code/#changeset-91d4d28c4a86980b6f17d08520e021f83c319f3b Alexander Smishlajev a1s@users.sourceforge.net 2004-10-24T08:24:43+00:00 2004-10-24T08:24:43+00:00
changeset 91d4d28c4a86
branch
bookmark
tag
user Alexander Smishlajev <a1s@users.sourceforge.net>
description remove bsddb, bsddb3 backends;

add vim modeline
files
Zope Collector fixes. http://hg.code.sf.net:8000/p/roundup/code/#changeset-69bf0d381fd7fa88f674c59876f15d84e2f6720e Richard Jones richard@users.sourceforge.net 2002-09-26T21:54:18+00:00 2002-09-26T21:54:18+00:00
changeset 69bf0d381fd7
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description Zope Collector fixes.

- merge Zope Collector #538 fix from ZPT CVS trunk (path expressions with a
non-path final alternate no longer try to call a value returned by that
alternate)
- merge Zope Collector #573 fix from ZPT CVS trunk
- added 1000-user/issue benchmark test
files
some speedups, some fixes to the benchmarking http://hg.code.sf.net:8000/p/roundup/code/#changeset-49aebf5a86913fbbae55faa5da77e3f29aa32eb4 Richard Jones richard@users.sourceforge.net 2002-09-23T00:50:32+00:00 2002-09-23T00:50:32+00:00
changeset 49aebf5a8691
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description some speedups, some fixes to the benchmarking
files
Verify contents of tracker module when the tracker is opened http://hg.code.sf.net:8000/p/roundup/code/#changeset-8e318dfaf4799778e8373b66063040740d8f786b Richard Jones richard@users.sourceforge.net 2002-09-20T01:20:32+00:00 2002-09-20T01:20:32+00:00
changeset 8e318dfaf479
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description Verify contents of tracker module when the tracker is opened

Performance improvements in *dbm and sq backends

New benchmark module. To use:

PYTHONPATH=. python2 test/benchmark.py

(yes, it's a little basic at present ;)
files