forked from mtusi2026/mtusi2026lab2
26 lines
2.2 KiB
Plaintext
26 lines
2.2 KiB
Plaintext
# Cache performance experiment
|
|
# generated: 2026-10-05T19:28:14Z
|
|
go version go1.27.1 darwin/arm64
|
|
Darwin arm64
|
|
2026/10/05 22:28:15 OK 00001_init.sql (13.83ms)
|
|
2026/10/05 22:28:15 goose: successfully migrated database to version: 1
|
|
=== RUN TestCachePerformanceExperiment
|
|
cache_performance_experiment_test.go:94: baseline (no cache): requests=10000 concurrency=50 sql=1 duration=1.327s rps=7534 p50=6.455042ms p95=7.747375ms p99=10.882916ms
|
|
cache_performance_experiment_test.go:95: redis cache (cold): requests=10000 concurrency=50 sql=0 duration=893ms rps=11204 p50=4.412375ms p95=5.025167ms p99=6.189958ms
|
|
cache_performance_experiment_test.go:96: redis cache (hot): requests=10000 concurrency=50 sql=0 duration=895ms rps=11177 p50=4.396541ms p95=5.287709ms p99=6.229542ms
|
|
--- PASS: TestCachePerformanceExperiment (3.45s)
|
|
=== RUN TestCachePerformanceExperiment
|
|
cache_performance_experiment_test.go:94: baseline (no cache): requests=10000 concurrency=50 sql=1 duration=1.279s rps=7817 p50=6.285041ms p95=7.161833ms p99=9.118583ms
|
|
cache_performance_experiment_test.go:95: redis cache (cold): requests=10000 concurrency=50 sql=0 duration=886ms rps=11286 p50=4.3635ms p95=5.0135ms p99=5.986041ms
|
|
cache_performance_experiment_test.go:96: redis cache (hot): requests=10000 concurrency=50 sql=0 duration=884ms rps=11317 p50=4.379667ms p95=5.01725ms p99=5.431542ms
|
|
--- PASS: TestCachePerformanceExperiment (3.39s)
|
|
=== RUN TestCachePerformanceExperiment
|
|
cache_performance_experiment_test.go:94: baseline (no cache): requests=10000 concurrency=50 sql=1 duration=1.299s rps=7697 p50=6.23975ms p95=8.681917ms p99=10.371709ms
|
|
cache_performance_experiment_test.go:95: redis cache (cold): requests=10000 concurrency=50 sql=0 duration=897ms rps=11147 p50=4.438375ms p95=5.078459ms p99=5.789542ms
|
|
cache_performance_experiment_test.go:96: redis cache (hot): requests=10000 concurrency=50 sql=0 duration=902ms rps=11091 p50=4.395708ms p95=5.31425ms p99=7.578416ms
|
|
--- PASS: TestCachePerformanceExperiment (3.35s)
|
|
PASS
|
|
ok mtusi-messenger/internal/storage/postgres 10.620s
|
|
? mtusi-messenger/internal/storage/postgres/internal/sqlcgen [no test files]
|
|
? mtusi-messenger/internal/storage/postgres/migrations [no test files]
|