Per-Starke / NutritionRecSys

The repo for the software for my bachelor-thesis about a recommender system for use by nutrition coaches, recommending recipes with fitting macronutrients and suitable for the taste of the customer
Other
2 stars 0 forks source link

Check: How long does file-writing take? #118

Closed Per-Starke closed 1 year ago

gernotstarke commented 1 year ago

you need to differentiate between "append" and "create-new"...

appending to an already existing file might require that this file to be read from start. May take long for large files :-(

Per-Starke commented 1 year ago

Even for the largest file, the ratings file, only takes 0.00036s to append a rating at the end

gernotstarke commented 1 year ago

nope, timing error. See my comments in #119 - you're timing the OS buffer I/O, and not the physical write. (usually to measure the latter you need hooks into the OS, which regular python won't allow.