Java Code Examples for org.eclipse.jetty.util.ArrayTernaryTrie

Following code examples demonstrate how to use org.eclipse.jetty.util.ArrayTernaryTrie from jetty. These examples are extracted from various highly rated open source projects. You can directly use these code snippets or view their entire linked source code. These snippets are extracted to provide contextual information about how to use this class in the real world. These samples also let you understand some good practices on how to use org.eclipse.jetty.util.ArrayTernaryTrie and various code implementation of this class.
Example 1
Project : jetty Source File : StringLookupBenchmark.java View Source Code on GitHub

    
    public static void main(String[] args) throws Exception
    {
        System.err.printf("%d -> %d%n",Integer.MAX_VALUE,ArrayTernaryTrie.hilo(Integer.MAX_VALUE));
        System.err.printf("%d -> %d%n",55,ArrayTernaryTrie.hilo(55));
        System.err.printf("%d -> %d%n",54,ArrayTernaryTrie.hilo(54));
        System.err.printf("%d -> %d%n",1,ArrayTernaryTrie.hilo(1));
        System.err.printf("%d -> %d%n",0,ArrayTernaryTrie.hilo(0));
        System.err.printf("%d -> %d%n",-1,ArrayTernaryTrie.hilo(-1));
        System.err.printf("%d -> %d%n",-35,ArrayTernaryTrie.hilo(-35));
        System.err.printf("%d -> %d%n",-36,ArrayTernaryTrie.hilo(-36));
        System.err.printf("%d -> %d%n",Integer.MIN_VALUE,ArrayTernaryTrie.hilo(Integer.MIN_VALUE));
        
        
        StringLookupBenchmark bm = new StringLookupBenchmark();
        
        bm.test(10000000);
        bm.test(10000000);
        bm.test(10000000);
    }