// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include #include #include #include #include #include using namespace fsa; int main(int, char**) { FSA f("__testfsa__.__fsa__"); FSA::State s(f); FSA::HashedState hs(f); FSA::MemoryState ms(f); FSA::HashedMemoryState hms(f); FSA::CounterState cs(f); std::string input("cucumber"); unsigned int count=10000000,i; std::cout << "Number of lookups: " << count << std::endl; std::cout << "Input string length: " << input.length() << std::endl; std::cout << std::endl; TimeStamp t; double t0,t1; t0=t.elapsed(); for(i=0;i