\(\renewcommand\AA{\unicode{x212B}}\)

NexusTester v1

../_images/NexusTester-v1_dlg.png

NexusTester dialog.

Table of Contents

Summary

Algorithm for testing and debugging purposes only!

Properties

Name Direction Type Default Description
SaveFilename Input string   The name of the Nexus file to write. Allowed extensions: [‘.nxs’]
LoadFilename Input string   The name of the Nexus file to load (optional). Must have been written by NexusTester algorithm. Allowed extensions: [‘.nxs’]
ChunkSize Input number 10 Chunk size for writing/loading, in kb of data
NumChunks Input number 10 Number of chunks to load or write
Compress Input boolean True For writing: compress the data.
HDFCacheSize Input number 2000000 HDF cache size, in bytes
ClearDiskCache Input boolean False Clear the linux disk cache before loading. Only works on linux AND you need to run MantidPlot in sudo mode (!).
FakeData Input string Incrementing Numbers For writing: type of fake data to generate. Allowed values: [‘Zeros’, ‘Incrementing Numbers’, ‘Random Numbers’]
CompressionFactor Output number   The size of the file divided by the the size of the data on disk.
SaveSpeed Output number   The measured rate of saving the file, in MB (of data)/sec.
LoadSpeed Output number   The measured rate of loading the file, in MB (of data)/sec.

Description

This algorithm is meant for developers only!

This algorithm is used for performance testing and debugging of nexus saving and loading.

If you specify SaveFilename (optional), then the algorithm will save a file with the given number of chunks of the given size.

If you specify LoadFilename (optional), then the algorithm will load back a file created with this algorithm.

The SaveSpeed and LoadSpeed output properties are set to the saving and loading rates, in MB per second.

Categories: AlgorithmIndex | Utility\Development

Source

C++ header: NexusTester.h

C++ source: NexusTester.cpp