Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F6796864
benchmark building completion docs
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
EBernhardson
Mar 20 2017, 11:55 PM
2017-03-20 23:55:42 (UTC+0)
Size
463 B
Referenced Files
None
Subscribers
None
benchmark building completion docs
View Options
#<?php
$inputDocs = json_decode(file_get_contents('/tmp/ebernhardson_bench_compsuggest'), true);
$scorer = CirrusSearch\BuildDocument\Completion\SuggestScoringMethodFactory::getScoringMethod( 'popqual' );
$builder = new CirrusSearch\BuildDocument\Completion\SuggestBuilder( $scorer, [] );
$rounds = 100;
$start = microtime(true);
foreach ( range( 1, $rounds) as $i) { $builder->build($inputDocs); }
$took = (microtime(true) - $start) / $rounds
var_dump($took);
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4489279
Default Alt Text
benchmark building completion docs (463 B)
Attached To
Mode
P5091 benchmark building completion docs
Attached
Detach File
Event Timeline
Log In to Comment