Skip to content

Generate fake metrology data for testing and benchmarks

License

Notifications You must be signed in to change notification settings

dstanesc/fake-metrology-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fake Metrology Data Generator

Generate fake metrology data for testing and benchmarks.

Install

npm install @dstanesc/fake-metrology-data

Usage

Single part report, configured with the number of measurements to include {reportSize: 300}. The size is unconstrained

import {
    partReport
} from '@dstanesc/fake-metrology-data'
const reportData = partReport({reportSize: 300})
const reportText = JSON.stringify(reportData, null, 2);

Generate 2 almost identical reports (still w/ subtle differences). Useful for evaluation of content-defined chunking, data deduplication, incremental persistence, etc.

import { 
    partReports
} from '@dstanesc/fake-metrology-data'
       const reportsData = partReports({reportSize: 3})
       const r1 = reportsData.one
       const r2 = reportsData.two
       const r1Text = JSON.stringify(r1, null, 2);
       const r2Text = JSON.stringify(r2, null, 2);

More complex multipart report, configured with the number of parts to be generated (assemblySize: 10), the minimum number of measurements to be generated for the individual parts (minReportSize: 500), and the maximum number of measurements to be generated for the individual parts (maxReportSize: 1000)

import {
    multipartReport
} from '@dstanesc/fake-metrology-data'
const reportData = multipartReport({ assemblySize: 10, minReportSize: 500, maxReportSize: 1000})
const reportText = JSON.stringify(reportData, null, 2);

Build & Test

npm run clean
npm install
npm run build
npm run test

Disclaimer

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

This project may contain Microsoft trademarks or logos for Microsoft projects, products, or services. Use of these trademarks or logos must follow Microsoft’s Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.

About

Generate fake metrology data for testing and benchmarks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published