@@ -43,39 +43,39 @@ const PROJECT_TEMPLATES = {
4343 advanced : {
4444 configOptions : {
4545 iterations : 1000 ,
46- outputDir : './benchmark-results ' ,
47- pattern : 'benchmarks /**/*.bench.{js,ts}' ,
46+ outputDir : '.modestbench ' ,
47+ pattern : 'bench /**/*.bench.{js,ts}' ,
4848 reporters : [ 'human' , 'json' ] ,
4949 time : 10000 ,
5050 warmup : 50 ,
5151 } ,
5252 description : 'Feature-rich setup with multiple reporters and configuration' ,
53- directories : [ 'benchmarks ' , 'benchmark-results ' ] ,
53+ directories : [ 'bench ' , '.modestbench ' ] ,
5454 name : 'Advanced Project' ,
5555 } ,
5656 basic : {
5757 configOptions : {
5858 iterations : 100 ,
59- pattern : 'benchmarks /**/*.bench.{js,ts}' ,
59+ pattern : 'bench /**/*.bench.{js,ts}' ,
6060 reporters : [ 'human' ] ,
6161 time : 5000 ,
6262 } ,
6363 description : 'Simple benchmark setup for small projects' ,
64- directories : [ 'benchmarks ' ] ,
64+ directories : [ 'bench ' ] ,
6565 name : 'Basic Project' ,
6666 } ,
6767 library : {
6868 configOptions : {
6969 bail : false ,
7070 iterations : 5000 ,
71- outputDir : './benchmark-results ' ,
72- pattern : 'benchmarks /**/*.bench.{js,ts}' ,
71+ outputDir : '.modestbench ' ,
72+ pattern : 'bench /**/*.bench.{js,ts}' ,
7373 reporters : [ 'human' , 'json' ] ,
7474 time : 15000 ,
7575 warmup : 100 ,
7676 } ,
7777 description : 'Optimized for library performance testing' ,
78- directories : [ 'benchmarks ' , 'benchmarks /suites' , 'benchmark-results ' ] ,
78+ directories : [ 'bench ' , 'bench /suites' , '.modestbench ' ] ,
7979 name : 'Library Project' ,
8080 } ,
8181} as const ;
@@ -316,7 +316,7 @@ export const handleInitCommand = async (
316316 console . log ( ' 1. Run example benchmarks: modestbench run' ) ;
317317 } else {
318318 console . log (
319- ' 1. Create your first benchmark file in the benchmarks / directory' ,
319+ ' 1. Create your first benchmark file in the bench / directory' ,
320320 ) ;
321321 }
322322 console . log ( ' 2. Customize configuration in your config file' ) ;
@@ -385,7 +385,7 @@ modestbench run
385385
386386Run specific benchmarks:
387387\`\`\`bash
388- modestbench run "benchmarks /array-*.bench.js"
388+ modestbench run "bench /array-*.bench.js"
389389\`\`\`
390390
391391View benchmark history:
@@ -399,7 +399,7 @@ See \`modestbench.config.*\` for benchmark configuration options.
399399
400400## Writing Benchmarks
401401
402- Create new benchmark files in the \`benchmarks /\` directory. See the examples for the expected format.
402+ Create new benchmark files in the \`bench /\` directory. See the examples for the expected format.
403403` ;
404404
405405 try {
@@ -549,7 +549,7 @@ const createDirectories = async (
549549 * Create example benchmark files
550550 */
551551const createExampleBenchmarks = async ( cwd : string ) : Promise < void > => {
552- const benchmarksDir = resolve ( cwd , 'benchmarks ' ) ;
552+ const benchmarksDir = resolve ( cwd , 'bench ' ) ;
553553
554554 for ( const [ name , example ] of Object . entries ( EXAMPLE_BENCHMARKS ) ) {
555555 const filePath = join ( benchmarksDir , example . filename ) ;
0 commit comments