@@ -5,14 +5,10 @@ import { createInstances } from "./impl";
55const instances = createInstances ( ) ;
66
77const fullTests = process . argv . includes ( "--full" ) ;
8- const noMaxTests = process . argv . includes ( "--no-max" ) ;
98
109describe ( "param routes" , ( ) => {
1110 const nonStaticRequests = requests . filter ( ( r ) => r . data . includes ( ":" ) ) ;
1211 for ( const [ name , _find ] of instances ) {
13- if ( noMaxTests && name === "maximum" ) {
14- continue ;
15- }
1612 bench ( name , ( ) => {
1713 for ( const request of nonStaticRequests ) {
1814 _find ( request . method , request . path ) ;
@@ -24,9 +20,6 @@ describe("param routes", () => {
2420if ( fullTests ) {
2521 describe ( "param and static routes" , ( ) => {
2622 for ( const [ name , _find ] of instances ) {
27- if ( noMaxTests && name === "maximum" ) {
28- continue ;
29- }
3023 bench ( name , ( ) => {
3124 for ( const request of requests ) {
3225 _find ( request . method , request . path ) ;
@@ -38,9 +31,6 @@ if (fullTests) {
3831 for ( const request of requests ) {
3932 describe ( `[${ request . method } ] ${ request . path } ` , ( ) => {
4033 for ( const [ name , _find ] of instances ) {
41- if ( noMaxTests && name === "maximum" ) {
42- continue ;
43- }
4434 bench ( name , ( ) => {
4535 _find ( request . method , request . path ) ;
4636 } ) ;
@@ -51,6 +41,8 @@ if (fullTests) {
5141
5242await run ( ) ;
5343
54- if ( ! fullTests ) {
55- console . log ( "\nRun with --full to run all tests" ) ;
56- }
44+ console . log ( `
45+ Tips:
46+ - Run with --full to run all tests
47+ - Run with --max to compare with maximum possible performance
48+ ` ) ;
0 commit comments