File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 186186 same "printed page" as the copyright notice for easier
187187 identification within third-party archives.
188188
189- Copyright [yyyy] [name of copyright owner]
189+ Copyright 2022 AkiaCode
190190
191191 Licensed under the Apache License, Version 2.0 (the "License");
192192 you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change 11module github.com/akiacode/pyorha
22
3- go 1.17
3+ go 1.19
44
55require github.com/klauspost/compress v1.15.9
66
Original file line number Diff line number Diff line change 1+ # Pyorha
2+
3+ Pyorha (별하) is static serving tooling
4+
5+ # Usage
6+ * Next.js
7+ ``` sh
8+ $npx next build
9+ $npx next export
10+ $pyorha build ./out out
11+ $pyorha serve out
12+ ```
13+
14+ # Build
15+ ``` sh
16+ $go build ./cmd/pyorha
17+ ```
18+
19+ # Requirement
20+ * go1.19
21+ * gcc
22+
23+ # Performance
24+
25+ ``` sh
26+ $gobench -u http://localhost:3000 -k=true -c 500 -t 10
27+ ```
28+
29+ * next.js + Pyorha static serving (Hello World website)
30+ ```
31+ Requests: 2329810 hits
32+ Successful requests: 2329810 hits
33+ Network failed: 0 hits
34+ Bad requests failed (!2xx): 0 hits
35+ Successful requests rate: 3222 hits/sec
36+ Read throughput: 14133681 bytes/sec
37+ Write throughput: 277191 bytes/sec
38+ Test time: 723 sec
39+ ```
40+
41+ * next.js + echo static serving (Hello World website)
42+ ```
43+ Requests: 1826186 hits
44+ Successful requests: 1826186 hits
45+ Network failed: 0 hits
46+ Bad requests failed (!2xx): 0 hits
47+ Successful requests rate: 2536 hits/sec
48+ Read throughput: 3748754 bytes/sec
49+ Write throughput: 218187 bytes/sec
50+ Test time: 720 sec
51+ ```
52+ ### File Size
53+
54+ * next.js + Pyorha static serving (Hello World website)
55+ > 128KB
56+ * next.js + echo static serving (Hello World website)
57+ > 375KB
You can’t perform that action at this time.
0 commit comments