Benchmark

Download

Click the button below to download the example Python files used for the PyMeshTool publication.

For Linux and MacOS
For Windows

Usage

To run the example, make sure that the environment variable OMP_NUM_THREADS is set, or call the scripts as follows:

For Linux (bash) and MacOS (Z shell)

# === the PyMeshTool workflow ===
# create output folder
mkdir output_pymt
# run benchmark
OMP_NUM_THREADS=8 python pymt_wkflw.py

# === the MeshTool+Subprocess workflow ===
# create output folder
mkdir output_pysp
# run benchmark
OMP_NUM_THREADS=8 python pysp_wkflw.py

For Windows (PowerShell)

# === the PyMeshTool workflow ===
# create output folder
mkdir output_pymt
# run benchmark
$env:OMP_NUM_THREADS = "8"; python pymt_wkflw.py

# === the MeshTool+Subprocess workflow ===
# create output folder
mkdir output_pysp
# run benchmark
$env:OMP_NUM_THREADS = "8"; python pysp_wkflw.py

Attention

To run the pysp_wkflw.py script, you need to have MeshTool installed on your system, and it must also be accessible through the system’s search path!