ismail simsek
046791e2be
InfluxDB: Response parser improvements (#76852)
* remove retention policy lookup
* Back to one big function
* %10 less memory allocation
pkg: github.com/grafana/grafana/pkg/tsdb/influxdb/influxql
│ 1.txt │ 2.txt │
│ sec/op │ sec/op vs base │
ParseBigJson-10 540.9m ± 3% 474.0m ± 2% -12.37% (p=0.000 n=10)
│ 1.txt │ 2.txt │
│ B/op │ B/op vs base │
ParseBigJson-10 580.6Mi ± 0% 573.2Mi ± 0% -1.28% (p=0.000 n=10)
│ 1.txt │ 2.txt │
│ allocs/op │ allocs/op vs base │
ParseBigJson-10 10.123M ± 0% 9.086M ± 0% -10.25% (p=0.000 n=10)
* Slightly better results comparing with the previous commit
pkg: github.com/grafana/grafana/pkg/tsdb/influxdb/influxql
│ 2.txt │ 3.txt │
│ sec/op │ sec/op vs base │
ParseBigJson-10 474.0m ± 1% 503.4m ± 3% +6.21% (p=0.000 n=10)
│ 2.txt │ 3.txt │
│ B/op │ B/op vs base │
ParseBigJson-10 573.2Mi ± 0% 564.0Mi ± 0% -1.60% (p=0.000 n=10)
│ 2.txt │ 3.txt │
│ allocs/op │ allocs/op vs base │
ParseBigJson-10 9.086M ± 0% 9.052M ± 0% -0.37% (p=0.000 n=10)
* Split into smaller functions
* Unit test for parseTimestamp
2023-10-27 17:17:19 +02:00
..
2023-10-18 18:19:35 +03:00
2023-10-16 16:40:04 +02:00
2023-10-27 11:49:37 +03:00
2023-10-16 16:40:04 +02:00
2023-10-16 16:40:04 +02:00
2023-10-20 10:01:04 +02:00
2023-09-22 15:00:40 +03:00
2023-10-16 16:40:04 +02:00
2023-10-27 17:17:19 +02:00
2022-11-22 15:09:15 +08:00
2023-10-17 11:09:56 +02:00
2023-10-16 16:40:04 +02:00
2023-10-16 16:40:04 +02:00
2023-10-16 16:40:04 +02:00
2023-10-16 16:40:04 +02:00
2023-10-16 16:40:04 +02:00
2023-10-16 16:40:04 +02:00
2023-10-23 13:11:12 -04:00
2023-10-16 16:40:04 +02:00
2023-10-16 16:40:04 +02:00
2023-10-23 10:44:38 +02:00