1. 20 1月, 2021 1 次提交
  2. 14 1月, 2021 1 次提交
  3. 29 12月, 2020 2 次提交
  4. 19 11月, 2020 1 次提交
  5. 29 10月, 2020 1 次提交
  6. 22 10月, 2020 1 次提交
  7. 15 10月, 2020 1 次提交
    • B
      labels: Reduce allocated memory and latency of Hash method; Added tests. (#8025) · 9981b3f3
      Bartlomiej Plotka 提交于
      * labels: Reduce allocated memory by Hash method in edge cases; Added tests.
      
      Old:
      /tmp/___BenchmarkLabels_Hash_in_github_com_prometheus_prometheus_pkg_labels -test.v -test.bench ^\QBenchmarkLabels_Hash\E$ -test.run ^$
      goos: linux
      goarch: amd64
      pkg: github.com/prometheus/prometheus/pkg/labels
      BenchmarkLabels_Hash
      BenchmarkLabels_Hash/typical_labels_under_1KB
      BenchmarkLabels_Hash/typical_labels_under_1KB-12         	 5366161	       259 ns/op	       0 B/op	       0 allocs/op
      BenchmarkLabels_Hash/bigger_labels_over_1KB
      BenchmarkLabels_Hash/bigger_labels_over_1KB-12           	 1700371	       767 ns/op	    2048 B/op	       1 allocs/op
      BenchmarkLabels_Hash/extremely_large_label_value_10MB
      BenchmarkLabels_Hash/extremely_large_label_value_10MB-12 	     356	   3743115 ns/op	10523442 B/op	       1 allocs/op
      PASS
      
      New:
      /tmp/___BenchmarkLabels_Hash_in_github_com_prometheus_prometheus_pkg_labels -test.v -test.bench ^\QBenchmarkLabels_Hash\E$ -test.run ^$
      goos: linux
      goarch: amd64
      pkg: github.com/prometheus/prometheus/pkg/labels
      BenchmarkLabels_Hash
      BenchmarkLabels_Hash/typical_labels_under_1KB
      BenchmarkLabels_Hash/typical_labels_under_1KB-12         	 4758883	       259 ns/op	       0 B/op	       0 allocs/op
      BenchmarkLabels_Hash/bigger_labels_over_1KB
      BenchmarkLabels_Hash/bigger_labels_over_1KB-12           	 3324492	       357 ns/op	      80 B/op	       1 allocs/op
      BenchmarkLabels_Hash/extremely_large_label_value_10MB
      BenchmarkLabels_Hash/extremely_large_label_value_10MB-12 	    1087	   1083949 ns/op	    9734 B/op	       1 allocs/op
      PASS
      
      Process finished with exit code 0
      Signed-off-by: NBartlomiej Plotka <bwplotka@gmail.com>
      
      * Addressed Kemal's comment.
      Signed-off-by: NBartlomiej Plotka <bwplotka@gmail.com>
      
      * Moved to v2 xxhash for improvements.
      
      New:
      
      /tmp/___BenchmarkLabels_Hash_in_github_com_prometheus_prometheus_pkg_labels -test.v -test.bench ^\QBenchmarkLabels_Hash\E$ -test.run ^$ -test.benchtime 10s
      goos: linux
      goarch: amd64
      pkg: github.com/prometheus/prometheus/pkg/labels
      BenchmarkLabels_Hash
      BenchmarkLabels_Hash/typical_labels_under_1KB
      BenchmarkLabels_Hash/typical_labels_under_1KB-12         	53447894	       221 ns/op	       0 B/op	       0 allocs/op
      BenchmarkLabels_Hash/bigger_labels_over_1KB
      BenchmarkLabels_Hash/bigger_labels_over_1KB-12           	42341754	       326 ns/op	       0 B/op	       0 allocs/op
      BenchmarkLabels_Hash/extremely_large_label_value_10MB
      BenchmarkLabels_Hash/extremely_large_label_value_10MB-12 	   10000	   1248546 ns/op	       0 B/op	       0 allocs/op
      PASS
      Signed-off-by: NBartlomiej Plotka <bwplotka@gmail.com>
      
      * Removed old xxhash package.
      Signed-off-by: NBartlomiej Plotka <bwplotka@gmail.com>
      
      * Pined minor version.
      Signed-off-by: NBartlomiej Plotka <bwplotka@gmail.com>
      9981b3f3
  8. 08 10月, 2020 1 次提交
  9. 06 10月, 2020 2 次提交
  10. 23 9月, 2020 1 次提交
  11. 19 9月, 2020 1 次提交
  12. 15 9月, 2020 1 次提交
  13. 24 8月, 2020 1 次提交
  14. 21 8月, 2020 1 次提交
  15. 20 8月, 2020 1 次提交
  16. 05 8月, 2020 1 次提交
  17. 27 7月, 2020 1 次提交
  18. 21 7月, 2020 2 次提交
  19. 11 7月, 2020 1 次提交
    • B
      Update dependencies · ddefee52
      beorn7 提交于
      Note that by just running `make update-go-deps`, the K8s Go client was
      set to `k8s.io/client-go v11.0.0+incompatible`. However, that doesn't
      play well with `k8s.io/apimachinery v0.18.5`. I the manually changed
      the Go client line to `k8s.io/client-go v0.18.5`, which made
      everything work. I guess Go Modules got confused by the ginormous
      v11.0.0 version tag. Or it is a problem that pulling k8s.io/client-go
      with git results in a rather old repo without the v0.18.5
      tag. github.com/kubernetes/client-go has all the right tags. I
      actually don't understand how Go Modules still correctly figures out
      the source from the `k8s.io/client-go v0.18.5` line.
      
      If one of the reviewers could enlighten me, I'd much appreciate it.
      Signed-off-by: Nbeorn7 <beorn@grafana.com>
      ddefee52
  20. 07 7月, 2020 1 次提交
  21. 03 7月, 2020 1 次提交
  22. 26 6月, 2020 1 次提交
  23. 18 6月, 2020 1 次提交
  24. 04 6月, 2020 1 次提交
  25. 01 6月, 2020 1 次提交
  26. 14 5月, 2020 1 次提交
  27. 08 5月, 2020 1 次提交
  28. 30 4月, 2020 1 次提交
  29. 24 4月, 2020 2 次提交
  30. 23 4月, 2020 3 次提交
  31. 26 3月, 2020 1 次提交
    • B
      testutil: Enriched Equals with diff on error. (#7053) · 104a1313
      Bartlomiej Plotka 提交于
      ## Example:
      
      ```
      
                  exp: []chunks.Meta{chunks.Meta{Ref:0x0, Chunk:(*chunkenc.XORChunk)(0xc00000e160), MinTime:1, MaxTime:2}, chunks.Meta{Ref:0x0, Chunk:(*chunkenc.XORChunk)(0xc00000e180), MinTime:3, MaxTime:3}, chunks.Meta{Ref:0x0, Chunk:(*chunkenc.XORChunk)(0xc00000e1a0), MinTime:5, MaxTime:5}, chunks.Meta{Ref:0x0, Chunk:(*chunkenc.XORChunk)(0xc00000e1c0), MinTime:24, MaxTime:6}}
      
                  got: []chunks.Meta{chunks.Meta{Ref:0x0, Chunk:(*chunkenc.XORChunk)(0xc00000e280), MinTime:1, MaxTime:2}, chunks.Meta{Ref:0x0, Chunk:(*chunkenc.XORChunk)(0xc00000e2a0), MinTime:3, MaxTime:3}, chunks.Meta{Ref:0x0, Chunk:(*chunkenc.XORChunk)(0xc00000e220), MinTime:5, MaxTime:5}, chunks.Meta{Ref:0x0, Chunk:(*chunkenc.XORChunk)(0xc00000e240), MinTime:6, MaxTime:6}}
      
      ```
      
      Now:
      
      ```
      
                  exp: []chunks.Meta{chunks.Meta{Ref:0x0, Chunk:(*chunkenc.XORChunk)(0xc00000e740), MinTime:1, MaxTime:2}, chunks.Meta{Ref:0x0, Chunk:(*chunkenc.XORChunk)(0xc00000e760), MinTime:3, MaxTime:3}, chunks.Meta{Ref:0x0, Chunk:(*chunkenc.XORChunk)(0xc00000e780), MinTime:5, MaxTime:5}, chunks.Meta{Ref:0x0, Chunk:(*chunkenc.XORChunk)(0xc00000e7a0), MinTime:24, MaxTime:6}}
      
                  got: []chunks.Meta{chunks.Meta{Ref:0x0, Chunk:(*chunkenc.XORChunk)(0xc00000e800), MinTime:1, MaxTime:2}, chunks.Meta{Ref:0x0, Chunk:(*chunkenc.XORChunk)(0xc00000e820), MinTime:3, MaxTime:3}, chunks.Meta{Ref:0x0, Chunk:(*chunkenc.XORChunk)(0xc00000e860), MinTime:5, MaxTime:5}, chunks.Meta{Ref:0x0, Chunk:(*chunkenc.XORChunk)(0xc00000e880), MinTime:6, MaxTime:6}}
      
                  Diff:
                  --- Expected
                  +++ Actual
                  @@ -50,3 +50,3 @@
                     }),
                  -  MinTime: (int64) 24,
                  +  MinTime: (int64) 6,
                     MaxTime: (int64) 6
      
      
      ```
      Signed-off-by: NBartlomiej Plotka <bwplotka@gmail.com>
      104a1313
  32. 15 3月, 2020 1 次提交
  33. 09 3月, 2020 1 次提交
  34. 25 2月, 2020 1 次提交