Git Product home page Git Product logo

webapp-bench's Introduction

EdgeDB Benchmark Toolbench

This is a collection of benchmarks intended to compare EdgeDB against different databases and ORMs.

Installation and Use

  1. Make a Python 3.8 venv (to be compatible with synth).

  2. Install dependencies from requirements.txt.

  3. Install EdgeDB, MongoDB, PostgreSQL 13, Golang toolchain.

  4. Install NodeJS (at least v14.16.0) and TypeScript toolchains.

  5. Install docker and docker-compose (needed for Hasura).

  6. Install Prisma via npm install prisma -D.

  7. Install synth. (https://www.getsynth.com)

    Note: Synth v0.5.0 replaces python faker with fake-rs, and loses support for some generators used by this project. The previous supported version, Synth v0.4.7, can be installed from https://github.com/getsynth/synth/releases/tag/v0.4.7

  8. Create the benchmark data via $ make new-dataset.

  9. Load data via $ make load.

  10. Compile Go benchmarks: $ make go

  11. Compile TypeScript benchmarks: $ make ts

  12. Run benchmarks via bench.py, for example:

python bench.py --html out.html --concurrency 10 -D 10 all

Dataset

The default dataset (100000 people, 100000 users, 500000 reviews) is included in the repository. A new dataset can be generated via $ make new-dataset.

License

Apache 2.0.

webapp-bench's People

Contributors

1st1 avatar elprans avatar fmoor avatar jaclarke avatar msullivan avatar spa5k avatar vpetrovykh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.