Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
briangu committed Jan 25, 2024
1 parent 65d3c23 commit fdf52d8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions examples/stats_logging/stats_client.kg
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
.comment("****")

A simple fake stats generator client that tries to send 100k stats as fast as possible.

The server displays writes per second, so if multiple clients are running it will be a naive benchmark.

On a fast machine, each client can hit around 50k inserts per second.

****

.py("util.py")

cli::.cli(8888)

:" create a dictionary mapped sensor udpate "
dsensor::{[d];d:::{};d,"t",now();d,"n",,"temp";d,"v",(.rn()*100)}

:" create a raw sensor update "
:" create a raw sensor update in the columns: t,n,v "
sensor::{now(),1,(.rn()*100)}

:" send a batch of sensor updates "
Expand Down

0 comments on commit fdf52d8

Please sign in to comment.