Skip to content

Commit

Permalink
readme mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars-Erik Roald committed Jul 14, 2024
1 parent 86dd870 commit f602585
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 16 deletions.
29 changes: 15 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,20 @@ jobs:
# ports:
# - 1433:1433

# mysql:
# image: mysql:8.0.31
# env:
# MYSQL_DATABASE: test
# MYSQL_USER: test
# MYSQL_PASSWORD: test
# MYSQL_ROOT_PASSWORD: test
# ports:
# - 3306:3306
# options: >-
# --health-cmd="mysqladmin ping"
# --health-interval=10s
# --health-timeout=5s
# --health-retries=3
mysql:
image: mysql:8.0.31
env:
MYSQL_DATABASE: test
MYSQL_USER: test
MYSQL_PASSWORD: test
MYSQL_ROOT_PASSWORD: test
ports:
- 3306:3306
options: >-
--health-cmd="mysqladmin ping"
--health-interval=10s
--health-timeout=5s
--health-retries=3
steps:
- uses: actions/checkout@v4
Expand All @@ -62,5 +62,6 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: sed -i 's/localhost:15432/postgres/g' .env
- run: sed -i 's/localhost:13306/mysql/g' .env
- run: npm install
- run: npm run benchmark
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ The CPU had 4 physical cores, and each core supports 2 threads, making a total o
| Drizzle| 31.847 s | 26.013 s |
| Prisma | 49.419 s | 33.730 s |
| Mikro | 2:05.736 min | 1:58.967 min|

**MySQL**
| | Pool size = 1 | Pool size = 10 |
|--------|---------------|----------------|
| Orange | 16.925 s | 18.858 s |
| Drizzle| 7:26.233 min | 7:31.768 min |
| Prisma | 46.560 s | 32.646 s |
| Mikro | 1:42.455 min | 1:43.959 min|
## Steps to Run

The github action will always run remotely on push.
Expand Down
3 changes: 1 addition & 2 deletions src/orange/benchmark-pg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ async function getRowsWithRelations() {
},
customer: true,
employee: true,
// }).then(JSON.stringify);
}).then((x) => console.dir(x, {depth: Infinity}));
}).then(JSON.stringify);
promises.push(p);
}
await Promise.all(promises);
Expand Down

0 comments on commit f602585

Please sign in to comment.