https://github.com/akiacode/pyorha
A web server that runs as one small file
https://github.com/akiacode/pyorha
Last synced: 3 months ago
JSON representation
A web server that runs as one small file
- Host: GitHub
- URL: https://github.com/akiacode/pyorha
- Owner: AkiaCode
- License: apache-2.0
- Created: 2022-09-02T10:53:02.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-17T16:03:07.000Z (over 1 year ago)
- Last Synced: 2025-01-22T06:13:47.618Z (5 months ago)
- Language: Go
- Homepage:
- Size: 6.83 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Pyorha
Pyorha (별하) is static serving tooling
# Usage
* Next.js
```sh
$npx next build
$npx next export
$pyorha build ./out out
$pyorha serve out
```# Build
```sh
$go build ./cmd/pyorha
```# Requirement
* go1.19
* gcc# Performance
```sh
$gobench -u http://localhost:3000 -k=true -c 500 -t 10
```* next.js + Pyorha static serving (Hello World website)
```
Requests: 2329810 hits
Successful requests: 2329810 hits
Network failed: 0 hits
Bad requests failed (!2xx): 0 hits
Successful requests rate: 3222 hits/sec
Read throughput: 14133681 bytes/sec
Write throughput: 277191 bytes/sec
Test time: 723 sec
```* next.js + echo static serving (Hello World website)
```
Requests: 1826186 hits
Successful requests: 1826186 hits
Network failed: 0 hits
Bad requests failed (!2xx): 0 hits
Successful requests rate: 2536 hits/sec
Read throughput: 3748754 bytes/sec
Write throughput: 218187 bytes/sec
Test time: 720 sec
```
### File Size* next.js + Pyorha static serving (Hello World website)
> 128KB
* next.js + echo static serving (Hello World website)
> 375KB