This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Program that shows performance degradation of graphQL when resolver returns a promise. | |
* See Book.author() resolver below. | |
* | |
* Usage: | |
* (1) run graphQL query with synchronous resolver | |
* node gql-test limit=100000 async=0 | |
* (2) run graphQL query with asynchronous resolver | |
* node gql-test limit=100000 async=1 | |
* Sample results: |