Run with python other_file.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
macro showtime(ex) | |
blk = Expr(:block) | |
push!(blk.args, :(println($(sprint(Base.show_unquoted,ex)*" = "), | |
repr(begin value=$(esc(ex)) end)))) | |
push!(blk.args, :value) | |
quote | |
local stats = Base.gc_num() | |
local elapsedtime = Base.time_ns() |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Benchmark for build_levels_func_body: | |
BenchmarkTools.Trial: | |
samples: 10000 | |
evals/sample: 1 | |
time tolerance: 5.00% | |
memory tolerance: 1.00% | |
memory estimate: 277.17 kb | |
allocs estimate: 4695 | |
minimum time: 394.74 μs (0.00% GC) | |
median time: 431.94 μs (0.00% GC) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module MyTypes | |
export TheParent | |
abstract TheParent | |
Base.show(io::IO, p::TheParent) = println(io, "Some instance of TheParent") | |
end # module |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.