Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added speed test. #421

Closed
wants to merge 4 commits into from
Closed

Conversation

gerring
Copy link
Contributor

@gerring gerring commented Feb 3, 2020

#420

First run of tests will fail until @ignore is added to test. This test is for future fixes or for developers to check changes in basic maths speed vs. a naive loop.

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep Java 8 changes to a separate PR

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

<classpathentry kind="output" path="target/classes"/>
<classpathentry kind="var" path="M2_REPO/javax/measure/unit-api/1.0/unit-api-1.0.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="C:/Users/matt/.m2/repository/p2/osgi/bundle/javax.measure.unit-api/1.0.0.v20170818-1538/javax.measure.unit-api-1.0.0.v20170818-1538.jar"/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove all your machine specific settings

@@ -0,0 +1,117 @@
package org.eclipse.january.dataset;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Place in a separate fragment and use JMH

@@ -996,11 +996,11 @@ protected ILazyDataset createFromSerializable(Serializable blob, boolean keepLaz
if (is != 1 && is != getElementsPerItem()) {
throw new IllegalArgumentException("Dataset has incompatible number of elements with this dataset");
}
d = ed.cast(is == 1 ? DoubleDataset.class: CompoundDoubleDataset.class);
d = ed.cast((Class<Dataset>)(is == 1 ? DoubleDataset.class: CompoundDoubleDataset.class));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated changes

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is part of Java 8 changes

@gerring gerring closed this Feb 3, 2020
@gerring gerring deleted the speed_test branch February 3, 2020 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants