using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies
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
| INFO Requests: 175, requests per second: 1, mean latency: 8.6 ms | |
| *for 1 minute 60 transactions | |
| error-rate: 0.00%, | |
| apdex-score: 1.00 (Excellent), | |
| response-time: 1.99ms, | |
| throughput: 60 rpm avg., | |
| INFO Requests: 1742, requests per second: 10, mean latency: 7.8 ms | |
| *for 1 minute 600 transactions | |
| error-rate: 0.00%, |
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
| Measure RPS, latency, and error rate for each type of request. | |
| GET/games/:gameid | |
| (amount of requests made total) INFO Requests: 185, requests per second: 1, mean latency: 5.1 ms | |
| *for 1 minute 25.6 transactions | |
| error-rate: 0.00%, | |
| apdex-score: 1.00 (Excellent), | |
| response-time: 2.81ms, | |
| throughput: 25.6 rpm avg., |
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
| steam=# COPY games FROM '/Users/Jasmine/hrr38/SDC/5DC-Ja5mine-5ervice/mockDataGamesLoops.csv' DELIMITER ',' CSV HEADER; | |
| COPY 10000000 | |
| Time: 73307.438 ms (01:13.307) | |
| steam=# select SELECT * FROM games WHERE id=9999999; | |
| ERROR: syntax error at or near "SELECT" | |
| LINE 1: select SELECT * FROM games WHERE id=9999999; | |
| ^ | |
| Time: 5.742 ms | |
| steam=# SELECT * FROM games WHERE game_id=9999999; | |
| game_id | game_name | game_type | original_price | reviews | os |
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
| steam=# SELECT * FROM games WHERE game_id=9999999; | |
| game_id | game_name | game_type | original_price | reviews | os | |
| ---------+---------------------+-----------+----------------+------------------+--------- | |
| 9999999 | Licensed emulation | alien | 47.00 | mostly negative | linux | |
| (1 row) | |
| Time: 40.276 ms |