Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up test case generation using multiprocessing #16

Open
unzvfu opened this issue Mar 21, 2020 · 0 comments
Open

Speed up test case generation using multiprocessing #16

unzvfu opened this issue Mar 21, 2020 · 0 comments
Assignees

Comments

@unzvfu
Copy link
Owner

unzvfu commented Mar 21, 2020

From data61#33:

Currently takes 3 hours (1 CPU) to generate all the 256 byte modexp test cases.

Example output:

$ python3 gentests.py
Generating input arguments... done (0.00s). Created 13 arguments.
xs = [0, 1, 2, 3, 4294967295, 4294967294, 4294967293, 252645135, 4042322160, 16711935, 4278255360, 65535, 4294901760]
Writing 169 tests into "add_cy_4"... done (0.00s).
Writing 169 tests into "sub_br_4"... done (0.00s).
Writing 169 tests into "mul_wide_4"... done (0.00s).
Writing 2197 tests into "modexp_4"... done (0.01s).
Generating input arguments... done (0.00s). Created 21 arguments.
Writing 441 tests into "add_cy_8"... done (0.00s).
Writing 441 tests into "sub_br_8"... done (0.00s).
Writing 441 tests into "mul_wide_8"... done (0.00s).
Writing 9261 tests into "modexp_8"... done (0.03s).
Generating input arguments... done (0.00s). Created 35 arguments.
Writing 1225 tests into "add_cy_16"... done (0.00s).
Writing 1225 tests into "sub_br_16"... done (0.00s).
Writing 1225 tests into "mul_wide_16"... done (0.00s).
Writing 42875 tests into "modexp_16"... done (0.18s).
Generating input arguments... done (0.00s). Created 61 arguments.
Writing 3721 tests into "add_cy_32"... done (0.01s).
Writing 3721 tests into "sub_br_32"... done (0.01s).
Writing 3721 tests into "mul_wide_32"... done (0.01s).
Writing 226981 tests into "modexp_32"... done (1.40s).
Generating input arguments... done (0.00s). Created 111 arguments.
Writing 12321 tests into "add_cy_64"... done (0.02s).
Writing 12321 tests into "sub_br_64"... done (0.02s).
Writing 12321 tests into "mul_wide_64"... done (0.03s).
Writing 1367631 tests into "modexp_64"... done (19.04s).
Generating input arguments... done (0.00s). Created 209 arguments.
Writing 43681 tests into "add_cy_128"... done (0.09s).
Writing 43681 tests into "sub_br_128"... done (0.09s).
Writing 43681 tests into "mul_wide_128"... done (0.12s).
Writing 9129329 tests into "modexp_128"... done (397.75s).
Generating input arguments... done (0.00s). Created 403 arguments.
Writing 162409 tests into "add_cy_256"... done (1.12s).
Writing 162409 tests into "sub_br_256"... done (0.67s).
Writing 162409 tests into "mul_wide_256"... done (0.90s).
Writing 65450827 tests into "modexp_256"... done (10404.95s).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant