Skip to content

Commit

Permalink
[TMP] Reduce a number of loop for Web env
Browse files Browse the repository at this point in the history
  • Loading branch information
whitphx committed Aug 14, 2023
1 parent 8e6de37 commit ffb4cac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/suite/workspace-configuration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ suite("WorkspaceConfigCache", () => {
test("it caches the config section so that accessing the values is faster than the normal getConfiguration()", () => {
const timeElapsedWithCache = (() => {
const t0 = Date.now();
for (let i = 0; i < 1000000; ++i) {
for (let i = 0; i < 1000; ++i) {
WorkspaceConfigCache.get("editor.find");
}
const t1 = Date.now();
Expand All @@ -26,7 +26,7 @@ suite("WorkspaceConfigCache", () => {

const timeElapsedWithoutCache = (() => {
const t0 = Date.now();
for (let i = 0; i < 1000000; ++i) {
for (let i = 0; i < 1000; ++i) {
vscode.workspace.getConfiguration("editor.find");
}
const t1 = Date.now();
Expand Down

0 comments on commit ffb4cac

Please sign in to comment.