Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,16 @@
import org.eclipse.daanse.sql.jdbc.impl.DatabaseServiceImpl;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.testcontainers.containers.GenericContainer;
import org.testcontainers.containers.wait.strategy.Wait;

/**
* {@code createMetaInfo} vs lightweight dialect-init read latency on MariaDB
* 10.11.
* 10.11. A measurement, not a check: it starts a container of its own and only
* prints, so it runs on request alone, with {@code -Dlatency=true}.
*/
@EnabledIfSystemProperty(named = "latency", matches = "true")
class MariaDBInitMetaInfoLatencyTest {

private static final String DATABASE = "bench";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@

/**
* {@code createMetaInfo} vs lightweight dialect-init read latency on PostgreSQL
* 15.
* 15. A measurement, not a check: it starts a container of its own and only
* prints, so it runs on request alone, with {@code -Dlatency=true}.
*/
@EnabledIfSystemProperty(named = "integration.docker", matches = "true")
@EnabledIfSystemProperty(named = "latency", matches = "true")
class PostgreSqlInitMetaInfoLatencyTest {

private static final String DATABASE = "bench";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@
import org.eclipse.daanse.sql.dialect.api.DialectInitData;
import org.h2.jdbcx.JdbcDataSource;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;

/**
* How fast {@code DialectInitData.fromDataSource} reads an H2 in memory. A measurement with a bound of time, which a
* busy machine may miss, so it runs on request alone, with {@code -Dlatency=true}.
*/
@EnabledIfSystemProperty(named = "latency", matches = "true")
class DialectInitDataLatencyTest {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@
import org.eclipse.daanse.sql.jdbc.api.meta.MetaInfo;
import org.h2.jdbcx.JdbcDataSource;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;

/**
* {@code createMetaInfo} vs lightweight dialect-init read latency on an H2 in memory. A measurement, not a check: it
* only prints, so it runs on request alone, with {@code -Dlatency=true}.
*/
@EnabledIfSystemProperty(named = "latency", matches = "true")
class DialectInitMetaInfoLatencyTest {

private static final int WARMUP_ROUNDS = 3;
Expand Down
Loading