-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
99 lines (99 loc) · 7.61 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
"name": "orm-benchmarks",
"version": "1.0.0",
"description": "",
"type": "module",
"devDependencies": {
"@types/node": "^20.14.2",
"prisma": "^5.17.0",
"ts-node": "^10.9.2",
"tsx": "^4.15.1",
"typescript": "^5.4.5"
},
"scripts": {
"docker": "npm run start-db",
"start:mssql": "docker run -d -p 14330:1433 -e ACCEPT_EULA=Y -e MSSQL_SA_PASSWORD=P@assword123 --name my_mssql mcr.microsoft.com/mssql/server:2022-latest",
"start:mysql": "docker run -d -p 13306:3306 -e MYSQL_ROOT_PASSWORD=test -e MYSQL_DATABASE=test -e MYSQL_USER=test -e MYSQL_PASSWORD=test --name my_mssql mysql:8.0.31",
"start:pg": "docker run -d -p 15432:5432 -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=postgres --name my_pg postgres",
"stop:mssql": "docker stop my_mssql && docker rm my_mssql",
"stop:mysql": "docker stop my_mysql && docker rm my_mysql",
"stop:pg": "docker stop my_pg && docker rm my_pg",
"init": "npm run init:pg & npm run init:mysql",
"init:mssql": "cross-env POOLSIZE=1 tsx ./src/init-mssql.ts",
"init:sqlite": "cross-env POOLSIZE=1 tsx ./src/init-sqlite.ts",
"init:pg": "cross-env POOLSIZE=1 tsx ./src/init-pg.ts",
"init:mysql": "cross-env POOLSIZE=1 tsx ./src/init-mysql.ts",
"benchmark": "npm run drizzle && npm run orange && npm run prisma && npm run mikro",
"drizzle": "npm run drizzle:mysql && npm run drizzle:pg && npm run drizzle:sqlite",
"drizzle:sqlite": "npm run drizzle:pool1:sqlite && npm run drizzle:pool10:sqlite",
"drizzle:mysql": "npm run drizzle:pool1:mysql && npm run drizzle:pool10:mysql",
"drizzle:pg": "npm run drizzle:pool1:pg && npm run drizzle:pool10:pg",
"drizzle:pool1:sqlite": "npm run init:sqlite && cross-env POOLSIZE=1 tsx ./src/drizzle/benchmark-sqlite.ts",
"drizzle:pool10:sqlite": "npm run init:sqlite && cross-env POOLSIZE=10 tsx ./src/drizzle/benchmark-sqlite.ts",
"drizzle:pool1:mysql": "npm run init:mysql && cross-env POOLSIZE=1 tsx ./src/drizzle/benchmark-mysql.ts",
"drizzle:pool10:mysql": "npm run init:mysql && cross-env POOLSIZE=10 tsx ./src/drizzle/benchmark-mysql.ts",
"drizzle:pool1:pg": "npm run init:pg && cross-env POOLSIZE=1 tsx ./src/drizzle/benchmark-pg.ts",
"drizzle:pool10:pg": "npm run init:pg && cross-env POOLSIZE=10 tsx ./src/drizzle/benchmark-pg.ts",
"orange": "npm run orange:mysql && npm run orange:pg && npm run orange:sqlite",
"orange:sqlite": "npm run orange:pool1:sqlite && npm run orange:pool10:sqlite",
"orange:mssql": "npm run orange:pool1:mssql && npm run orange:pool10:mssql",
"orange:mysql": "npm run orange:pool1:mysql && npm run orange:pool10:mysql",
"orange:pg": "npm run orange:pool1:pg && npm run orange:pool10:pg",
"orange:pool1:mssql": "npm run init:mssql && cross-env POOLSIZE=1 tsx ./src/orange/benchmark-mssql.ts",
"orange:pool10:mssql": "npm run init:mssql && cross-env POOLSIZE=10 tsx ./src/orange/benchmark-mssql.ts",
"orange:pool1:sqlite": "npm run init:sqlite && cross-env POOLSIZE=1 tsx ./src/orange/benchmark-sqlite.ts",
"orange:pool10:sqlite": "npm run init:sqlite && cross-env POOLSIZE=10 tsx ./src/orange/benchmark-sqlite.ts",
"orange:pool1:mysql": "npm run init:mysql && cross-env POOLSIZE=1 tsx ./src/orange/benchmark-mysql.ts",
"orange:pool10:mysql": "npm run init:mysql && cross-env POOLSIZE=10 tsx ./src/orange/benchmark-mysql.ts",
"orange:pool1:pg": "npm run init:pg && cross-env POOLSIZE=1 tsx ./src/orange/benchmark-pg.ts",
"orange:pool10:pg": "npm run init:pg && cross-env POOLSIZE=10 tsx ./src/orange/benchmark-pg.ts",
"prisma": "npm run prisma:mysql && npm run prisma:pg && npm run prisma:sqlite",
"prisma:mssql": "npm run init:mssql && prisma generate --schema=./src/prisma/schema-mssql.prisma && cross-env POOLSIZE=1 tsx ./src/prisma/benchmark-mssql.ts && cross-env POOLSIZE=10 tsx ./src/prisma/benchmark-mssql.ts",
"prisma:sqlite": "npm run init:sqlite && prisma generate --schema=./src/prisma/schema-sqlite.prisma && cross-env POOLSIZE=1 tsx ./src/prisma/benchmark-sqlite.ts && cross-env POOLSIZE=10 tsx ./src/prisma/benchmark-sqlite.ts",
"prisma:mysql": "npm run init:mysql && prisma generate --schema=./src/prisma/schema-mysql.prisma && cross-env POOLSIZE=1 tsx ./src/prisma/benchmark-mysql.ts && cross-env POOLSIZE=10 tsx ./src/prisma/benchmark-mysql.ts",
"prisma:pg": "npm run init:pg && prisma generate --schema=./src/prisma/schema-pg.prisma && cross-env POOLSIZE=1 tsx ./src/prisma/benchmark-pg.ts && cross-env POOLSIZE=10 tsx ./src/prisma/benchmark-pg.ts",
"prisma:pool1:mssql": "npm run init:mssql && prisma generate --schema=./src/prisma/schema-mssql.prisma && cross-env POOLSIZE=1 tsx ./src/prisma/benchmark-mssql.ts",
"prisma:pool10:mssql": "npm run init:mssql && prisma generate --schema=./src/prisma/schema-mssql.prisma && cross-env POOLSIZE=10 tsx ./src/prisma/benchmark-mssql.ts",
"prisma:pool1:sqlite": "npm run init:sqlite && prisma generate --schema=./src/prisma/schema-sqlite.prisma && cross-env POOLSIZE=1 tsx ./src/prisma/benchmark-sqlite.ts",
"prisma:pool10:sqlite": "npm run init:sqlite && prisma generate --schema=./src/prisma/schema-sqlite.prisma && cross-env POOLSIZE=10 tsx ./src/prisma/benchmark-sqlite.ts",
"prisma:pool1:mysql": "npm run init:mysql && prisma generate --schema=./src/prisma/schema-mysql.prisma && cross-env POOLSIZE=1 tsx ./src/prisma/benchmark-mysql.ts",
"prisma:pool10:mysql": "npm run init:mysql && prisma generate --schema=./src/prisma/schema-mysql.prisma && cross-env POOLSIZE=10 tsx ./src/prisma/benchmark-mysql.ts",
"prisma:pool1:pg": "npm run init:pg && prisma generate --schema=./src/prisma/schema-pg.prisma && cross-env POOLSIZE=1 tsx ./src/prisma/benchmark-pg.ts",
"prisma:pool10:pg": "npm run init:pg && prisma generate --schema=./src/prisma/schema-pg.prisma && cross-env POOLSIZE=10 tsx ./src/prisma/benchmark-pg.ts",
"mikro": "npm run mikro:mysql && npm run mikro:pg && npm run mikro:sqlite && npm run mikro:mssql",
"mikro:mssql": "npm run mikro:pool1:mssql && npm run mikro:pool10:mssql",
"mikro:sqlite": "npm run mikro:pool1:sqlite && npm run mikro:pool10:sqlite",
"mikro:mysql": "npm run mikro:pool1:mysql && npm run mikro:pool10:mysql",
"mikro:pg": "npm run mikro:pool1:pg && npm run mikro:pool10:pg",
"mikro:pool1:mssql": "npm run init:mssql && cross-env POOLSIZE=1 tsx ./src/mikro/benchmark-mssql.ts",
"mikro:pool10:mssql": "npm run init:mssql && cross-env POOLSIZE=10 tsx ./src/mikro/benchmark-mssql.ts",
"mikro:pool1:sqlite": "npm run init:sqlite && cross-env POOLSIZE=1 tsx ./src/mikro/benchmark-sqlite.ts",
"mikro:pool10:sqlite": "npm run init:sqlite && cross-env POOLSIZE=10 tsx ./src/mikro/benchmark-sqlite.ts",
"mikro:pool1:mysql": "npm run init:mysql && cross-env POOLSIZE=1 tsx ./src/mikro/benchmark-mysql.ts",
"mikro:pool10:mysql": "npm run init:mysql && cross-env POOLSIZE=10 tsx ./src/mikro/benchmark-mysql.ts",
"mikro:pool1:pg": "npm run init:pg && cross-env POOLSIZE=1 tsx ./src/mikro/benchmark-pg.ts",
"mikro:pool10:pg": "npm run init:pg && cross-env POOLSIZE=10 tsx ./src/mikro/benchmark-pg.ts",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"@mikro-orm/core": "^6.3.0",
"@mikro-orm/mssql": "^6.3.0",
"@mikro-orm/mysql": "^6.3.0",
"@mikro-orm/postgresql": "^6.3.0",
"@mikro-orm/sqlite": "^6.3.0",
"@prisma/client": "^5.17.0",
"better-sqlite3": "^11.1.2",
"cross-env": "^7.0.3",
"dotenv": "^16.4.5",
"drizzle-orm": "^0.32.0",
"mysql2": "^3.10.3",
"orange-orm": "^4.4.0",
"pg": "^8.12.0",
"postgres": "^3.4.4",
"reflect-metadata": "^0.2.2",
"sqlite3": "^5.1.7",
"tedious": "^18.2.4"
}
}