Determine 90th percentile and 99th percentile average on both mCaptcha/mCaptcha instances and mCaptcha/survey. #6
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
renovate-bot
renovate-security
security
wontfix
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference: mCaptcha/2023-NLnet#6
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This milestone lays the foundation for "Milestone:
Use local instance statistics to guide webmasters when configuring PoW”. The work from this PR will be used to improve the “easy mode” for installing mCaptcha0
We currently make guesstimate difficulty factors in easy mode, but with this work, we could ask questions like: "How long do you want your visitors to wait before entering site and what percentile of devices do you want to cover?"
If successful, computing percentile scores will enable us to migrate from difficulty factor based configurations, which is very unwieldy, to wait time in seconds.
mCaptcha/survey
Benchmarks with
duration
less than or equal to the requested time is retrieved and sorted in ascending order. Percentile score is computed over it. This functionality is available via an API endpoint.PR: mCaptcha/survey#20
Tests in the previous PR were failing due to unrelated reasons:
Creating a separate database for each test is provided out-of-the box in “batteries included” web frameworks. I was using hacks to get test isolation, and it finally broke for this test. This PR creates separate databases for all tests. So tests are more stable now.
Fixed in follow-up PR: mCaptcha/survey#21
mCaptcha/mCaptcha
PoW analytics records from all mCaptcha configurations on the instance with
duration
less than or equal to the requested time is retrieved and sorted in ascending order. Percentile score is computed over it. This functionality is available via an API endpoint.PR: https://github.com/mCaptcha/mCaptcha/pull/121