HashSlap-Summer-of-Code/cipher-vault

Build Cipher Performance Benchmark in JavaScript

開放

#7 建立於 2025年6月19日

 (0 則留言) (0 個反應) (0 位負責人)JavaScript (7 個分叉)auto 404
HSSOCIntermediateenhancementhacktoberfesthelp wanted

倉庫指標

星標
 (0 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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

貢獻者指南