Class StreamsBenchmark
java.lang.Object
nl.tudelft.simulation.jstats.streams.StreamsBenchmark
The StreamsBenchmark provides computational execution speed insight in the different streams.
Copyright (c) 2002-2024 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
-
Method Details
-
benchmark
public static long benchmark(nl.tudelft.simulation.jstats.streams.StreamInterface stream) benchmarks a stream by drawing 1000000 double values.- Parameters:
stream
- the stream to test- Returns:
- the execution time in milliseconds
-
main
executes the benchmark.- Parameters:
args
- the commandline arguments
-