Skip to content
Snippets Groups Projects
  1. Sep 11, 2023
  2. Aug 28, 2023
  3. Aug 25, 2023
  4. Aug 24, 2023
  5. Aug 14, 2023
  6. Jul 29, 2023
  7. Jul 28, 2023
  8. Jul 03, 2023
  9. Jun 29, 2023
    • David Fifield's avatar
      Close temporary UDPSession in TestQueuePacketConnWriteToKCP. · 58c3121c
      David Fifield authored
      With these not being closed, they were continuing to consume resources
      after the return of the test function, which was affecting the later
      BenchmarkSendQueue.
      
      Before:
      ```
      snowflake/common/turbotunnel$ go test -bench BenchmarkSendQueue -v
      === RUN   TestQueueIncomingOversize
      --- PASS: TestQueueIncomingOversize (0.00s)
      === RUN   TestWriteToOversize
      --- PASS: TestWriteToOversize (0.00s)
      === RUN   TestRestoreMTU
      --- PASS: TestRestoreMTU (0.00s)
      === RUN   TestRestoreCap
      --- PASS: TestRestoreCap (0.00s)
      === RUN   TestQueuePacketConnWriteToKCP
      --- PASS: TestQueuePacketConnWriteToKCP (1.01s)
      goos: linux
      goarch: amd64
      pkg: gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/v2/common/turbotunnel
      cpu: Intel(R) Core(TM) i5 CPU         680  @ 3.60GHz
      BenchmarkSendQueue
      BenchmarkSendQueue-4     8519708               136.0 ns/op
      PASS
      ok      gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/v2/common/turbotunnel  3.481s
      ```
      
      After:
      ```
      snowflake/common/turbotunnel$ go test -bench BenchmarkSendQueue -v
      === RUN   TestQueueIncomingOversize
      --- PASS: TestQueueIncomingOversize (0.00s)
      === RUN   TestWriteToOversize
      --- PASS: TestWriteToOversize (0.00s)
      === RUN   TestRestoreMTU
      --- PASS: TestRestoreMTU (0.00s)
      === RUN   TestRestoreCap
      --- PASS: TestRestoreCap (0.00s)
      === RUN   TestQueuePacketConnWriteToKCP
      --- PASS: TestQueuePacketConnWriteToKCP (1.02s)
      goos: linux
      goarch: amd64
      pkg: gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/v2/common/turbotunnel
      cpu: Intel(R) Core(TM) i5 CPU         680  @ 3.60GHz
      BenchmarkSendQueue
      BenchmarkSendQueue-4    11620237               105.7 ns/op
      PASS
      ok      gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/v2/common/turbotunnel  3.244s
      ```
      58c3121c
    • David Fifield's avatar
      80980a3a
  10. Jun 20, 2023
  11. Jun 19, 2023
  12. Jun 14, 2023
  13. Jun 08, 2023
  14. May 31, 2023
  15. May 29, 2023
  16. Apr 20, 2023
    • David Fifield's avatar
      Add a scanner error check to ClusterCounter.Count. · 8e5ea826
      David Fifield authored
      It was silently exiting at the "recordingStart":"2022-09-23T17:06:59.680537075Z"
      line, the first line whose length (66873) exceeds
      bufio.MaxScanTokenSize. Now distinctcounter exits with an error status
      instead of reporting partial results.
      
      $ ./distinctcounter -from 2023-01-01T00:00:00Z -to 2023-01-10T00:00:00Z -in metrics-ip-salted.jsonl
      2023/04/20 13:54:11 unable to count:bufio.Scanner: token too long
      8e5ea826
    • meskio's avatar
      Merge remote-tracking branch 'gitlab/main' · f723cf52
      meskio authored
      f723cf52
  17. Apr 19, 2023
  18. Apr 05, 2023
  19. Apr 03, 2023
  20. Mar 29, 2023
  21. Mar 22, 2023
  22. Mar 14, 2023
  23. Mar 13, 2023
Loading