Periodically publish results from mCaptcha/survey. #15
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
javascript
question
rust
wontfix
bug
duplicate
enhancement
help wanted
invalid
question
renovate-bot
renovate-security
security
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: mCaptcha/survey#15
Loading…
Reference in a new issue
No description provided.
Delete branch "publish-results"
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?
Periodically publish benchmark results
Motivation
Proof-of-Work (PoW) difficulty is configurable in mCaptcha. It is important that webmasters choose difficulty factors that are effective at containing DoS attacks while also allowing the majority of legitimate visitors generate proofs.
mCaptcha/survey runs benchmark campaigns and aggregates performance statistics from its visitors. This data can guide webmasters to choosing effective PoW difficulty factors, if it is publicly available and downloadable.
Also, mCaptcha/mCaptcha will soon be able to pull benchmark results from mCaptcha/survey instances to make effective and user-friendly Proof-of-Work difficulty recommendations.
So, this patch publishes campaign results periodically.
Description
Results are published periodically. Publication period is configured by the mCaptcha/survey admin.
Results are published at
http://{instance-hostname}/download
in the following structure:Data formats
Campaign information
Each campaign will run benchmarks with a different set of PoW configurations. Therefore, the benchmarks produced by each campaign is unique and is closely tied to the campaign's PoW configuration.
The campaign metadata is published in
campaign.json
:Benchmark results
Each campaign participant gets an ephemeral user ID so that if they run the campaign multiple times, their benchmarks can be aggregated.
The campaign result includes the following data:
Difficulty 5000
, which will contain its execution times.Example:
CSV converted to markdown for convenience:
Raw CSV data:
WIP: Periodically publish results from mCaptcha/survey.to Periodically publish results from mCaptcha/survey.