Exemplo n.º 1
0
 public TrinityServerFixture()
 {
     Global.Initialize();
     LambdaDSL.SetDialect("MAG", "StartFrom", "VisitNode", "FollowEdge", "Action");
     FanoutSearchModule.SetQueryTimeout(-1);
     FanoutSearchModule.RegisterIndexService(FakeIndexService);
     FanoutSearchModule.SetCacheEnabled(false);
     server = new TrinityServer();
     server.RegisterCommunicationModule <FanoutSearchModule>();
     server.Start();
 }
Exemplo n.º 2
0
        public LocalStressTest()
        {
            //Load some data
            Global.LocalStorage.SaveMyCell(0, new List <long> {
                1, 2, 3, 4, 5, 6, 7, 8, 9
            }, f2: new List <float> {
                1, 2, 3, 4, 5, 6, 7, 8
            });
            Global.LocalStorage.SaveMyCell(1, new List <long> {
                1, 2, 3, 4, 5, 6, 7, 8, 9
            }, f2: new List <float> {
                1, 2, 3, 4, 5, 6, 7, 8
            });
            Global.LocalStorage.SaveMyCell(2, new List <long> {
                1, 2, 3, 4, 5, 6, 7, 8, 9
            }, f2: new List <float> {
                1, 2, 3, 4, 5, 6, 7, 8
            });
            Global.LocalStorage.SaveMyCell(3, new List <long> {
                1, 2, 3, 4, 5, 6, 7, 8, 9
            }, f2: new List <float> {
                1, 2, 3, 4, 5, 6, 7, 8
            });
            Global.LocalStorage.SaveMyCell(4, new List <long> {
                1, 2, 3, 4, 5, 6, 7, 8, 9
            }, f2: new List <float> {
                1, 2, 3, 4, 5, 6, 7, 8
            });
            Global.LocalStorage.SaveMyCell(5, new List <long> {
                1, 2, 3, 4, 5, 6, 7, 8, 9
            }, f2: new List <float> {
                1, 2, 3, 4, 5, 6, 7, 8
            });
            Global.LocalStorage.SaveMyCell(6, new List <long> {
                1, 2, 3, 4, 5, 6, 7, 8, 9
            }, f2: new List <float> {
                1, 2, 3, 4, 5, 6, 7, 8
            });
            Global.LocalStorage.SaveMyCell(7, new List <long> {
                1, 2, 3, 4, 5, 6, 7, 8, 9
            }, f2: new List <float> {
                1, 2, 3, 4, 5, 6, 7, 8
            });
            Global.LocalStorage.SaveMyCell(8, new List <long> {
                1, 2, 3, 4, 5, 6, 7, 8, 9
            }, f2: new List <float> {
                1, 2, 3, 4, 5, 6, 7, 8
            });
            Global.LocalStorage.SaveMyCell(9, new List <long> {
                1, 2, 3, 4, 5, 6, 7, 8, 9
            }, f2: new List <float> {
                1, 2, 3, 4, 5, 6, 7, 8
            });


            // WARM UP
            _stress_test_impl(10, 10);
            // Set timeout, and disable cache
            FanoutSearchModule.SetCacheEnabled(false);
            FanoutSearchModule.SetQueryTimeout(800);
        }