Skip to content

Commit

Permalink
refactor: Run faster implementation after original implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
bennycode committed Nov 30, 2021
1 parent 905c57e commit 1583ed5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/start/startBenchmark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,18 @@ new Benchmark.Suite('Technical Indicators')
cci.update(candle);
}
})
.add('DX', () => {
const dx = new DX(interval);
for (const candle of highLowCloses) {
dx.update(candle);
}
})
.add('FasterCCI', () => {
const fasterCCI = new FasterCCI(interval);
for (const candle of highLowCloses) {
fasterCCI.update(candle);
}
})
.add('DX', () => {
const dx = new DX(interval);
for (const candle of highLowCloses) {
dx.update(candle);
}
})
.add('EMA', () => {
const ema = new EMA(interval);
for (const price of prices) {
Expand Down

0 comments on commit 1583ed5

Please sign in to comment.