princejs 1.7.2 → 1.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Readme.md +15 -2
- package/dist/create.js +1 -1
- package/package.json +1 -1
package/Readme.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# 👑 **PrinceJS**
|
|
2
2
|
|
|
3
|
-
### ⚡ Ultra-clean, modern & minimal Bun web framework
|
|
3
|
+
### ⚡ Ultra-clean, modern & minimal Bun web framework. Among the top three in performance.
|
|
4
4
|
|
|
5
5
|

|
|
6
6
|

|
|
@@ -86,6 +86,19 @@ import { cron, openapi } from "princejs/scheduler";
|
|
|
86
86
|
|
|
87
87
|
---
|
|
88
88
|
|
|
89
|
+
## Performance With Oha (oha -c 100 -z 30s)
|
|
90
|
+
|
|
91
|
+
| Framework | Req/s | Total |
|
|
92
|
+
|-----------|----------------|--------|
|
|
93
|
+
| Elysia | 25,312 req/s | 759k |
|
|
94
|
+
| Hono | 22,124 req/s | 664k |
|
|
95
|
+
| PrinceJS | 21,748 req/s | 653k |
|
|
96
|
+
| Express | 9,325 req/s | 280k |
|
|
97
|
+
|
|
98
|
+
### Among the top three
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
89
102
|
## 🎯 Full Example
|
|
90
103
|
|
|
91
104
|
```ts
|
package/dist/create.js
CHANGED
|
@@ -7,7 +7,7 @@ import { join } from "path";
|
|
|
7
7
|
var name = Bun.argv[2];
|
|
8
8
|
if (!name) {
|
|
9
9
|
console.error("\u274C Error: Please provide a project name");
|
|
10
|
-
console.log("Usage:
|
|
10
|
+
console.log("Usage: bun create-princejs <project-name>");
|
|
11
11
|
process.exit(1);
|
|
12
12
|
}
|
|
13
13
|
if (existsSync(name)) {
|