change @benchmark to @btime
This commit is contained in:
parent
9ce92f5abe
commit
de5d3d5b57
4
ch08.jl
4
ch08.jl
@ -68,7 +68,7 @@ read("puzzles2.csv") == read("puzzles.csv")
|
|||||||
puzzles.Rating
|
puzzles.Rating
|
||||||
|
|
||||||
using BenchmarkTools
|
using BenchmarkTools
|
||||||
@benchmark $puzzles.Rating
|
@btime $puzzles.Rating;
|
||||||
|
|
||||||
puzzles.Rating == copy(puzzles.Rating)
|
puzzles.Rating == copy(puzzles.Rating)
|
||||||
|
|
||||||
@ -96,7 +96,7 @@ columnindex(puzzles, "Some fancy column name")
|
|||||||
hasproperty(puzzles, "Rating")
|
hasproperty(puzzles, "Rating")
|
||||||
hasproperty(puzzles, "Some fancy column name")
|
hasproperty(puzzles, "Some fancy column name")
|
||||||
|
|
||||||
@benchmark $puzzles[:, :Rating]
|
@btime $puzzles[:, :Rating];
|
||||||
|
|
||||||
puzzles[!, "Rating"]
|
puzzles[!, "Rating"]
|
||||||
puzzles[!, :Rating]
|
puzzles[!, :Rating]
|
||||||
|
Loading…
Reference in New Issue
Block a user