From 50911b43529684bb8b8c29727b6e57f687fc8792 Mon Sep 17 00:00:00 2001 From: akiacode Date: Sun, 11 Sep 2022 02:07:44 +0900 Subject: [PATCH] mod: add readme --- LICENSE | 2 +- go.mod | 2 +- readme.md | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 59 insertions(+), 2 deletions(-) create mode 100644 readme.md diff --git a/LICENSE b/LICENSE index 261eeb9..410981c 100644 --- a/LICENSE +++ b/LICENSE @@ -186,7 +186,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright [yyyy] [name of copyright owner] + Copyright 2022 AkiaCode Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/go.mod b/go.mod index 0e73f54..e126009 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/akiacode/pyorha -go 1.17 +go 1.19 require github.com/klauspost/compress v1.15.9 diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..af2c541 --- /dev/null +++ b/readme.md @@ -0,0 +1,57 @@ +# 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 \ No newline at end of file