Skip to content

Re: Bounty #272 β€” Reimplement analyze.sh in JS (graphql-benchmarks archived)Β #3551

Description

@shehanrao12-cpu

Context

Issue #272 on graphql-benchmarks has a πŸ’Ž $50 bounty for reimplementing analyze.sh in JS. However, the graphql-benchmarks repo was archived, making it impossible to submit a PR or comment on the issue.

The previous PR (#352) by @daveads has been in draft since July 2024 and was never completed.

My Solution

I have a complete, tested JS reimplementation ready in my fork:
πŸ‘‰ https://github.com/shehanrao12-cpu/graphql-benchmarks/tree/chore/reimplement-analyze-sh-in-js

Files:

  • analyze.js β€” Full JS port of all analyze.sh logic
  • package.json β€” With canvas dependency (replaces gnuplot)
  • run_analyze_script.sh β€” Updated to use node analyze.js
  • .github/workflows/bench.yml β€” Added Node.js setup step

Test Results:

13 test cases, all passing βœ…

Improvements over shell:

  • Removes gnuplot and perl system dependencies
  • Cross-platform compatible
  • Testable with unit tests
  • Produces identical output

Request

Could you either:

  1. Unarchive the graphql-benchmarks repo so I can submit a proper PR, or
  2. Accept the bounty submission via my fork

Thank you! πŸ™

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions