Skip to content

Commit

Permalink
mod: add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
AkiaCode committed Sep 10, 2022
1 parent 15439a8 commit 50911b4
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/akiacode/pyorha

go 1.17
go 1.19

require github.com/klauspost/compress v1.15.9

Expand Down
57 changes: 57 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 50911b4

Please sign in to comment.