I hereby claim:
- I am bwplotka on github.
- I am bwplotka (https://keybase.io/bwplotka) on keybase.
- I have a public key ASBF3WaAmnBy4NO6giWMh5EvF0VTevLiRedpJYGZzb4fawo
To claim this, I am signing this object:
| /// Backend data will be used to set up a pool of HTTP connection to the specified endpoint that will be kept open. | |
| message Backend { | |
| /// name is the string identifying the backend in all other configs. | |
| string name = 1; | |
| /// balancer decides which load balancing policy to use. | |
| Balancer balancer = 2; | |
| /// security controls the TLS connection details for the backend (HTTPS). If not present, insecure HTTP mode is used. | |
| Security security = 3; |
| for _, tcase := range []struct{ | |
| }{ | |
| { | |
| }, | |
| }{ | |
| if ok := t.Run("", func(t *testing.T) { | |
| }); !ok { | |
| return |
| package store | |
| import ( | |
| "context" | |
| "io/ioutil" | |
| "os" | |
| "path/filepath" | |
| "testing" | |
| "time" |
| #!/usr/bin/env bash | |
| # Script inspired by https://github.com/paxtonhare/demo-magic | |
| # (https://github.com/paxtonhare/demo-magic/issues/15) | |
| # | |
| # Example usage in script: | |
| # #!/usr/bin/env bash | |
| # | |
| # . demo-lib.sh | |
| # |
I hereby claim:
To claim this, I am signing this object:
| package main | |
| import ( | |
| "testing" | |
| ) | |
| var sink1 = 0 | |
| func BenchmarkNotDefered(b *testing.B) { | |
| for n := 0; n < b.N; n++ { |
| package replayable | |
| import ( | |
| "bytes" | |
| "io" | |
| ) | |
| type Reader struct { | |
| wrapped io.Reader |
| #!/usr/bin/env bash | |
| set -e | |
| # Copyright (c) Bartłomiej Płotka @bwplotka | |
| # Licensed under the Apache License 2.0. | |
| # Yolo script allowing nice benchmark framework for iterative work on Go performance. | |
| # Requirements: | |
| # * Prepare worktree if you want to benchmark in background: git worktree add ../thanos_b yolo |
| // Copyright (c) The Thanos Authors. | |
| // Licensed under the Apache License 2.0. | |
| package manual | |
| import ( | |
| "context" | |
| "io/ioutil" | |
| "os" | |
| "testing" |
| // Copyright (c) The Thanos Authors. | |
| // Licensed under the Apache License 2.0. | |
| package e2e_test | |
| import ( | |
| "context" | |
| "fmt" | |
| "net" | |
| "net/http" |