Class StreamsBenchmark
- java.lang.Object
-
- nl.tudelft.simulation.jstats.streams.StreamsBenchmark
-
public final class StreamsBenchmark extends Object
The StreamsBenchmark provides computational execution speed insight in the different streams.Copyright (c) 2002-2023 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://simulation.tudelft.nl. The DSOL project is distributed under a three-clause BSD-style license, which can be found at https://https://simulation.tudelft.nl/dsol/docs/latest/license.html.
- Since:
- 1.5
- Author:
- Peter Jacobs
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static longbenchmark(StreamInterface stream)benchmarks a stream by drawing 1000000 double values.static voidmain(String[] args)executes the benchmark.
-
-
-
Method Detail
-
benchmark
public static long benchmark(StreamInterface stream)
benchmarks a stream by drawing 1000000 double values.- Parameters:
stream- the stream to test- Returns:
- the execution time in milliseconds
-
main
public static void main(String[] args)
executes the benchmark.- Parameters:
args- the commandline arguments
-
-