Skip to content

Commit

Permalink
chore: Release v0.19.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lo5 committed Oct 29, 2021
1 parent 9a89e1e commit 50791e9
Show file tree
Hide file tree
Showing 8 changed files with 109 additions and 3 deletions.
4 changes: 4 additions & 0 deletions attack.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
POST http://localhost:8000
Authorization: Basic Zm9vOmJhcg==
Content-Type: application/json
@increment.json
1 change: 1 addition & 0 deletions increment.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"increment":true}
92 changes: 92 additions & 0 deletions perf.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
Perf testing notes

H2O_WAVE_APP_ACCESS_KEY_ID=foo \
H2O_WAVE_APP_ACCESS_KEY_SECRET=bar \
wave run --no-reload examples.counter_unicast

----------------------------------------------------------------------------------------------------
Baseline: 50rps, 30s

$ cat attack.txt | vegeta attack -duration=30s | tee results.bin | vegeta report
Requests [total, rate, throughput] 1500, 50.03, 50.03
Duration [total, attack, wait] 29.982134872s, 29.980576236s, 1.558636ms
Latencies [mean, 50, 95, 99, max] 923.275µs, 890.324µs, 1.248683ms, 1.786492ms, 5.758645ms
Bytes In [total, mean] 0, 0.00
Bytes Out [total, mean] 28500, 19.00
Success [ratio] 100.00%
Status Codes [code:count] 200:1500
Error Set:

$ cat attack.txt | vegeta attack -duration=30s | tee results.bin | vegeta report
Requests [total, rate, throughput] 1500, 50.03, 50.03
Duration [total, attack, wait] 29.980969278s, 29.98021853s, 750.748µs
Latencies [mean, 50, 95, 99, max] 971.274µs, 920.005µs, 1.378814ms, 1.718148ms, 6.412542ms
Bytes In [total, mean] 0, 0.00
Bytes Out [total, mean] 28500, 19.00
Success [ratio] 100.00%
Status Codes [code:count] 200:1500
Error Set:

$ cat attack.txt | vegeta attack -duration=30s | tee results.bin | vegeta report
Requests [total, rate, throughput] 1500, 50.03, 50.03
Duration [total, attack, wait] 29.981506648s, 29.980566198s, 940.45µs
Latencies [mean, 50, 95, 99, max] 950.011µs, 898.614µs, 1.376998ms, 1.739228ms, 7.575071ms
Bytes In [total, mean] 0, 0.00
Bytes Out [total, mean] 28500, 19.00
Success [ratio] 100.00%
Status Codes [code:count] 200:1500
Error Set:


----------------------------------------------------------------------------------------------------
Baseline: 500rps, 30s

$ cat attack.txt | vegeta attack -duration=30s -rate=500 | tee results.bin | vegeta report
Requests [total, rate, throughput] 15000, 500.03, 500.01
Duration [total, attack, wait] 29.999543772s, 29.998173312s, 1.37046ms
Latencies [mean, 50, 95, 99, max] 43.646089ms, 5.01603ms, 270.952433ms, 463.433687ms, 580.247216ms
Bytes In [total, mean] 0, 0.00
Bytes Out [total, mean] 285000, 19.00
Success [ratio] 100.00%
Status Codes [code:count] 200:15000
Error Set:

Fulfillment:
First request
2021/10/25 09:03:45 * /None {"d":[{"k":"example items 0 button label","v":"Count=9"}]}
Last request
2021/10/25 09:06:16 * /None {"d":[{"k":"example items 0 button label","v":"Count=14930"}]}
Elapsed time
02:31

----------------------------------------------------------------------------------------------------
With HTTP Basic Auth disabled

$ cat attack.txt | vegeta attack -duration=30s -rate=500 | tee results.bin | vegeta report
Requests [total, rate, throughput] 15000, 500.03, 500.01
Duration [total, attack, wait] 29.999317765s, 29.998388779s, 928.986µs
Latencies [mean, 50, 95, 99, max] 1.893424ms, 855.601µs, 6.830168ms, 9.922392ms, 34.859879ms
Bytes In [total, mean] 0, 0.00
Bytes Out [total, mean] 285000, 19.00
Success [ratio] 100.00%
Status Codes [code:count] 200:15000
Error Set:

Fulfillment:
First request
2021/10/25 10:30:21 * /None {"d":[{"k":"example items 0 button label","v":"Count=2"}]}
Last request
2021/10/25 10:30:51 * /None {"d":[{"k":"example items 0 button label","v":"Count=15000"}]}
Elapsed time
00:30

----------------------------------------------------------------------------------------------------
cat attack.txt | vegeta attack -duration=120s -rate=500 | tee results.bin | vegeta report
Requests [total, rate, throughput] 60000, 500.01, 461.67
Duration [total, attack, wait] 2m0s, 2m0s, 173.227ms
Latencies [min, mean, 50, 90, 95, 99, max] 25.608µs, 113.477ms, 23.006ms, 261.914ms, 361.195ms, 2.403s, 3.235s
Bytes In [total, mean] 0, 0.00
Bytes Out [total, mean] 1220538, 20.34
Success [ratio] 92.47%
Status Codes [code:count] 0:4521 200:55479

2 changes: 1 addition & 1 deletion py/h2o_wave/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
from .types import *
from .test import cypress, Cypress

__version__ = '0.18.0'
__version__ = '0.19.0'
__author__ = 'Prithvi Prabhu'

__pdoc__ = {
Expand Down
2 changes: 1 addition & 1 deletion py/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

setuptools.setup(
name='h2o_wave',
version=os.getenv('VERSION', '0.18.0'),
version=os.getenv('VERSION', '0.19.0'),
author='Prithvi Prabhu',
author_email='[email protected]',
description='Python driver for H2O Wave Realtime Apps',
Expand Down
2 changes: 1 addition & 1 deletion r/DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: h2owave
Title: R Driver for H2O Wave Realtime Apps Framework
Version: 0.17.0
Version: 0.19.0
Date: 2021-03-24
Authors@R:c(
person(given = "Ashrith",
Expand Down
Binary file added results.bin
Binary file not shown.
9 changes: 9 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
make build-server

./waved \
-oidc-client-id wave \
-oidc-client-secret 78a895e1-af9d-46c4-a6b0-116e7644c054 \
-oidc-redirect-url http://localhost:10101/_auth/callback \
-oidc-provider-url http://localhost:8080/auth/realms/master \
-oidc-end-session-url http://localhost:8080/auth/realms/master/protocol/openid-connect/logout \
-web-dir ./ui/build

0 comments on commit 50791e9

Please sign in to comment.