-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from teknologi-umum/revert-65-refactor/eslint
Revert "style: preparing to migrate to org's eslint config"
- Loading branch information
Showing
61 changed files
with
2,479 additions
and
1,768 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
custom: ["https://saweria.co/teknologiumum"] | ||
custom: ['https://saweria.co/teknologiumum'] |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
import { Benchmark, Test } from "@aldy505/kruonis"; | ||
import { readFileSync } from "fs"; | ||
import detectLang from "../src/index"; | ||
import { Benchmark, Test } from '@aldy505/kruonis'; | ||
import { readFileSync } from 'fs'; | ||
import detectLang from '../src/index'; | ||
|
||
const benchmark = new Benchmark({ minCycles: 500 }); | ||
|
||
// https://github.com/curl/curl/blob/master/src/tool_main.c | ||
const curl = readFileSync("./curl", "utf-8"); | ||
const curl = readFileSync('./curl', 'utf-8'); | ||
// https://github.com/gin-gonic/gin/blob/master/gin.go | ||
const gin = readFileSync("./gin", "utf-8"); | ||
const gin = readFileSync('./gin', 'utf-8'); | ||
|
||
benchmark | ||
.add( | ||
new Test("curl library", () => { | ||
new Test('curl library', () => { | ||
detectLang(curl); | ||
}) | ||
}), | ||
) | ||
.add( | ||
new Test("go gin", () => { | ||
new Test('go gin', () => { | ||
detectLang(gin); | ||
}) | ||
}), | ||
); | ||
|
||
benchmark | ||
.on("onTestEnd", (benchmark: Benchmark, test: Test) => { | ||
.on('onTestEnd', (benchmark: Benchmark, test: Test) => { | ||
// eslint-disable-next-line no-console | ||
console.log("Test name: " + test.name); | ||
console.log('Test name: ' + test.name); | ||
// eslint-disable-next-line no-console | ||
console.log("Test stats: " + JSON.stringify(test.getStats(), null, 2)); | ||
console.log('Test stats: ' + JSON.stringify(test.getStats(), null, 2)); | ||
}) | ||
.run(); |
Oops, something went wrong.