From 33bb8022cbf73adfc2f34484fa9c6a385a47c995 Mon Sep 17 00:00:00 2001 From: Colin Sherratt Date: Sun, 8 Feb 2015 13:42:28 -0500 Subject: [PATCH] Fixed benchmarks --- benches/construction.rs | 5 +++-- benches/mat.rs | 6 +++--- benches/quat.rs | 6 +++--- benches/vec.rs | 6 +++--- tests/projection.rs | 2 -- 5 files changed, 12 insertions(+), 13 deletions(-) diff --git a/benches/construction.rs b/benches/construction.rs index ab382ae..de96c89 100644 --- a/benches/construction.rs +++ b/benches/construction.rs @@ -13,12 +13,13 @@ // See the License for the specific language governing permissions and // limitations under the License. +#![feature(test)] - +extern crate rand; extern crate test; extern crate cgmath; -use std::rand::{IsaacRng, Rng}; +use rand::{IsaacRng, Rng}; use std::iter; use test::Bencher; use cgmath::{Quaternion, Basis2, Basis3, Vector3, Rotation2, Rotation3, Rad}; diff --git a/benches/mat.rs b/benches/mat.rs index 474191c..8c64ba3 100644 --- a/benches/mat.rs +++ b/benches/mat.rs @@ -13,13 +13,13 @@ // See the License for the specific language governing permissions and // limitations under the License. +#![feature(test)] - - +extern crate rand; extern crate test; extern crate cgmath; -use std::rand::{IsaacRng, Rng}; +use rand::{IsaacRng, Rng}; use test::Bencher; use cgmath::*; diff --git a/benches/quat.rs b/benches/quat.rs index 1b00a1a..7474b29 100644 --- a/benches/quat.rs +++ b/benches/quat.rs @@ -13,13 +13,13 @@ // See the License for the specific language governing permissions and // limitations under the License. +#![feature(test)] - - +extern crate rand; extern crate test; extern crate cgmath; -use std::rand::{IsaacRng, Rng}; +use rand::{IsaacRng, Rng}; use test::Bencher; use cgmath::*; diff --git a/benches/vec.rs b/benches/vec.rs index 084a841..ec692bb 100644 --- a/benches/vec.rs +++ b/benches/vec.rs @@ -13,13 +13,13 @@ // See the License for the specific language governing permissions and // limitations under the License. +#![feature(test)] - - +extern crate rand; extern crate test; extern crate cgmath; -use std::rand::{IsaacRng, Rng}; +use rand::{IsaacRng, Rng}; use test::Bencher; use cgmath::*; diff --git a/tests/projection.rs b/tests/projection.rs index 94cf3f8..7e4d788 100644 --- a/tests/projection.rs +++ b/tests/projection.rs @@ -13,8 +13,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#![feature(core)] - extern crate cgmath; use cgmath::{Vector4, ortho, Matrix, Matrix4, Vector};