You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The goal of this example project is to test the performance of Engflow's remote execution and caching service for different input sizes. The project involves creating a specified number of txt files, each containing 100 random characters, using the `Writer` class, and then reading and printing out their contents with the `Reader` class.
6
+
7
+
## Project Structure
8
+
9
+
-`java/com/engflow/internship/varyinginputs/input`: Directory where the generated `.txt` files are saved.
10
+
-`java/com/engflow/internship/varyinginputs/main`: Contains the `Main` class which orchestrates the file creation and reading process.
11
+
-`java/com/engflow/internship/varyinginputs/reader`: Contains the `Reader` class responsible for reading the files.
12
+
-`java/com/engflow/internship/varyinginputs/writer`: Contains the `Writer` class responsible for writing the files.
13
+
14
+
## Usage
15
+
16
+
To run the project and specify the number of files to be created, use the following command:
17
+
18
+
```sh
19
+
bazel run //java/com/engflow/internship/varyinginputs/main -- <num_files>
20
+
```
21
+
22
+
Replace `<num_files>` with the desired number of files to be created.
23
+
24
+
## Example
25
+
26
+
To create and read 10 files, you would run:
27
+
28
+
```sh
29
+
bazel run //java/com/engflow/internship/varyinginputs/main -- 10
30
+
```
31
+
32
+
This command will:
33
+
1. Use the `Writer` class to create 10 files, each containing 100 random characters, in the `input` directory.
34
+
2. Use the `Reader` class to read and print the contents of these files.
0 commit comments