diff options
| author | Shulhan <ms@kilabit.info> | 2026-02-13 08:23:39 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2026-02-13 08:23:39 +0700 |
| commit | 7b9ace96a713ae5271f28eca8ae346c7e1042c21 (patch) | |
| tree | 8265871ae21dcc14b4c8f05af9b74ff131aa4605 | |
| parent | e5a9e1e5314aa869549abdd92cf28ff2f360d080 (diff) | |
| download | pakakeh.go-7b9ace96a713ae5271f28eca8ae346c7e1042c21.tar.xz | |
lib/websocket: remove generated HTML files
The generated HTML files is outdated and it is not referenced
anywhere.
| -rw-r--r-- | lib/websocket/AUTOBAHN.adoc | 3 | ||||
| -rw-r--r-- | lib/websocket/AUTOBAHN.html | 301 | ||||
| -rw-r--r-- | lib/websocket/BENCHMARK.html | 181 | ||||
| -rw-r--r-- | lib/websocket/BENCHMARK.md | 3 | ||||
| -rw-r--r-- | lib/websocket/examples/README.adoc | 3 | ||||
| -rw-r--r-- | lib/websocket/examples/README.html | 96 |
6 files changed, 3 insertions, 584 deletions
diff --git a/lib/websocket/AUTOBAHN.adoc b/lib/websocket/AUTOBAHN.adoc index b45c5bea..c86ac4d3 100644 --- a/lib/websocket/AUTOBAHN.adoc +++ b/lib/websocket/AUTOBAHN.adoc @@ -1,6 +1,5 @@ -// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info> -// // SPDX-License-Identifier: BSD-3-Clause +// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info> = Autobahn WebSocket Testsuite Status Report diff --git a/lib/websocket/AUTOBAHN.html b/lib/websocket/AUTOBAHN.html deleted file mode 100644 index f90e47aa..00000000 --- a/lib/websocket/AUTOBAHN.html +++ /dev/null @@ -1,301 +0,0 @@ -<!-- -SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info> - -SPDX-License-Identifier: BSD-3-Clause ---> - -<!DOCTYPE html> -<html> - <head> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> - <meta name="viewport" content="width=device-width, initial-scale=1" /> - <meta name="theme-color" content="#375EAB" /> - - <title>Autobahn WebSocket Testsuite Status Report</title> - </head> - <body> - <div class="topbar"> - <div class="container"> - <div class="top-heading"> - <a href="/">github.com/shuLhan/share</a> - </div> - <div class="menu"> - <a href="https://godoc.org/github.com/shuLhan/share">GoDoc</a> - </div> - <div class="menu"> - <a href="/CHANGELOG.html">Changelog</a> - </div> - </div> - </div> - - <div class="page"> - <div class="container"> - <h1>Autobahn WebSocket Testsuite Status Report</h1> - <div id="preamble"> -<div class="sectionbody"> -<div class="paragraph"> -<p>This document track the status report from autobahn testsuite [1].</p> -</div> -</div> -</div> -<div class="sect1"> -<h2 id="_setting_up_autobahn_testsuite">Setting up Autobahn Testsuite</h2> -<div class="sectionbody"> -<div class="paragraph"> -<p>The following instruction describe how to setup autobahn testsuite on this -package,</p> -</div> -<div class="listingblock"> -<div class="content"> -<pre>$ cd testdata -$ virtualenv . -$ source ./bin/activate -$ pip install autobahntestsuite</pre> -</div> -</div> -</div> -</div> -<div class="sect1"> -<h2 id="_testing_server">Testing Server</h2> -<div class="sectionbody"> -<div class="paragraph"> -<p>First, run our WebSocket test server,</p> -</div> -<div class="listingblock"> -<div class="content"> -<pre>$ cd testdata/server -$ go build . -$ ./server</pre> -</div> -</div> -<div class="paragraph"> -<p>Second, open new terminal and run the autobahn test server,</p> -</div> -<div class="listingblock"> -<div class="content"> -<pre>$ cd testdata/server -$ source ../bin/activate -$ wstest -m fuzzingclient</pre> -</div> -</div> -<div class="paragraph"> -<p>Wait for the test to complete. After that, we can view the reports on -"reports/index.html".</p> -</div> -<div class="sect2"> -<h3 id="_server_reports_status">Server Reports Status</h3> -<div class="paragraph"> -<p>Summary of autobahn testsuite reports for server,</p> -</div> -<div class="listingblock"> -<div class="content"> -<pre>1. Framing (14/16) -1.1. Text Messages (8/8) -1.2. Binary Messages (8/8) -2. Pings/Pongs (11/11) -3. Reserved Bits (7/7) -4. Opcodes (10/10) -4.1. Non-Control Opcodes (5/5) -4.2. Control Opcodes (5/5) -5. Fragmentation (20/20) -6. UTF-8 Handling (145/145) -6.1. Valid UTF-8 with zero payload fragments (3/3) -6.2. Valid UTF-8 unfragmented, fragmented on code-points and within -code-points (4/4) -6.3. Invalid UTF-8 differently fragmented (2/2) -6.4. Fail-fast on invalid UTF-8 (4/4) -6.5. Some valid UTF-8 sequences (5/5) -6.6. All prefixes of a valid UTF-8 string that contains multi-byte code -points (11/11) -6.7. First possible sequence of a certain length (4/4) -6.8. First possible sequence length 5/6 (invalid codepoints) (2/2) -6.9. Last possible sequence of a certain length (4/4) -6.10. Last possible sequence length 4/5/6 (invalid codepoints) (3/3) -6.11. Other boundary conditions (5/5) -6.12. Unexpected continuation bytes (8/8) -6.13. Lonely start characters (5/5) -6.14. Sequences with last continuation byte missing (10/10) -6.15. Concatenation of incomplete sequences (1/1) -6.16. Impossible bytes (3/3) -6.17. Examples of an overlong ASCII character (5/5) -6.18. Maximum overlong sequences (5/5) -6.19. Overlong representation of the NUL character (5/5) -6.20. Single UTF-16 surrogates (7/7) -6.21. Paired UTF-16 surrogates (8/8) -6.22. Non-character code points (valid UTF-8) (34/34) -6.23. Unicode specials (i.e. replacement char) (7/7) -7. Close Handling (22/37) -7.1. Basic close behavior (fuzzer initiated) (6/6) -7.2. - -7.3. Close frame structure: payload length (fuzzer initiated) (6/6) -7.4. - -7.5. Close frame structure: payload value (fuzzer initiated) (1/1) -7.6. - -7.7. Close frame structure: valid close codes (fuzzer initiated) (13/13) -7.8. - -7.9. Close frame structure: invalid close codes (fuzzer initiated) (9/9) -7.10. - -7.11. - -7.12. - -7.13. Informational close information (fuzzer initiated) (2/2) -8. (-/-) -9. Limits/Performance (54/54) -9.1. Text Message (increasing size) (6/6) -9.2. Binary Message (increasing size) (6/6) -9.3. Fragmented Text Message (fixed size, increasing fragment size) (9/9) -9.4. Fragmented Binary Message (fixed size, increasing fragment size) (9/9) -9.5. Text Message (fixed size, increasing chop size) (6/6) -9.6. Binary Text Message (fixed size, increasing chop size) (6/6) -9.7. Text Message Roundtrip Time (fixed number, increasing size) (6/6) -9.8. Binary Message Roundtrip Time (fixed number, increasing size) (6/6) -10. Misc (1/1) -10.1. Auto-Fragmentation (1/1) -11. (-/-) -12. WebSocket Compression (different payloads) (-/-) -13. WebSocket Compression (different parameters) (-/-) -(excluded)</pre> -</div> -</div> -<div class="paragraph"> -<p>Total test cases : 16 + 11 + 7 + 10 + 20 + 145 + 37 + 0 + 54 + 1 + 0 + 0 + 0 = 301 -Total success cases: 16 + 11 + 7 + 10 + 20 + 145 + 37 + 0 + 54 + 1 + 0 + 0 + 0 = 301</p> -</div> -<div class="paragraph"> -<p>Success Rate = 100%</p> -</div> -</div> -</div> -</div> -<div class="sect1"> -<h2 id="_testing_client">Testing Client</h2> -<div class="sectionbody"> -<div class="paragraph"> -<p>First, run the autobahn test server,</p> -</div> -<div class="listingblock"> -<div class="content"> -<pre>$ cd testdata/client -$ source ../bin/activate -$ wstest -m fuzzingserver</pre> -</div> -</div> -<div class="paragraph"> -<p>Second, run our WebSocket test client,</p> -</div> -<div class="listingblock"> -<div class="content"> -<pre>$ cd testdata/client -$ go build . -$ ./client</pre> -</div> -</div> -<div class="paragraph"> -<p>Wait for the test to complete. After that, open the browser at -<a href="http://127.0.0.1:8080/test_browser.html , and click on "Update Reports" class="bare">http://127.0.0.1:8080/test_browser.html , and click on "Update Reports</a> -(Manual)" to update client reports at "testdata/client/reports/index.html".</p> -</div> -<div class="sect2"> -<h3 id="_client_reports_status">Client Reports Status</h3> -<div class="paragraph"> -<p>Summary of autobahn testsuite reports for client,</p> -</div> -<div class="listingblock"> -<div class="content"> -<pre>1. Framing (14/16) -1.1. Text Messages (8/8) -1.2. Binary Messages (8/8) -2. Pings/Pongs (11/11) -3. Reserved Bits (7/7) -4. Opcodes (10/10) -4.1. Non-Control Opcodes (5/5) -4.2. Control Opcodes (5/5) -5. Fragmentation (20/20) -6. UTF-8 Handling (145/145) -6.1. Valid UTF-8 with zero payload fragments (3/3) -6.2. Valid UTF-8 unfragmented, fragmented on code-points and within -code-points (4/4) -6.3. Invalid UTF-8 differently fragmented (2/2) -6.4. Fail-fast on invalid UTF-8 (4/4) -6.5. Some valid UTF-8 sequences (5/5) -6.6. All prefixes of a valid UTF-8 string that contains multi-byte code -points (11/11) -6.7. First possible sequence of a certain length (4/4) -6.8. First possible sequence length 5/6 (invalid codepoints) (2/2) -6.9. Last possible sequence of a certain length (4/4) -6.10. Last possible sequence length 4/5/6 (invalid codepoints) (3/3) -6.11. Other boundary conditions (5/5) -6.12. Unexpected continuation bytes (8/8) -6.13. Lonely start characters (5/5) -6.14. Sequences with last continuation byte missing (10/10) -6.15. Concatenation of incomplete sequences (1/1) -6.16. Impossible bytes (3/3) -6.17. Examples of an overlong ASCII character (5/5) -6.18. Maximum overlong sequences (5/5) -6.19. Overlong representation of the NUL character (5/5) -6.20. Single UTF-16 surrogates (7/7) -6.21. Paired UTF-16 surrogates (8/8) -6.22. Non-character code points (valid UTF-8) (34/34) -6.23. Unicode specials (i.e. replacement char) (7/7) -7. Close Handling (22/37) -7.1. Basic close behavior (fuzzer initiated) (6/6) -7.2. - -7.3. Close frame structure: payload length (fuzzer initiated) (6/6) -7.4. - -7.5. Close frame structure: payload value (fuzzer initiated) (1/1) -7.6. - -7.7. Close frame structure: valid close codes (fuzzer initiated) (13/13) -7.8. - -7.9. Close frame structure: invalid close codes (fuzzer initiated) (9/9) -7.10. - -7.11. - -7.12. - -7.13. Informational close information (fuzzer initiated) (2/2) -8. (-/-) -9. Limits/Performance (54/54) -9.1. Text Message (increasing size) (6/6) -9.2. Binary Message (increasing size) (6/6) -9.3. Fragmented Text Message (fixed size, increasing fragment size) (9/9) -9.4. Fragmented Binary Message (fixed size, increasing fragment size) (9/9) -9.5. Text Message (fixed size, increasing chop size) (6/6) -9.6. Binary Text Message (fixed size, increasing chop size) (6/6) -9.7. Text Message Roundtrip Time (fixed number, increasing size) (6/6) -9.8. Binary Message Roundtrip Time (fixed number, increasing size) (6/6) -10. Misc (1/1) -10.1. Auto-Fragmentation (1/1) -11. (-/-) -12. WebSocket Compression (different payloads) (-/-) -13. WebSocket Compression (different parameters) (-/-) -(excluded)</pre> -</div> -</div> -<div class="paragraph"> -<p>Total test cases : 16 + 11 + 7 + 10 + 20 + 145 + 37 + 0 + 54 + 1 + 0 + 0 + 0 = 301 -Total success cases: 16 + 11 + 7 + 10 + 20 + 145 + 37 + 0 + 54 + 1 + 0 + 0 + 0 = 301</p> -</div> -<div class="paragraph"> -<p>Success Rate = 100%</p> -</div> -</div> -</div> -</div> -<div class="sect1"> -<h2 id="_reference">Reference</h2> -<div class="sectionbody"> -<div class="paragraph"> -<p>[1] <a href="https://github.com/crossbario/autobahn-testsuite" class="bare">https://github.com/crossbario/autobahn-testsuite</a></p> -</div> -</div> -</div> - </div> - - </div> - - - <div class="footer"> - Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved. - <br /> - Use of this source code is governed by a BSD-style license that can be - found in the <a href="/LICENSE">LICENSE</a> file. - </div> - </body> -</html> diff --git a/lib/websocket/BENCHMARK.html b/lib/websocket/BENCHMARK.html deleted file mode 100644 index 960c1a74..00000000 --- a/lib/websocket/BENCHMARK.html +++ /dev/null @@ -1,181 +0,0 @@ -<!-- -SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info> - -SPDX-License-Identifier: BSD-3-Clause ---> - -<!DOCTYPE html> -<html> - <head> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> - <meta name="viewport" content="width=device-width, initial-scale=1" /> - <meta name="theme-color" content="#375EAB" /> - - <title></title> - </head> - <body> - <div class="topbar"> - <div class="container"> - <div class="top-heading"> - <a href="/">github.com/shuLhan/share</a> - </div> - <div class="menu"> - <a href="https://godoc.org/github.com/shuLhan/share">GoDoc</a> - </div> - <div class="menu"> - <a href="/CHANGELOG.html">Changelog</a> - </div> - </div> - </div> - - <div class="page"> - <div class="container"> - <h1></h1> - <p>This note document a benchmark between gobwas vs our websocket library.</p> -<h1>github.com/gobwas/ws@v0.1.0</h1> -<h2>Go v1.10.3</h2> -<pre><code>goos: linux -goarch: amd64 -pkg: github.com/gobwas/ws -BenchmarkUpgrader/base-8 5000000 377 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/lowercase-8 5000000 380 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/uppercase-8 5000000 394 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/subproto-8 3000000 529 ns/op 1 B/op 1 allocs/op -BenchmarkUpgrader/subproto_comma-8 3000000 453 ns/op 1 B/op 1 allocs/op -BenchmarkUpgrader/#00-8 1000000 1824 ns/op 1354 B/op 4 allocs/op -BenchmarkUpgrader/bad_http_method-8 10000000 143 ns/op 3 B/op 1 allocs/op -BenchmarkUpgrader/bad_http_proto-8 10000000 135 ns/op 3 B/op 1 allocs/op -BenchmarkUpgrader/bad_host-8 10000000 224 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_upgrade-8 10000000 215 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_upgrade#01-8 10000000 235 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_upgrade#02-8 10000000 229 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_connection-8 10000000 216 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_connection#01-8 10000000 175 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_sec_version_x-8 10000000 216 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_sec_version-8 5000000 237 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_sec_key-8 5000000 379 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_sec_key#01-8 5000000 382 ns/op 0 B/op 0 allocs/op -PASS -ok github.com/gobwas/ws 58.827s -</code></pre> -<h2>Go version devel +d6a27e8edc</h2> -<pre><code>goos: linux -goarch: amd64 -pkg: github.com/gobwas/ws -BenchmarkUpgrader/base-8 5000000 378 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/lowercase-8 5000000 374 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/uppercase-8 5000000 398 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/subproto-8 3000000 533 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/subproto_comma-8 3000000 449 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/#00-8 1000000 1653 ns/op 1354 B/op 4 allocs/op -BenchmarkUpgrader/bad_http_method-8 10000000 142 ns/op 3 B/op 1 allocs/op -BenchmarkUpgrader/bad_http_proto-8 10000000 138 ns/op 3 B/op 1 allocs/op -BenchmarkUpgrader/bad_host-8 10000000 219 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_upgrade-8 10000000 217 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_upgrade#01-8 5000000 233 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_upgrade#02-8 5000000 227 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_connection-8 10000000 215 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_connection#01-8 10000000 176 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_sec_version_x-8 10000000 217 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_sec_version-8 5000000 266 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_sec_key-8 5000000 398 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_sec_key#01-8 5000000 391 ns/op 0 B/op 0 allocs/op -PASS -ok github.com/gobwas/ws 57.334s -</code></pre> -<h1>github.com/shuLhan/share/lib/websocket</h1> -<h2>Go v1.10.3</h2> -<pre><code>goos: linux -goarch: amd64 -pkg: github.com/shuLhan/share/lib/websocket -BenchmarkUpgrader/base-8 5000000 339 ns/op 176 B/op 1 allocs/op -BenchmarkUpgrader/lowercase-8 5000000 358 ns/op 176 B/op 1 allocs/op -BenchmarkUpgrader/uppercase-8 5000000 352 ns/op 176 B/op 1 allocs/op -BenchmarkUpgrader/subproto-8 10000000 172 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/subproto_comma-8 3000000 389 ns/op 176 B/op 1 allocs/op -BenchmarkUpgrader/#00-8 10000000 174 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_http_method-8 100000000 23.8 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_http_proto-8 50000000 29.3 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_host-8 100000000 23.1 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_upgrade-8 100000000 23.2 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_upgrade#01-8 3000000 440 ns/op 453 B/op 6 allocs/op -BenchmarkUpgrader/bad_upgrade#02-8 10000000 167 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_connection-8 50000000 24.4 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_connection#01-8 20000000 108 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_sec_version_x-8 50000000 24.2 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_sec_version-8 10000000 138 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_sec_key-8 5000000 343 ns/op 176 B/op 1 allocs/op -BenchmarkUpgrader/bad_sec_key#01-8 5000000 369 ns/op 176 B/op 1 allocs/op -PASS -ok github.com/shuLhan/share/lib/websocket 50.192s -</code></pre> -<h2>Go v1.12</h2> -<pre><code>websocket version: 8dec8c9 -Benchmark date : Thu 7 Mar 22:09:17 WIB 2019 - -goos: linux -goarch: amd64 -pkg: github.com/shuLhan/share/lib/websocket -BenchmarkUpgrader/base-8 10000000 165 ns/op 32 B/op 1 allocs/op -BenchmarkUpgrader/lowercase-8 10000000 165 ns/op 32 B/op 1 allocs/op -BenchmarkUpgrader/uppercase-8 10000000 163 ns/op 32 B/op 1 allocs/op -BenchmarkUpgrader/subproto-8 10000000 133 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/subproto_comma-8 10000000 192 ns/op 32 B/op 1 allocs/op -BenchmarkUpgrader/#00-8 10000000 144 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_http_method-8 50000000 25.4 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_http_proto-8 50000000 30.9 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_host-8 50000000 24.2 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_upgrade-8 50000000 24.3 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_upgrade#01-8 5000000 381 ns/op 453 B/op 6 allocs/op -BenchmarkUpgrader/bad_upgrade#02-8 10000000 133 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_connection-8 50000000 24.4 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_connection#01-8 20000000 91.8 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_sec_version_x-8 50000000 24.4 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_sec_version-8 20000000 112 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_sec_key-8 10000000 165 ns/op 32 B/op 1 allocs/op -BenchmarkUpgrader/bad_sec_key#01-8 10000000 166 ns/op 32 B/op 1 allocs/op -PASS -ok github.com/shuLhan/share/lib/websocket 49.379s -</code></pre> -<h2>Go version devel +05b3db24 (>1.12)</h2> -<pre><code>websocket version: 8dec8c9 -Benchmark date : Thu 7 Mar 22:09:17 WIB 2019 - -goos: linux -goarch: amd64 -pkg: github.com/shuLhan/share/lib/websocket -BenchmarkUpgrader/base-8 10000000 156 ns/op 32 B/op 1 allocs/op -BenchmarkUpgrader/lowercase-8 10000000 160 ns/op 32 B/op 1 allocs/op -BenchmarkUpgrader/uppercase-8 10000000 153 ns/op 32 B/op 1 allocs/op -BenchmarkUpgrader/subproto-8 10000000 137 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/subproto_comma-8 10000000 181 ns/op 32 B/op 1 allocs/op -BenchmarkUpgrader/#00-8 10000000 143 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_http_method-8 50000000 25.0 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_http_proto-8 50000000 31.6 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_host-8 50000000 24.6 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_upgrade-8 50000000 24.5 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_upgrade#01-8 5000000 372 ns/op 453 B/op 6 allocs/op -BenchmarkUpgrader/bad_upgrade#02-8 10000000 133 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_connection-8 100000000 23.4 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_connection#01-8 20000000 92.7 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_sec_version_x-8 100000000 23.3 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_sec_version-8 20000000 113 ns/op 0 B/op 0 allocs/op -BenchmarkUpgrader/bad_sec_key-8 10000000 154 ns/op 32 B/op 1 allocs/op -BenchmarkUpgrader/bad_sec_key#01-8 10000000 157 ns/op 32 B/op 1 allocs/op -PASS -ok github.com/shuLhan/share/lib/websocket 52.285s -</code></pre> - - </div> - - </div> - - - <div class="footer"> - Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved. - <br /> - Use of this source code is governed by a BSD-style license that can be - found in the <a href="/LICENSE">LICENSE</a> file. - </div> - </body> -</html> diff --git a/lib/websocket/BENCHMARK.md b/lib/websocket/BENCHMARK.md index 0b6c4ee2..5f6609b5 100644 --- a/lib/websocket/BENCHMARK.md +++ b/lib/websocket/BENCHMARK.md @@ -1,7 +1,6 @@ <!-- -SPDX-FileCopyrightText: 2018 M. Shulhan <ms@kilabit.info> - SPDX-License-Identifier: BSD-3-Clause +SPDX-FileCopyrightText: 2018 M. Shulhan <ms@kilabit.info> --> This note document a benchmark between gobwas vs our websocket library. diff --git a/lib/websocket/examples/README.adoc b/lib/websocket/examples/README.adoc index e50f2931..651ac9df 100644 --- a/lib/websocket/examples/README.adoc +++ b/lib/websocket/examples/README.adoc @@ -1,6 +1,5 @@ -// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info> -// // SPDX-License-Identifier: BSD-3-Clause +// SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info> == WebSocket examples diff --git a/lib/websocket/examples/README.html b/lib/websocket/examples/README.html deleted file mode 100644 index 88dcc3ba..00000000 --- a/lib/websocket/examples/README.html +++ /dev/null @@ -1,96 +0,0 @@ -<!-- -SPDX-FileCopyrightText: 2019 M. Shulhan <ms@kilabit.info> - -SPDX-License-Identifier: BSD-3-Clause ---> - -<!DOCTYPE html> -<html> - <head> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> - <meta name="viewport" content="width=device-width, initial-scale=1" /> - <meta name="theme-color" content="#375EAB" /> - - <title></title> - </head> - <body> - <div class="topbar"> - <div class="container"> - <div class="top-heading"> - <a href="/">github.com/shuLhan/share</a> - </div> - <div class="menu"> - <a href="https://godoc.org/github.com/shuLhan/share">GoDoc</a> - </div> - <div class="menu"> - <a href="/CHANGELOG.html">Changelog</a> - </div> - </div> - </div> - - <div class="page"> - <div class="container"> - <h1></h1> - <div class="sect1"> -<h2 id="_websocket_examples">WebSocket examples</h2> -<div class="sectionbody"> -<div class="paragraph"> -<p>This package contains an example of chat server and client written using -WebSocket.</p> -</div> -<div class="paragraph"> -<p>To run the WebSocket server, go to directory "cmd/server" and execute,</p> -</div> -<div class="listingblock"> -<div class="content"> -<pre>$ go run .</pre> -</div> -</div> -<div class="paragraph"> -<p>There are three known user in the server: "Groot", "Thanos", and "Hulk"; all -of them are represented by ID 1, 2, and 3; in order.</p> -</div> -<div class="paragraph"> -<p>The client example is in directory "cmd/client", go to that directory and -connect to the server as user "Groot" by executing</p> -</div> -<div class="listingblock"> -<div class="content"> -<pre>$ go run . 1</pre> -</div> -</div> -<div class="paragraph"> -<p>or as user "Thanos",</p> -</div> -<div class="listingblock"> -<div class="content"> -<pre>$ go run . 2</pre> -</div> -</div> -<div class="paragraph"> -<p>or as user "Hulk",</p> -</div> -<div class="listingblock"> -<div class="content"> -<pre>$ go run . 2</pre> -</div> -</div> -<div class="paragraph"> -<p>Run the server and then two or three clients, and start chatting with each -others.</p> -</div> -</div> -</div> - </div> - - </div> - - - <div class="footer"> - Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved. - <br /> - Use of this source code is governed by a BSD-style license that can be - found in the <a href="/LICENSE">LICENSE</a> file. - </div> - </body> -</html> |
