Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
emscripten-core
GitHub Repository: emscripten-core/emscripten
Path: blob/main/system/lib/wasmfs/fuzzer/parameters.h
6175 views
1
// Copyright 2021 The Emscripten Authors. All rights reserved.
2
// Emscripten is available under two separate licenses, the MIT license and the
3
// University of Illinois/NCSA Open Source License. Both these licenses can be
4
// found in the LICENSE file.
5
6
// This file defines global parameters used in the fuzzer.
7
8
#pragma once
9
10
namespace wasmfs {
11
//
12
// Global var for verbose printing.
13
//
14
extern bool VERBOSE;
15
16
//
17
// ReadWrite Parameters
18
//
19
// The number of writer threads.
20
constexpr uint32_t NUM_WRITERS = 1;
21
22
// The number of reader threads.
23
constexpr uint32_t NUM_READERS = 20;
24
25
// The size of the character strings written to a file.
26
constexpr uint32_t FILE_SIZE = 20000000;
27
28
// The number of strings that are written/read.
29
constexpr uint32_t MAX_WORK = 10;
30
31
// The time interval that a reader or writer thread is active.
32
constexpr uint32_t DURATION = 100;
33
} // namespace wasmfs
34
35