Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jvisker committed Nov 1, 2023
1 parent 5cfc415 commit 07f73c7
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,14 @@ app.get('/', async (req, res) => {
res.status(500).send('Error reading table or S3')
}
})
function mySlowFunction(baseNumber) {
console.time('mySlowFunction');
let result = 0;
function mySlowFunction (baseNumber) {
console.time('mySlowFunction')
let result = 0
for (let i = Math.pow(baseNumber, 7); i >= 0; i--) {
result += Math.atan(i) * Math.tan(i);
result += Math.atan(i) * Math.tan(i)
}
console.timeEnd('mySlowFunction');
console.timeEnd('mySlowFunction')
return result
}
app.get('/cpu/:complexity', async (req, res) => {
try {
Expand Down

0 comments on commit 07f73c7

Please sign in to comment.