Example #1
0
        public static String RunALL(bool moreSpeedTest = false)
        {
            DBPlatform.SetStorage();

            String text = "";

            text += iBoxDB.Shortcut.PMain().ToString();
            text += iBoxDB.Example.Start.PMain().ToString();
            text += iBoxDB.Example.MasterSlave.PMain().ToString();
            text += iBoxDB.Example.MasterMaster.PMain().ToString();
            text += iBoxDB.Example.BeyondSQL.PMain().ToString();

            if (moreSpeedTest)
            {
                System.GC.Collect();
                text += iBoxDB.Example.Speed.PMain(DBPlatform.Speed_ThreadCount).ToString();
                System.GC.Collect();
                text += iBoxDB.Example.Speed.ReplicationSpeed(
                    DBPlatform.Replication_ThreadCount, DBPlatform.Replication_Time).ToString();
            }
            else
            {
                //text += iBoxDB.Example.Speed.PMain(10).ToString();
                //text += iBoxDB.Example.Speed.ReplicationSpeed(10, 1).ToString();
            }
            DBPlatform.DeleteDB();
            return(text + "\r\n");
        }
Example #2
0
        public static String RunALL(bool speedTest = false)
        {
            try
            {
                //DB.Root("/tmp/");
                DBPlatform.SetStorage();
                strout = new StringBuilder();

                WriteLine("");
                GettingStarted();

                WriteLine("");
                IsolatedSpace();

                WriteLine("");
                BeyondSQL();

                WriteLine("");
                MasterSlave();

                WriteLine("");
                MasterMaster();

                if (speedTest)
                {
                    GC.Collect();
                    WriteLine("");
                    SpeedTest(DBPlatform.Speed_ThreadCount);

                    GC.Collect();
                    WriteLine("");
                    ReplicationSpeed(DBPlatform.Replication_ThreadCount, DBPlatform.Replication_Time);
                }

                DBPlatform.DeleteDB();
                return(WriteLine("").ToString());
            }
            catch (Exception ex)
            {
                return(ex.ToString());
            }
        }