Bug 190382 - /api/report takes 15+ minutes submitting some test results
Summary: /api/report takes 15+ minutes submitting some test results
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Perf Dashboard (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ryosuke Niwa
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-10-08 16:44 PDT by Ryosuke Niwa
Modified: 2018-10-08 19:18 PDT (History)
8 users (show)

See Also:


Attachments
Fixes the bug for common cases (8.85 KB, patch)
2018-10-08 16:57 PDT, Ryosuke Niwa
ap: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 2018-10-08 16:44:29 PDT
When submitting the result of an internal memory test, /api/report can take up to 15 minutes to process the request.
Speed this up in common cases where all tests and metrics had already been created.
Comment 1 Ryosuke Niwa 2018-10-08 16:57:19 PDT
Created attachment 351834 [details]
Fixes the bug for common cases
Comment 2 dewei_zhu 2018-10-08 17:13:27 PDT
Comment on attachment 351834 [details]
Fixes the bug for common cases

View in context: https://bugs.webkit.org/attachment.cgi?id=351834&action=review

> Websites/perf.webkit.org/public/include/report-processor.php:211
> +        $this->gn = 0;

Is this used anywhere?

> Websites/perf.webkit.org/public/include/report-processor.php:250
> +                    $metric_id = $metrics ? $metrics[''] : NULL;

Could you explain why we want to use $metrics[''] here?
Comment 3 dewei_zhu 2018-10-08 17:43:06 PDT
Comment on attachment 351834 [details]
Fixes the bug for common cases

View in context: https://bugs.webkit.org/attachment.cgi?id=351834&action=review

>> Websites/perf.webkit.org/public/include/report-processor.php:211
>> +        $this->gn = 0;
> 
> Is this used anywhere?

Ryosuke said this was for debugging purpose and will remove from the final change.

>> Websites/perf.webkit.org/public/include/report-processor.php:250
>> +                    $metric_id = $metrics ? $metrics[''] : NULL;
> 
> Could you explain why we want to use $metrics[''] here?

Talked in person and this is correct behavior.
Comment 4 dewei_zhu 2018-10-08 17:43:22 PDT
Looks good to me.
Comment 5 Alexey Proskuryakov 2018-10-08 18:39:20 PDT
Comment on attachment 351834 [details]
Fixes the bug for common cases

rs=me
Comment 6 Ryosuke Niwa 2018-10-08 19:17:44 PDT
Committed r236956: <https://trac.webkit.org/changeset/236956>
Comment 7 Radar WebKit Bug Importer 2018-10-08 19:18:26 PDT
<rdar://problem/45114055>