react-redux-benchmarks
Benchmarks React-Redux performance across versions, with configurable run length and selective benchmark execution.
What this file does
Benchmarks React-Redux performance across versions, with configurable run length and selective benchmark execution.
When to use it
- Compare React-Redux versions for performance regressions
- Measure app performance under specific benchmark scenarios
- Automate performance testing in CI pipelines
- Add custom benchmarks to track regressions over time
Assumes this stack
react-redux-benchmarks
Performance benchmark harness for React-Redux
This repo expects that you are using Yarn for package management.
Running benchmarks
yarn initialize
yarn start
After benchmarks have been initialized, you can run with simply:
yarn start
Running specific versions
To specify a single version:
REDUX=5.0.7 yarn start
To specify running against multiple versions:
REDUX=5.0.7:4.4.9 yarn start
To run a specific benchmark:
BENCHMARKS=stockticker yarn start
or specific benchmarks:
BENCHMARKS=stockticker:another yarn start
Setting run length
By default, benchmarks run for 30 seconds. To change this, use
SECONDS=10 yarn start
Adding a benchmark
Benchmarks live in the sources/ directory. Each benchmark must insert this
code into index.js:
import 'fps-emit'
In addition, a config-overrides.js must be created with these contents:
module.exports = function override(config, env) {
//do stuff with the webpack config...
console.log(`Environment: ${env}`)
if(env === "production") {
config.externals = {
"react" : "React",
"redux" : "Redux",
"react-redux" : "ReactRedux",
}
}
return config;
}
and the scripts section of package.json should be changed to:
"scripts": {
"start": "react-app-rewired start",
"build": "react-app-rewired build",
"test": "react-app-rewired --env=jsdom",
...
}
Also, index.html must be modified to include these lines:
<script type="text/javascript" src="redux.min.js"></script>
<script type="text/javascript" src="react.production.min.js"></script>
<script type="text/javascript" src="react-dom.production.min.js"></script>
<script type="text/javascript" src="react-redux.min.js"></script>
If you need to make changes to the fps-emit package, bump the version number in its package.json,
then update each benchmark to use the newest version using yarn upgrade-interactive and selecting fps-emit
for an update. Then rebuild all the benchmarks using yarn initialize
What's inside
5 sections covering setup, running, version selection, benchmark addition, and fps-emit updates, with 4 code blocks and 2 command examples.
Change this for your project
- Replace
REDUX=5.0.7with your target Redux versions - Replace
BENCHMARKS=stocktickerwith your benchmark names - Replace
sources/directory path if your benchmarks live elsewhere
Where it goes
Keep alongside your test suite. Used to define and score model evaluations.
Related Documents
AI Tools for Developers
Curates a personal reference of AI coding tools, models, and setup instructions for VS Code, Xcode, and Cursor.
IATA BCBP Standard Compliance
Documents which IATA BCBP fields and barcode formats a Swift library implements, including Version 8 gender code support.
Voice AI Leaderboards, Benchmarks, and Evaluation Gaps (Jan 2025 -- Feb 2026)
Surveys 20+ voice AI benchmarks from Jan 2025, Feb 2026, identifies evaluation gaps, and provides leaderboard data for STT, TTS, and end-to-end voice agents.
Evaluating AI Agent Systems: Metrics, Benchmarks, and Quality Assurance (2024-2026)
Surveys 2024-2026 metrics, benchmarks, and monitoring tools for evaluating AI agent systems, with recommendations for a self-improving coding agent.