I hereby claim:
- I am derekcollison on github.
- I am derekcollison (https://keybase.io/derekcollison) on keybase.
- I have a public key whose fingerprint is E20F 8432 C2ED 2407 82BC 7BCE 0688 7D71 4F24 9E24
To claim this, I am signing this object:
| Verifying myself: My Bitcoin username is +derekcollison. https://onename.io/derekcollison |
I hereby claim:
To claim this, I am signing this object:
| benchmark old ns/op new ns/op delta | |
| Benchmark___PubNo_Payload 205 203 -0.98% | |
| Benchmark___Pub8b_Payload 256 205 -19.92% | |
| Benchmark__Pub32b_Payload 339 232 -31.56% | |
| Benchmark_Pub256B_Payload 1082 319 -70.52% | |
| Benchmark___Pub1K_Payload 4026 846 -78.99% | |
| Benchmark___Pub4K_Payload 16623 5978 -64.04% | |
| Benchmark___Pub8K_Payload 38252 19850 -48.11% | |
| Benchmark__________PubSub 476 433 -9.03% | |
| Benchmark__PubSubTwoConns 431 428 -0.70% |
| ~/Development/go/src/github.com/nats-io/gnatsd/test> GOMAXPROCS=3 go test -run="-" -bench="." | |
| PASS | |
| Benchmark___PubNo_Payload-3 10000000 194 ns/op 56.48 MB/s | |
| Benchmark___Pub8b_Payload-3 10000000 186 ns/op 101.77 MB/s | |
| Benchmark__Pub32b_Payload-3 10000000 208 ns/op 210.76 MB/s | |
| Benchmark_Pub256B_Payload-3 5000000 289 ns/op 929.40 MB/s | |
| Benchmark___Pub1K_Payload-3 2000000 630 ns/op 1645.63 MB/s | |
| Benchmark___Pub4K_Payload-3 500000 3255 ns/op 1262.32 MB/s | |
| Benchmark___Pub8K_Payload-3 200000 6903 ns/op 1188.59 MB/s | |
| Benchmark__________PubSub-3 3000000 408 ns/op |
| telnet demo.nats.io 4222 | |
| Connected to demo.nats.io. | |
| Escape character is '^]'. | |
| INFO {"server_id":"ad29ea9cbb16f2865c177bbd4db446ca","version":"0.6.8","go":"go1.5.1","host":"0.0.0.0","port":4222,"auth_required":false,"ssl_required":false,"max_payload":1048576} | |
| SUB foo 1 | |
| +OK | |
| PUB foo 6 | |
| hello! | |
| +OK | |
| MSG foo 1 6 |
| ~/Development/go/src/github.com/nats-io/nats/examples> ./nats-bench -np 16 -n 100000 foo ok | |
| Starting benchmark | |
| msgs=16X100000, pubs=16, subs=0 | |
| ################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################# |
| #!/usr/bin/env node | |
| /* jslint node: true */ | |
| 'use strict'; | |
| var nats = require ('../lib/nats.js').connect('nats://demo.nats.io:4222'); | |
| var cuid = require('cuid'); | |
| nats.on('error', function(e) { | |
| console.log('Error [' + nats.options.url + ']: ' + e); |
| package main | |
| import ( | |
| "crypto/rand" | |
| "encoding/hex" | |
| "fmt" | |
| "io" | |
| "log" | |
| "runtime" |
| package main | |
| import ( | |
| "fmt" | |
| "sort" | |
| "sync" | |
| "time" | |
| "github.com/nats-io/go-nats" | |
| ) |
I hereby claim:
To claim this, I am signing this object: