Add performance tests base (#3141)

* Add basic bench tests

* dev
This commit is contained in:
Alexandr Garbuzov authored and GitHub committed 2023-10-13 11:27:04 +02:00
1 parent 0fd1ea3ce9
commit 428e97bfcc
7 files changed
+357 -1

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
import { benchmarkSuite } from "jest-bench";
import { calculateRank } from "../../src/calculateRank.js";
benchmarkSuite("calculateRank", {
["calculateRank"]: () => {
calculateRank({
all_commits: false,
commits: 1300,
prs: 1500,
issues: 4500,
reviews: 1000,
repos: 0,
stars: 600000,
followers: 50000,
});
},
});