/*
 * 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);
    }
}

/*
 * 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 FindBench findBench;

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

    @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 {
        findBench.timeFindWithDriver(ITERATION);
    }

    @Test
    @Ignore
    public void encodeWithBsonJongo() throws Exception {
        findBench.timeFindWithBsonJongo(ITERATION);
    }
}

Update YourkitBench