diff options
author | Marius <mariausol@gmail.com> | 2013-09-18 20:20:28 +0300 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2013-09-18 20:20:28 +0300 |
commit | c81421a932e43f45d2c7ef7ed6a38411ea53a66c (patch) | |
tree | 1ad9d8366a051b0a887228388e380aafe1813b1d /tex/context/base/core-uti.lua | |
parent | 2f83c855f1b02daf4560b7861e023eaf2716f9e3 (diff) | |
download | context-c81421a932e43f45d2c7ef7ed6a38411ea53a66c.tar.gz |
beta 2013.09.18 19:09
Diffstat (limited to 'tex/context/base/core-uti.lua')
-rw-r--r-- | tex/context/base/core-uti.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tex/context/base/core-uti.lua b/tex/context/base/core-uti.lua index 4e3c839bd..b1e9061b3 100644 --- a/tex/context/base/core-uti.lua +++ b/tex/context/base/core-uti.lua @@ -279,6 +279,12 @@ statistics.register("randomizer", function() end end) +-- local kg_per_watt_per_second = 1 / 15000000 +-- local watts_per_core = 50 +-- local speedup_by_other_engine = 1.2 +-- local used_wood_factor = watts_per_core * kg_per_watt_per_second / speedup_by_other_engine +-- local used_wood_factor = (50 / 15000000) / 1.2 + function statistics.formatruntime(runtime) if not environment.initex then -- else error when testing as not counters yet local shipped = texgetcount('nofshipouts') @@ -289,7 +295,13 @@ function statistics.formatruntime(runtime) if shipped > 0 or pages > 0 then local persecond = shipped / runtime if pages == 0 then pages = shipped end +-- if jit then +-- local saved = watts_per_core * runtime * kg_per_watt_per_second / speedup_by_other_engine +-- local saved = used_wood_factor * runtime +-- return format("%s seconds, %i processed pages, %i shipped pages, %.3f pages/second, %f kg tree saved by using luajittex",runtime,pages,shipped,persecond,saved) +-- else return format("%s seconds, %i processed pages, %i shipped pages, %.3f pages/second",runtime,pages,shipped,persecond) +-- end else return format("%s seconds",runtime) end |