diff --git a/docs/data.js b/docs/data.js index b5e71e9..38f7b21 100644 --- a/docs/data.js +++ b/docs/data.js @@ -1,5 +1,5 @@ window.BENCHMARK_DATA = { - "lastUpdate": 1736305948248, + "lastUpdate": 1736361387793, "repoUrl": "https://github.com/lukaszraczylo/graphql-monitoring-proxy", "entries": { "Benchmark": [ @@ -42334,6 +42334,582 @@ window.BENCHMARK_DATA = { "extra": "1400470 times\n4 procs" } ] + }, + { + "commit": { + "author": { + "email": "lukasz@raczylo.com", + "name": "Lukasz Raczylo", + "username": "lukaszraczylo" + }, + "committer": { + "email": "noreply@github.com", + "name": "GitHub", + "username": "web-flow" + }, + "distinct": true, + "id": "6af5aefe544b42b3afd19bcce8570c216230f0a0", + "message": "Add tracing and relevant tests (#21)\n\n* Add tracing and relevant tests.\n\n* fixup! Add tracing and relevant tests.\n\n* gofmt the code :shrug:\n\n* fixup! gofmt the code :shrug:", + "timestamp": "2025-01-08T18:29:25Z", + "tree_id": "137c3bc97e97faef8d48201d2321c555d1e8e726", + "url": "https://github.com/lukaszraczylo/graphql-monitoring-proxy/commit/6af5aefe544b42b3afd19bcce8570c216230f0a0" + }, + "date": 1736361387282, + "tool": "go", + "benches": [ + { + "name": "BenchmarkCacheLookupInMemory", + "value": 390.9, + "unit": "ns/op\t 563 B/op\t 2 allocs/op", + "extra": "3060471 times\n4 procs" + }, + { + "name": "BenchmarkCacheLookupInMemory - ns/op", + "value": 390.9, + "unit": "ns/op", + "extra": "3060471 times\n4 procs" + }, + { + "name": "BenchmarkCacheLookupInMemory - B/op", + "value": 563, + "unit": "B/op", + "extra": "3060471 times\n4 procs" + }, + { + "name": "BenchmarkCacheLookupInMemory - allocs/op", + "value": 2, + "unit": "allocs/op", + "extra": "3060471 times\n4 procs" + }, + { + "name": "BenchmarkCacheLookupRedis", + "value": 9685, + "unit": "ns/op\t 534 B/op\t 23 allocs/op", + "extra": "113883 times\n4 procs" + }, + { + "name": "BenchmarkCacheLookupRedis - ns/op", + "value": 9685, + "unit": "ns/op", + "extra": "113883 times\n4 procs" + }, + { + "name": "BenchmarkCacheLookupRedis - B/op", + "value": 534, + "unit": "B/op", + "extra": "113883 times\n4 procs" + }, + { + "name": "BenchmarkCacheLookupRedis - allocs/op", + "value": 23, + "unit": "allocs/op", + "extra": "113883 times\n4 procs" + }, + { + "name": "BenchmarkCacheStoreInMemory", + "value": 5757, + "unit": "ns/op\t 632 B/op\t 8 allocs/op", + "extra": "184040 times\n4 procs" + }, + { + "name": "BenchmarkCacheStoreInMemory - ns/op", + "value": 5757, + "unit": "ns/op", + "extra": "184040 times\n4 procs" + }, + { + "name": "BenchmarkCacheStoreInMemory - B/op", + "value": 632, + "unit": "B/op", + "extra": "184040 times\n4 procs" + }, + { + "name": "BenchmarkCacheStoreInMemory - allocs/op", + "value": 8, + "unit": "allocs/op", + "extra": "184040 times\n4 procs" + }, + { + "name": "BenchmarkCacheStoreRedis", + "value": 9504, + "unit": "ns/op\t 1259 B/op\t 38 allocs/op", + "extra": "126042 times\n4 procs" + }, + { + "name": "BenchmarkCacheStoreRedis - ns/op", + "value": 9504, + "unit": "ns/op", + "extra": "126042 times\n4 procs" + }, + { + "name": "BenchmarkCacheStoreRedis - B/op", + "value": 1259, + "unit": "B/op", + "extra": "126042 times\n4 procs" + }, + { + "name": "BenchmarkCacheStoreRedis - allocs/op", + "value": 38, + "unit": "allocs/op", + "extra": "126042 times\n4 procs" + }, + { + "name": "BenchmarkMemCacheSet", + "value": 12659, + "unit": "ns/op\t 200 B/op\t 5 allocs/op", + "extra": "91957 times\n4 procs" + }, + { + "name": "BenchmarkMemCacheSet - ns/op", + "value": 12659, + "unit": "ns/op", + "extra": "91957 times\n4 procs" + }, + { + "name": "BenchmarkMemCacheSet - B/op", + "value": 200, + "unit": "B/op", + "extra": "91957 times\n4 procs" + }, + { + "name": "BenchmarkMemCacheSet - allocs/op", + "value": 5, + "unit": "allocs/op", + "extra": "91957 times\n4 procs" + }, + { + "name": "BenchmarkMemCacheGet", + "value": 685.5, + "unit": "ns/op\t 560 B/op\t 2 allocs/op", + "extra": "1746782 times\n4 procs" + }, + { + "name": "BenchmarkMemCacheGet - ns/op", + "value": 685.5, + "unit": "ns/op", + "extra": "1746782 times\n4 procs" + }, + { + "name": "BenchmarkMemCacheGet - B/op", + "value": 560, + "unit": "B/op", + "extra": "1746782 times\n4 procs" + }, + { + "name": "BenchmarkMemCacheGet - allocs/op", + "value": 2, + "unit": "allocs/op", + "extra": "1746782 times\n4 procs" + }, + { + "name": "BenchmarkMemCacheExpire", + "value": 5242643, + "unit": "ns/op\t 815943 B/op\t 36 allocs/op", + "extra": "226 times\n4 procs" + }, + { + "name": "BenchmarkMemCacheExpire - ns/op", + "value": 5242643, + "unit": "ns/op", + "extra": "226 times\n4 procs" + }, + { + "name": "BenchmarkMemCacheExpire - B/op", + "value": 815943, + "unit": "B/op", + "extra": "226 times\n4 procs" + }, + { + "name": "BenchmarkMemCacheExpire - allocs/op", + "value": 36, + "unit": "allocs/op", + "extra": "226 times\n4 procs" + }, + { + "name": "BenchmarkMemCacheStats", + "value": 0.0000954, + "unit": "ns/op\t 0 B/op\t 0 allocs/op", + "extra": "1000000000 times\n4 procs" + }, + { + "name": "BenchmarkMemCacheStats - ns/op", + "value": 0.0000954, + "unit": "ns/op", + "extra": "1000000000 times\n4 procs" + }, + { + "name": "BenchmarkMemCacheStats - B/op", + "value": 0, + "unit": "B/op", + "extra": "1000000000 times\n4 procs" + }, + { + "name": "BenchmarkMemCacheStats - allocs/op", + "value": 0, + "unit": "allocs/op", + "extra": "1000000000 times\n4 procs" + }, + { + "name": "BenchmarkCacheSet", + "value": 13741, + "unit": "ns/op\t 372 B/op\t 10 allocs/op", + "extra": "89007 times\n4 procs" + }, + { + "name": "BenchmarkCacheSet - ns/op", + "value": 13741, + "unit": "ns/op", + "extra": "89007 times\n4 procs" + }, + { + "name": "BenchmarkCacheSet - B/op", + "value": 372, + "unit": "B/op", + "extra": "89007 times\n4 procs" + }, + { + "name": "BenchmarkCacheSet - allocs/op", + "value": 10, + "unit": "allocs/op", + "extra": "89007 times\n4 procs" + }, + { + "name": "BenchmarkCacheGet", + "value": 890, + "unit": "ns/op\t 560 B/op\t 2 allocs/op", + "extra": "1398637 times\n4 procs" + }, + { + "name": "BenchmarkCacheGet - ns/op", + "value": 890, + "unit": "ns/op", + "extra": "1398637 times\n4 procs" + }, + { + "name": "BenchmarkCacheGet - B/op", + "value": 560, + "unit": "B/op", + "extra": "1398637 times\n4 procs" + }, + { + "name": "BenchmarkCacheGet - allocs/op", + "value": 2, + "unit": "allocs/op", + "extra": "1398637 times\n4 procs" + }, + { + "name": "BenchmarkCacheDelete", + "value": 13278, + "unit": "ns/op\t 563 B/op\t 13 allocs/op", + "extra": "86598 times\n4 procs" + }, + { + "name": "BenchmarkCacheDelete - ns/op", + "value": 13278, + "unit": "ns/op", + "extra": "86598 times\n4 procs" + }, + { + "name": "BenchmarkCacheDelete - B/op", + "value": 563, + "unit": "B/op", + "extra": "86598 times\n4 procs" + }, + { + "name": "BenchmarkCacheDelete - allocs/op", + "value": 13, + "unit": "allocs/op", + "extra": "86598 times\n4 procs" + }, + { + "name": "Benchmark_NewLogger/BenchmarkNew", + "value": 0.3133, + "unit": "ns/op\t 0 B/op\t 0 allocs/op", + "extra": "1000000000 times\n4 procs" + }, + { + "name": "Benchmark_NewLogger/BenchmarkNew - ns/op", + "value": 0.3133, + "unit": "ns/op", + "extra": "1000000000 times\n4 procs" + }, + { + "name": "Benchmark_NewLogger/BenchmarkNew - B/op", + "value": 0, + "unit": "B/op", + "extra": "1000000000 times\n4 procs" + }, + { + "name": "Benchmark_NewLogger/BenchmarkNew - allocs/op", + "value": 0, + "unit": "allocs/op", + "extra": "1000000000 times\n4 procs" + }, + { + "name": "Benchmark_NewLogger/BenchmarkNewChangeTimeFormat", + "value": 0.3124, + "unit": "ns/op\t 0 B/op\t 0 allocs/op", + "extra": "1000000000 times\n4 procs" + }, + { + "name": "Benchmark_NewLogger/BenchmarkNewChangeTimeFormat - ns/op", + "value": 0.3124, + "unit": "ns/op", + "extra": "1000000000 times\n4 procs" + }, + { + "name": "Benchmark_NewLogger/BenchmarkNewChangeTimeFormat - B/op", + "value": 0, + "unit": "B/op", + "extra": "1000000000 times\n4 procs" + }, + { + "name": "Benchmark_NewLogger/BenchmarkNewChangeTimeFormat - allocs/op", + "value": 0, + "unit": "allocs/op", + "extra": "1000000000 times\n4 procs" + }, + { + "name": "Benchmark_NewLogger/BenchmarkNewChangeLogLevel", + "value": 0.3124, + "unit": "ns/op\t 0 B/op\t 0 allocs/op", + "extra": "1000000000 times\n4 procs" + }, + { + "name": "Benchmark_NewLogger/BenchmarkNewChangeLogLevel - ns/op", + "value": 0.3124, + "unit": "ns/op", + "extra": "1000000000 times\n4 procs" + }, + { + "name": "Benchmark_NewLogger/BenchmarkNewChangeLogLevel - B/op", + "value": 0, + "unit": "B/op", + "extra": "1000000000 times\n4 procs" + }, + { + "name": "Benchmark_NewLogger/BenchmarkNewChangeLogLevel - allocs/op", + "value": 0, + "unit": "allocs/op", + "extra": "1000000000 times\n4 procs" + }, + { + "name": "Benchmark_NewLogger/BenchmarkNewChangeTimeFormatAndLogLevel", + "value": 0.3127, + "unit": "ns/op\t 0 B/op\t 0 allocs/op", + "extra": "1000000000 times\n4 procs" + }, + { + "name": "Benchmark_NewLogger/BenchmarkNewChangeTimeFormatAndLogLevel - ns/op", + "value": 0.3127, + "unit": "ns/op", + "extra": "1000000000 times\n4 procs" + }, + { + "name": "Benchmark_NewLogger/BenchmarkNewChangeTimeFormatAndLogLevel - B/op", + "value": 0, + "unit": "B/op", + "extra": "1000000000 times\n4 procs" + }, + { + "name": "Benchmark_NewLogger/BenchmarkNewChangeTimeFormatAndLogLevel - allocs/op", + "value": 0, + "unit": "allocs/op", + "extra": "1000000000 times\n4 procs" + }, + { + "name": "Benchmark_Log_Debug", + "value": 827, + "unit": "ns/op\t 344 B/op\t 4 allocs/op", + "extra": "1480177 times\n4 procs" + }, + { + "name": "Benchmark_Log_Debug - ns/op", + "value": 827, + "unit": "ns/op", + "extra": "1480177 times\n4 procs" + }, + { + "name": "Benchmark_Log_Debug - B/op", + "value": 344, + "unit": "B/op", + "extra": "1480177 times\n4 procs" + }, + { + "name": "Benchmark_Log_Debug - allocs/op", + "value": 4, + "unit": "allocs/op", + "extra": "1480177 times\n4 procs" + }, + { + "name": "Benchmark_Log_Info", + "value": 841.2, + "unit": "ns/op\t 347 B/op\t 4 allocs/op", + "extra": "1463956 times\n4 procs" + }, + { + "name": "Benchmark_Log_Info - ns/op", + "value": 841.2, + "unit": "ns/op", + "extra": "1463956 times\n4 procs" + }, + { + "name": "Benchmark_Log_Info - B/op", + "value": 347, + "unit": "B/op", + "extra": "1463956 times\n4 procs" + }, + { + "name": "Benchmark_Log_Info - allocs/op", + "value": 4, + "unit": "allocs/op", + "extra": "1463956 times\n4 procs" + }, + { + "name": "Benchmark_Log_Warn", + "value": 853, + "unit": "ns/op\t 354 B/op\t 4 allocs/op", + "extra": "1427773 times\n4 procs" + }, + { + "name": "Benchmark_Log_Warn - ns/op", + "value": 853, + "unit": "ns/op", + "extra": "1427773 times\n4 procs" + }, + { + "name": "Benchmark_Log_Warn - B/op", + "value": 354, + "unit": "B/op", + "extra": "1427773 times\n4 procs" + }, + { + "name": "Benchmark_Log_Warn - allocs/op", + "value": 4, + "unit": "allocs/op", + "extra": "1427773 times\n4 procs" + }, + { + "name": "Benchmark_Log_Error", + "value": 958.2, + "unit": "ns/op\t 395 B/op\t 4 allocs/op", + "extra": "1243064 times\n4 procs" + }, + { + "name": "Benchmark_Log_Error - ns/op", + "value": 958.2, + "unit": "ns/op", + "extra": "1243064 times\n4 procs" + }, + { + "name": "Benchmark_Log_Error - B/op", + "value": 395, + "unit": "B/op", + "extra": "1243064 times\n4 procs" + }, + { + "name": "Benchmark_Log_Error - allocs/op", + "value": 4, + "unit": "allocs/op", + "extra": "1243064 times\n4 procs" + }, + { + "name": "Benchmark_Log_Fatal", + "value": 852.2, + "unit": "ns/op\t 354 B/op\t 4 allocs/op", + "extra": "1424748 times\n4 procs" + }, + { + "name": "Benchmark_Log_Fatal - ns/op", + "value": 852.2, + "unit": "ns/op", + "extra": "1424748 times\n4 procs" + }, + { + "name": "Benchmark_Log_Fatal - B/op", + "value": 354, + "unit": "B/op", + "extra": "1424748 times\n4 procs" + }, + { + "name": "Benchmark_Log_Fatal - allocs/op", + "value": 4, + "unit": "allocs/op", + "extra": "1424748 times\n4 procs" + }, + { + "name": "BenchmarkGetMetricsName", + "value": 1320, + "unit": "ns/op\t 632 B/op\t 10 allocs/op", + "extra": "780950 times\n4 procs" + }, + { + "name": "BenchmarkGetMetricsName - ns/op", + "value": 1320, + "unit": "ns/op", + "extra": "780950 times\n4 procs" + }, + { + "name": "BenchmarkGetMetricsName - B/op", + "value": 632, + "unit": "B/op", + "extra": "780950 times\n4 procs" + }, + { + "name": "BenchmarkGetMetricsName - allocs/op", + "value": 10, + "unit": "allocs/op", + "extra": "780950 times\n4 procs" + }, + { + "name": "BenchmarkCompileMetricsWithLabels", + "value": 523, + "unit": "ns/op\t 296 B/op\t 7 allocs/op", + "extra": "2292603 times\n4 procs" + }, + { + "name": "BenchmarkCompileMetricsWithLabels - ns/op", + "value": 523, + "unit": "ns/op", + "extra": "2292603 times\n4 procs" + }, + { + "name": "BenchmarkCompileMetricsWithLabels - B/op", + "value": 296, + "unit": "B/op", + "extra": "2292603 times\n4 procs" + }, + { + "name": "BenchmarkCompileMetricsWithLabels - allocs/op", + "value": 7, + "unit": "allocs/op", + "extra": "2292603 times\n4 procs" + }, + { + "name": "BenchmarkValidateMetricsName", + "value": 861.4, + "unit": "ns/op\t 320 B/op\t 6 allocs/op", + "extra": "1408419 times\n4 procs" + }, + { + "name": "BenchmarkValidateMetricsName - ns/op", + "value": 861.4, + "unit": "ns/op", + "extra": "1408419 times\n4 procs" + }, + { + "name": "BenchmarkValidateMetricsName - B/op", + "value": 320, + "unit": "B/op", + "extra": "1408419 times\n4 procs" + }, + { + "name": "BenchmarkValidateMetricsName - allocs/op", + "value": 6, + "unit": "allocs/op", + "extra": "1408419 times\n4 procs" + } + ] } ] }