This file contains hidden or 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 results | |
╼►[benchmark-init/root nil 6987ms] | |
├─[xdg require 14ms] | |
├─[swiper require 12ms] | |
├─[/Applications/Emacs.app/Contents/Resources/lisp/term/xterm.elc load 6ms] | |
├─[vc-git load 22ms] | |
│ ╰─[diff-mode require 18ms] | |
├─[~/.config/emacs/etc/yasnippet/snippets/emacs-lisp-mode/.yas-setup load 0ms] | |
├─[~/.config/emacs/etc/yasnippet/snippets/emacs-lisp-mode/.yas-compiled-snippets load 0ms] |
Title Generator: http://www.bunstermedia.com/guru-ninja-rock-star/
Node - Nodesters
Ruby - rubyists
Python - pythonistas
Cocoa - Cocoa Heads
Go - Gophers
AngularJS - Angularians
EmberJS - Emberinos
This file contains hidden or 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
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
This file contains hidden or 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
trait Engine { | |
fn eval(&self) -> String; | |
} | |
struct JSEngine { | |
name: String, | |
} | |
impl JSEngine { | |
fn new(name: String) -> Self { |
This file contains hidden or 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
{:description "Blog-backup config" | |
:home-page "https://github.com/jiacai2050/blog-backup" | |
:blogs [{:id "go-blog" | |
:base-url "https://blog.golang.org/index" | |
:posts-selector "div#content > p > a" | |
:page-tmpl "{{base-url}}" | |
:total-page 1} | |
{:id "meituan" | |
:base-url "https://tech.meituan.com/" | |
:posts-selector "div.post-container > h2 > a" |
This file contains hidden or 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
;; (macroexpand '(go (<p! (.launch puppeteer pp-opts)))) | |
(let* | |
[c__25860__auto__ (cljs.core.async/chan 1)] | |
(cljs.core.async.impl.dispatch/run | |
(clojure.core/fn | |
[] | |
(clojure.core/let | |
[f__25861__auto__ | |
(clojure.core/let |
This file contains hidden or 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
thread ' | |
thread 'outer-thread-0' has overflowed its stack | |
fatal runtime error: stack overflow | |
outer-thread-1' has overflowed its stack | |
fatal runtime error: stack overflow | |
Aborted (core dumped) |
This file contains hidden or 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
package main | |
import "testing" | |
var blackholeStr = "" | |
var blackholeValue student | |
var blackholePointer *student | |
func BenchmarkPointerVSStruct(b *testing.B) { |
This file contains hidden or 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
package main | |
import ( | |
"bytes" | |
"errors" | |
"io" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"os" |