chore: sync submodule state (parent ref update)

Made-with: Cursor
This commit is contained in:
defiQUG
2026-03-02 12:14:13 -08:00
parent 43a7b88e2a
commit 041fae1574
223 changed files with 12940 additions and 11756 deletions

View File

@@ -4,12 +4,12 @@ import (
"testing"
"time"
"github.com/explorer/backend/api/track1"
"github.com/explorer/backend/libs/go-rpc-gateway"
)
// BenchmarkInMemoryCache_Get benchmarks cache Get operations
func BenchmarkInMemoryCache_Get(b *testing.B) {
cache := track1.NewInMemoryCache()
cache := gateway.NewInMemoryCache()
key := "bench-key"
value := []byte("bench-value")
cache.Set(key, value, 5*time.Minute)
@@ -22,7 +22,7 @@ func BenchmarkInMemoryCache_Get(b *testing.B) {
// BenchmarkInMemoryCache_Set benchmarks cache Set operations
func BenchmarkInMemoryCache_Set(b *testing.B) {
cache := track1.NewInMemoryCache()
cache := gateway.NewInMemoryCache()
key := "bench-key"
value := []byte("bench-value")
@@ -34,10 +34,12 @@ func BenchmarkInMemoryCache_Set(b *testing.B) {
// BenchmarkInMemoryRateLimiter_Allow benchmarks rate limiter Allow operations
func BenchmarkInMemoryRateLimiter_Allow(b *testing.B) {
config := track1.RateLimitConfig{
config := gateway.RateLimitConfig{
RequestsPerSecond: 0,
RequestsPerMinute: 1000,
BurstSize: 100,
}
limiter := track1.NewInMemoryRateLimiter(config)
limiter := gateway.NewInMemoryRateLimiter(config)
key := "bench-key"
b.ResetTimer()
@@ -48,7 +50,7 @@ func BenchmarkInMemoryRateLimiter_Allow(b *testing.B) {
// BenchmarkCache_Concurrent benchmarks concurrent cache operations
func BenchmarkCache_Concurrent(b *testing.B) {
cache := track1.NewInMemoryCache()
cache := gateway.NewInMemoryCache()
key := "bench-key"
value := []byte("bench-value")
cache.Set(key, value, 5*time.Minute)
@@ -62,10 +64,12 @@ func BenchmarkCache_Concurrent(b *testing.B) {
// BenchmarkRateLimiter_Concurrent benchmarks concurrent rate limiter operations
func BenchmarkRateLimiter_Concurrent(b *testing.B) {
config := track1.RateLimitConfig{
config := gateway.RateLimitConfig{
RequestsPerSecond: 0,
RequestsPerMinute: 10000,
BurstSize: 100,
}
limiter := track1.NewInMemoryRateLimiter(config)
limiter := gateway.NewInMemoryRateLimiter(config)
b.RunParallel(func(pb *testing.PB) {
key := "bench-key"