/*
 * Copyright (C) 2011 Benoit GUEROUT <bguerout at gmail dot com> and Yves AMSELLEM <amsellem dot yves at gmail dot com>
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.jongo.bench;

import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;

public class YourkitBench {

    private static int ITERATION = 1000000;

    private SaveBench saveBench;
    private EncoderBench encoderBench;

    @Before
    public void setUp() throws Exception {
        saveBench = new SaveBench();
        saveBench.setUp();
        encoderBench = new EncoderBench();
    }

    @Test
    @Ignore
    public void saveWithDriver() throws Exception {
        saveBench.timeSaveWithDriver(ITERATION);
    }

    @Test
    @Ignore
    public void saveWithBsonJongo() throws Exception {
        saveBench.timeSaveWithBsonJongo(ITERATION);
    }

    @Test
    @Ignore
    public void encodeWithDriver() throws Exception {
        encoderBench.timeEncodeWithDriver(ITERATION);
    }

    @Test
    @Ignore
    public void encodeWithStreamJongo() throws Exception {
        encoderBench.timeEncodeWithBsonJongo(ITERATION);
    }
}

@@ -902,28 +902,22 @@
 ate 
-EncoderBench encoder
+FindBench find
 Benc
@@ -1043,31 +1043,28 @@
 ();%0A        
-encoder
+find
 Bench = new 
@@ -1067,20 +1067,44 @@
 new 
-EncoderBench
+FindBench();%0A        findBench.setUp
 ();%0A
@@ -1452,39 +1452,36 @@
 ption %7B%0A        
-encoder
+find
 Bench.timeEncode
@@ -1470,30 +1470,28 @@
 ndBench.time
-Encode
+Find
 WithDriver(I
@@ -1560,14 +1560,12 @@
 With
-Stream
+Bson
 Jong
@@ -1599,15 +1599,12 @@
     
-encoder
+find
 Benc
@@ -1613,14 +1613,12 @@
 time
-Encode
+Find
 With

Update YourkitBench