Files
mtusi2026lab2/evidence/cache/performance.txt
T
2026-10-06 18:01:00 +03:00

26 lines
2.2 KiB
Plaintext

# Cache performance experiment
# generated: 2026-10-06T14:14:10Z
go version go1.27.1 darwin/arm64
Darwin arm64
2026/10/06 17:14:11 OK 00001_init.sql (10.85ms)
2026/10/06 17:14:11 goose: successfully migrated database to version: 1
=== RUN TestCachePerformanceExperiment
cache_performance_experiment_test.go:95: baseline (no cache): requests=10000 concurrency=50 sql=10000 duration=1.427s rps=7009 p50=7.016292ms p95=8.510208ms p99=10.315375ms
cache_performance_experiment_test.go:96: redis cache (cold): requests=10000 concurrency=50 sql=1 duration=971ms rps=10294 p50=4.530042ms p95=5.377208ms p99=6.060542ms
cache_performance_experiment_test.go:97: redis cache (hot): requests=10000 concurrency=50 sql=0 duration=904ms rps=11063 p50=4.412292ms p95=5.376708ms p99=6.918458ms
--- PASS: TestCachePerformanceExperiment (3.72s)
=== RUN TestCachePerformanceExperiment
cache_performance_experiment_test.go:95: baseline (no cache): requests=10000 concurrency=50 sql=10000 duration=1.339s rps=7467 p50=6.382666ms p95=8.948333ms p99=11.142875ms
cache_performance_experiment_test.go:96: redis cache (cold): requests=10000 concurrency=50 sql=1 duration=933ms rps=10716 p50=4.333958ms p95=5.11025ms p99=5.831ms
cache_performance_experiment_test.go:97: redis cache (hot): requests=10000 concurrency=50 sql=0 duration=893ms rps=11193 p50=4.36725ms p95=5.120666ms p99=7.455625ms
--- PASS: TestCachePerformanceExperiment (3.41s)
=== RUN TestCachePerformanceExperiment
cache_performance_experiment_test.go:95: baseline (no cache): requests=10000 concurrency=50 sql=10000 duration=1.279s rps=7820 p50=6.29ms p95=7.2015ms p99=8.3035ms
cache_performance_experiment_test.go:96: redis cache (cold): requests=10000 concurrency=50 sql=1 duration=947ms rps=10562 p50=4.364208ms p95=5.342208ms p99=6.826833ms
cache_performance_experiment_test.go:97: redis cache (hot): requests=10000 concurrency=50 sql=0 duration=894ms rps=11186 p50=4.36925ms p95=5.278166ms p99=6.799833ms
--- PASS: TestCachePerformanceExperiment (3.36s)
PASS
ok mtusi-messenger/internal/storage/postgres 10.893s
? mtusi-messenger/internal/storage/postgres/internal/sqlcgen [no test files]
? mtusi-messenger/internal/storage/postgres/migrations [no test files]