This repository provides a simple benchmark comparing Neon’s Free Plan and SingleStore’s Free Shared Tier. It includes Drizzle ORM entities, a data generation tool, and a local app to run and test queries against both databases.
- Install dependencies by running the following command in the project root:
npm i
- Generate data by running the following command in the ./apps/data-generator directory:
npm run start
- Set up a Free Shared Tier workspace in SingleStore..
- Create a
.env
file in./packages/singlestore
based on the./packages/singlestore/.env.example
file. - Download the SingleStore SSL certificate and place it in the
./packages/singlestore
directory. - Push the SingleStore database schema by running the following command in the
./packages/singlestore
directory:
npm run push
- Load data into the SingleStore database by running the following command in the
./packages/singlestore
directory:
npm run data:load
- Start the SingleStore benchmark by running the following command in the
./packages/singlestore
direcotry:
npm run benchmark:start
- Set up a free workspace in Neon.
- Create a
.env
file in./packages/neon
based on the./packages/neon/.env.example
file. - Push the Neon database schema by running the following command in the
./packages/neon
directory:
npm run push
- Load data into the Neon database by running the following command in the
./packages/neon
directory:
npm run data:load
- Start the Neon benchmark by running the following command in the
./packages/neon
direcotry:
npm run benchmark:start
- Build the benchmark app by running the following command in the
./apps/benchmark
directory:
npm run build
- Start the benchmark app by running the following command in the
./apps/benchmark
directory:
npm run start
- Open http://localhost:3000 in your browser.