To run:
- Generate measurement.txt as per in the original repo instructions.
- Set the environment variable
MEASUREMENT_FILE
to the path of the measurement.txt. - Run the script without arguments (
luajit calculate_measurement.lua
).
For Lua 5.1, you need to patch calls to ftell
and fseek
to use the 64-bit counterparts (e.g. _ftelli64
and _fseeki64
respectively for MSVC) as it can't handle file larger than 2GB. The exact modification for MSVC compiler are as follows:
diff --git a/src/liolib.c b/src/liolib.c
index 649f9a5..d1768cb 100644
--- a/src/liolib.c