Add typography benchmark tests for textToContours()
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 24k
- Forks
- 3.8k
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 25
Description
Increasing access
Unsure
Most appropriate sub-area of p5.js?
- Accessibility
- Color
- Core/Environment/Rendering
- Data
- DOM
- Events
- Image
- IO
- Math
- Typography
- Utilities
- WebGL
- Build process
- Unit testing
- Internationalization
- Friendly errors
- Other (specify if possible)
Feature enhancement details
Continuing the work from #8918.
For p5.js 2.x, add an additional test suite for textToContours().
The tests cases should use the same test strings as the textToPoints() benchmarks, targeting a sampleFactor which yields the same number of points. The goal is gauge performance across the textTo___ functions.
Test coverage must include the following renderers:
- 2D
- WebGL
- WebGPU
Please add @shakeelmohamed as a reviewer to any related PRs.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing issue #8918 and the existing textToPoints() benchmark tests to find the shared test strings and renderer setup. Add the textToContours() benchmark suite for 2D, WebGL, and WebGPU, choosing sample factors that produce matching point counts, then run the benchmark tests to compare performance across the textTo___ functions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- computer-graphics, performance, testing-qa
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 62/100