performance-scripts
Requirements
- Digital Ocean CLI is installed and set up. An API Token can be created here.
- The SSH Key
prisma_digital_oceanis in your~/.sshfolder. This can be found in 1Password.
Usage
Benchmarking Locally
- Run
yarn start-server <connector>to start a Prisma server (localhost:4466) with a corresponding database. - Run
yarn reset-server <nodecount>to deploy the schema for the performance test service, reset the data and import the test data. Node count must match the name of the import files insetup_scripts/prisma-service/import_data. - Run
yarn bench-server <connector> <test>to run the benchmarks againstlocalhost:4466. The argumenttestis optional. If provided it runs this test only, otherwise all tests are performed.
Benchmarking on a Droplet
Run yarn create-benchmark-droplet to boot a droplet that automatically starts a server with the given connector and version. Then the test service is set up and test data is imported. Afterwards all benchmarks are performed. The droplet then deletes itself.
Generating Test Data
yarn
# adjust scripts/bin.ts
prisma reset -f && yarn fill
Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
