Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Benchmark query builder language server performance #631

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = {
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
"prettier",
],
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
Expand All @@ -13,6 +13,14 @@ module.exports = {
// Svelte doesn't correctly compile if imports of the generated /modules
// aren't imported as 'import type' in other parts of the generated
// querybuilder, so set this option to ensure we always do that
"@typescript-eslint/consistent-type-imports": "error"
}
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-inferrable-types": "warn",
"@typescript-eslint/no-unused-vars": [
"warn",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
},
],
},
};
46 changes: 46 additions & 0 deletions packages/benchmarks/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"name": "edgedb-benchmarks",
"version": "1.0.0",
"description": "Benchmarks for EdgeDB JavaScript client libraries",
"homepage": "https://edgedb.com/docs",
"author": "EdgeDB <info@edgedb.com>",
"engines": {
"node": ">= 16.0.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/edgedb/edgedb-js.git"
},
"main": "./dist/index.node.js",
"types": "./dist/index.node.d.ts",
"license": "Apache-2.0",
"sideEffects": false,
"files": [
"/dist"
],
"devDependencies": {
"@types/jest": "^29.5.1",
"benny": "^3.7.1",
"jest": "29.5.0",
"ts-jest": "29.1.0",
"tsx": "3.12.6",
"typescript": "^5.0"
},
"scripts": {
"benchmark": "tsx src/index.ts",
"test": "echo 'No tests for benchmarks...'",
"build": "echo 'No build for benchmarks...'"
},
"bugs": {
"url": "https://github.com/edgedb/edgedb-js/issues"
},
"keywords": [],
"dependencies": {
"tinybench": "^2.5.0",
"ts-node": "^10.9.1",
"ts48": "npm:typescript@4.8.4",
"ts49": "npm:typescript@4.9.5",
"ts50": "npm:typescript@5.0.4",
"ts51": "npm:typescript@5.1.3"
}
}
5 changes: 5 additions & 0 deletions packages/benchmarks/project-fixture/dbschema/default.esdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module default {
type Person {
required name: str;
}
}
153 changes: 153 additions & 0 deletions packages/benchmarks/project-fixture/dbschema/edgeql-js/__spec__.ts

Large diffs are not rendered by default.

Loading