Skip to content

Instantly share code, notes, and snippets.

View KristofferC's full-sized avatar
🇸🇪

Kristoffer Carlsson KristofferC

🇸🇪
View GitHub Profile
# Logfile created on 2017-07-21 21:52:21 +0900 by logger.rb/54362
I, [2017-07-21T21:52:21.088374 #22192] INFO -- : #<BuildRuby:0x00000001833960 @REPOSITORY="https://svn.ruby-lang.org/repos/ruby/trunk", @REPOSITORY_TYPE=:svn, @git_branch=nil, @svn_revision=nil, @TARGET_NAME="trunk-test", @SRC_DIR="/home/ko1/ruby/src", @BUILD_DIR="/home/ko1/ruby/build", @INSTALL_DIR="/home/ko1/ruby/install", @TARGET_SRC_DIR="/home/ko1/ruby/src/trunk-test", @TARGET_BUILD_DIR="/home/ko1/ruby/build/trunk-test", @TARGET_INSTALL_DIR="/home/ko1/ruby/install/trunk-test", @configure_opts=["--enable-shared"], @build_opts="-j12", @test_opts="TESTS='-j12'", @incremental=true, @steps=["checkout", "autoconf", "configure", "build_up", "build_miniruby", "build_ruby", "build_all", "build_install", "test_btest", "test_basic", "test_all", "test_rubyspec"], @quiet=false, @gist=false, @logfile="/home/ko1/ruby/logs/brlog.trunk-test.20170721-215221", @logger=#<Logger:0x000000017c1928 @progname=nil, @level=0, @default_formatter=#<Logger::Formatter:0
Hello World!
  • a emph

    b emph

  • c emph

function f1(vs)
z = 0.0
for v in vs
for x in v
z += x
end
end

A ratio greater than 1.0 denotes a possible regression (marked with ❌), while a ratio less than 1.0 denotes a possible improvement (marked with ✅). Only significant results - results that indicate possible regressions or improvements - are shown below (thus, an empty table means that all benchmark results remained invariant between builds).

ID time ratio memory ratio
["gradient", "∇S(SymmetricTensor{2, 3, Float32})"] 2.83 (5%) ❌ Inf (1%) ❌
["gradient", "∇S(SymmetricTensor{2, 3, Float64})"] 3.22 (5%) ❌ Inf (1%) ❌
["gradient", "∇S(Tensor{2, 3, Float32})"] 2.83 (5%) ❌ Inf (1%) ❌

A ratio greater than 1.0 denotes a possible regression (marked with ❌), while a ratio less than 1.0 denotes a possible improvement (marked with ✅). Only significant results - results that indicate possible regressions or improvements - are shown below (thus, an empty table means that all benchmark results remained invariant between builds).

ID time ratio memory ratio
["basic-operations", "Float32 * SymmetricTensor{2, 3, Float32}"] 0.88 (5%) ✅ 1.00 (1%)
["basic-operations", "Float32 * Tensor{2, 3, Float32}"] 0.86 (5%) ✅ 1.00 (1%)
["basic-operations", "Float32 * Vec{3, Float32}"] 0.86 (5%) ✅ 1.00 (1%)

A ratio greater than 1.0 denotes a possible regression (marked with ❌), while a ratio less than 1.0 denotes a possible improvement (marked with ✅). Only significant results - results that indicate possible regressions or improvements - are shown below (thus, an empty table means that all benchmark results remained invariant between builds).

ID time ratio memory ratio
["basic-operations", "Float32 * SymmetricTensor{2, 3, Float32}"] 0.88 (5%) ✅ 1.00 (1%)
["basic-operations", "Float32 * Tensor{2, 3, Float32}"] 0.86 (5%) ✅ 1.00 (1%)
["basic-operations", "Float32 * Vec{3, Float32}"] 0.86 (5%) ✅ 1.00 (1%)
using MacroTools
using DataStructures
function prockey(key)
if isa(key, Symbol) || isa(key, String)
return :($(string(key)) => nothing)
elseif @capture(key, (a_ : b_) | (a_ => b_) | (a_ = b_))
return :($(string(a))=>$b)
end
error("Invalid pgf option $key")
using MacroTools, Lazy
import MacroTools: prewalk
using DataStructures
function prockey(key)
(isa(key, Symbol) || isa(key, String)) && return :($(string(key)) => nothing)
@capture(key, (a_:b_) | (a_=>b_) | (a_=b_)) || error("Invalid pgf option $key")
isa(a, Symbol) && (a = Expr(:quote, a))
:($a=>$b)
function getDivGrad(n1,n2,n3)
# the Divergence
D1 = kron(speye(n3),kron(speye(n2),ddx(n1)))
D2 = kron(speye(n3),kron(ddx(n2),speye(n1)))
D3 = kron(ddx(n3),kron(speye(n2),speye(n1)))
# DIV from faces to cell-centers
Div = [D1 D2 D3]
return Div*Div';
end