unsuccessfull attempt at renaming terminal to io...
This commit is contained in:
@@ -128,7 +128,7 @@ handle:close()
|
||||
|
||||
--print(require("serialize")(data, "\t"))
|
||||
|
||||
-- Halyde io doesn't support bold (CSI 1 m) but who cares
|
||||
-- Halyde terminal doesn't support bold (CSI 1 m) but who cares
|
||||
|
||||
if data.command then
|
||||
terminal.write("\27[1mUsage: \27[0m\n")
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
for i = 1, 100 do
|
||||
profiler.start("math_work")
|
||||
local x = 0
|
||||
for j = 1, 200000 do x = x + math.sqrt(j) end
|
||||
profiler.stop("math_work")
|
||||
|
||||
profiler.start("string_work")
|
||||
local s = ""
|
||||
for j = 1, 2000 do s = s .. tostring(j) end
|
||||
profiler.stop("string_work")
|
||||
end
|
||||
|
||||
for _, r in ipairs(profiler.results()) do
|
||||
print(r.label, r.time)
|
||||
end
|
||||
Reference in New Issue
Block a user