HashSlap-Summer-of-Code / HashSlap-Summer-of-Code/cipher-vault

Build Cipher Performance Benchmark in JavaScript

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
enhancement hacktoberfest help wanted HSSOC Intermediate
Dominant language
JavaScript
Stars
0
Forks
7
PR merge metrics
No merged PRs in 30d

Description

**Description:**
Build a performance benchmarking script in JavaScript to measure the encryption speed of Caesar vs Vigenère ciphers using the `performance.now()` API. This will help contributors analyze algorithm efficiency.

**Expected Tasks:**
- In the `js-ciphers/` folder, create a new script `benchmark.js`
- Import or include both Caesar and Vigenère functions
- Measure execution time for:
- Short input (e.g., 50 characters)
- Medium input (e.g., 500 characters)
- Large input (e.g., 5000 characters)
- Log results to the console or save in a `benchmark_results.json` file
- Add a section to `README.md` under “Benchmarks” describing the setup

**Stretch Tasks:**
- Visualize results with a basic HTML + chart (e.g., using Chart.js)
- Add an average of 10 trials per test case for better accuracy

Contributor guide

Open the contributing guide

Research direction

Start by reading the existing Caesar and Vigenère functions in the js-ciphers/ folder, then run the new benchmark.js script with performance.now(). Verify that results are reported for 50-, 500-, and 5000-character inputs, and update README.md with a Benchmarks section describing the setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
performance, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.