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

DEV-6326 Allow custom functions to be benchmarked #239

Merged
merged 6 commits into from Apr 23, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
@@ -1,5 +1,6 @@
/coverage
/node_modules
/performance/lib
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please verify whether this folder will not be included in a publish

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check it with an npm build and npm pack could not see signs of the benchmark tooling in either.

/test/assets/QT3TS
/test/assets/XQUTS
/test/assets/runnablePerformanceTestNames.csv
Expand Down
170 changes: 167 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion package.json
Expand Up @@ -18,7 +18,9 @@
"coverage": "nyc report --reporter=text-lcov | coveralls",
"integrationtests": "ts-mocha --require test/testhook.js \"test/specs/parsing/**/*.ts\" -p test/tsconfig.json",
"prepare": "npm run build",
"performance": "ts-node -P test/tsconfig.json -r tsconfig-paths/register test/qt3testsBenchmark.ts",
"performance": "ts-node -P ./performance/tsconfig.json ./performance/runBenchmarks.ts",
"performance-server": "rimraf ./performance/lib && tsc -p ./performance/web.tsconfig.json && concurrently -k -p \"[{name}]\" -n \"tsc,rollup,server\" \"tsc -p ./performance/web.tsconfig.json -w\" \"rollup -c ./performance/rollup.config.js -w \" \"ts-node -P ./performance/tsconfig.json ./performance/server.ts\"",
"qt3performance": "ts-node -P test/tsconfig.json -r tsconfig-paths/register test/qt3testsBenchmark.ts",
"qt3tests": "ts-mocha --paths -p test/tsconfig.json test/qt3tests.ts",
"qt3testsxqueryx": "ts-mocha --paths -p test/tsconfig.json test/qt3testsXQueryX.ts",
"start": "concurrently -k -p \"[{name}]\" -n \"TypeScript,Node\" \"tsc -p ./demo/tsconfig.json -w\" \"ts-node ./demo/server.ts --dist\"",
Expand Down Expand Up @@ -61,9 +63,12 @@
"homepage": "https://github.com/FontoXML/fontoxpath",
"devDependencies": {
"@microsoft/api-extractor": "^7.7.10",
"@rollup/plugin-commonjs": "^11.1.0",
"@rollup/plugin-node-resolve": "^7.1.3",
"@tscc/tscc": "^0.4.8",
"@types/benchmark": "^1.0.31",
"@types/chai": "^4.2.11",
"@types/glob": "^7.1.1",
"@types/mocha": "^7.0.2",
"@types/node": "^13.5.0",
"@types/node-static": "^0.7.3",
Expand All @@ -74,11 +79,13 @@
"coveralls": "^3.0.11",
"cross-env": "^7.0.2",
"fs-extra": "^9.0.0",
"glob": "^7.1.6",
"mocha": "^7.1.1",
"node-static": "^0.7.11",
"nyc": "^15.0.0",
"pegjs": "^0.10.0",
"prettier": "^2.0.2",
"rollup": "^2.6.1",
"sinon": "^9.0.1",
"sinon-chai": "^3.5.0",
"slimdom": "^2.3.2",
Expand Down