Skip to content

Commit

Permalink
less expensive operation
Browse files Browse the repository at this point in the history
  • Loading branch information
hkirat committed Oct 29, 2023
1 parent f5f9c99 commit b376993
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion part-5-multi-core-eb/src/express-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ app.get('/', (req, res) => {
function expensiveOperation() {
const startTime = new Date().getTime();
let ctr = 0;
for (let i = 0; i < 5000000000; i++) {
for (let i = 0; i < 500000; i++) {
ctr++;
}
console.log(`Request ${requestNumber} Took total ${new Date().getTime() - startTime} ms`)
Expand Down

0 comments on commit b376993

Please sign in to comment.