Skip to content

Speed up achievement scoring.#2712

Merged
Alex-Jordan merged 1 commit into
openwebwork:WeBWorK-2.20from
drgrice1:achievement-scoring-speed-up
May 20, 2025
Merged

Speed up achievement scoring.#2712
Alex-Jordan merged 1 commit into
openwebwork:WeBWorK-2.20from
drgrice1:achievement-scoring-speed-up

Conversation

@drgrice1
Copy link
Copy Markdown
Member

First get all of the necessary achievement data from the database, then process it and print it to the file.

Comparing scoring all course achievements for all users in a course with 5000 users shows a considerable speed improvement. It takes more than three minutes for this with the develop branch, and less than 3 seconds with this pull request.

Obviously the generated scoring files are identical.

@drgrice1 drgrice1 force-pushed the achievement-scoring-speed-up branch 2 times, most recently from 7e6dbde to 94d4d67 Compare April 27, 2025 16:14
@drgrice1 drgrice1 changed the base branch from develop to WeBWorK-2.20 April 29, 2025 12:22
@drgrice1 drgrice1 force-pushed the achievement-scoring-speed-up branch from 94d4d67 to 25100a9 Compare April 29, 2025 20:05
Copy link
Copy Markdown
Member

@pstaabp pstaabp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

more improved speed up.

@drgrice1
Copy link
Copy Markdown
Member Author

drgrice1 commented May 6, 2025

For testing here is the class list: https://github.com/user-attachments/files/19825750/longDemoCourse.lst.txt

@drgrice1
Copy link
Copy Markdown
Member Author

drgrice1 commented May 6, 2025

For testing here is that class list: https://github.com/user-attachments/files/19825750/longDemoCourse.lst.txt

@drgrice1 drgrice1 force-pushed the achievement-scoring-speed-up branch 2 times, most recently from a2093f0 to 6fdbc70 Compare May 13, 2025 14:35
@Alex-Jordan
Copy link
Copy Markdown
Contributor

Before this, scoring just one achievement for all 5000 users took 15 seconds. Now it's instant.

First get all of the necessary achievement data from the database, then
process it and print it to the file.

Comparing scoring all course achievements for all users in a course with
5000 users shows a considerable speed improvement. It takes more than
three minutes for this with the develop branch, and less than 3 seconds
with this pull request.

Obviously the generated scoring files are identical.
@drgrice1 drgrice1 force-pushed the achievement-scoring-speed-up branch from 6fdbc70 to d30a5d0 Compare May 20, 2025 19:22
@Alex-Jordan Alex-Jordan merged commit 68a2f5f into openwebwork:WeBWorK-2.20 May 20, 2025
2 checks passed
@drgrice1 drgrice1 deleted the achievement-scoring-speed-up branch May 20, 2025 20:20
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

Successfully merging this pull request may close these issues.

3 participants