docs/src/course/04-workflows/17-testing-parallel-performance.md
Let's test your parallel workflow.
Update your Mastra configuration to include your new workflow workflows:
// In src/mastra/index.ts
import { contentWorkflow, aiContentWorkflow, parallelAnalysisWorkflow } from './workflows/content-workflow'
export const mastra = new Mastra({
workflows: {
contentWorkflow,
aiContentWorkflow,
parallelAnalysisWorkflow, // Add the parallel workflow
},
// ... rest of configuration
})
You can now test this new workflow in the Playground. You will notice that it processes the three analysis steps in parallel speeding up execution time.
Use parallel execution when:
Register your parallel workflow with Mastra to use it in the playground! Next, you'll learn about conditional branching.