-
-
Notifications
You must be signed in to change notification settings - Fork 6
archive speedtest sandbox
Denis Kuzmin (reg) edited this page Sep 21, 2016
·
1 revision
initially from my sandbox
[Intel Core2 Duo P8400 @ 2.26GHz]:
|c icase | без icase
----------------------------------------|-----------------|-----------------------
Iterator + Find | ~240ms (~222ms) | ~7ms
Getline + Find | ~296ms (~278ms) | ~63ms
Find + Find | ~250ms (~232ms) | ~17ms
Iterator + Substr | ~370ms (~352ms) | ~137ms
Iterator + Iterator | ~320ms (~302ms) | ~87ms
----------------------------------------|-----------------|-----------------------
regexp-c++11(regex_match! только ^str$) | ~970ms | ~1163ms - среднее действ. выросло
regexp-c++11(regex_search) | ~85279ms | ~16426ms
regexp-c++11(regex_match c конечными .*)| ~91715ms | ~19413ms - ограничение жадности для квантификатора
| | дает сравнимые результаты
----------------------------------------------------------------------------------
Data:
300 символов юникода, 10000 строк, Фильтр L"nime**haru*02*mkv"
[Intel Core i7-3630QM @ 2.40GHz] - EXT vs ESS:
Operation (+icase) | EXT | ESS
-------------------------------------|-----------------|--------------------
ANY | ~119ms | ~118ms
ANYSP | ~124ms | ~121ms
ONE | ~121ms | ~120ms
SPLIT | ~188ms | ~188ms
BEGIN | --- | TODO
END | --- | TODO
MORE | --- | TODO
SINGLE | --- | TODO
----------------------------------------------------------------------------