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
user=> (quick-bench (ip blob)) | |
WARNING: Final GC required 9.686975846642287 % of runtime | |
Evaluation count : 12 in 6 samples of 2 calls. | |
Execution time mean : 92.387893 ms | |
Execution time std-deviation : 1.672124 ms | |
Execution time lower quantile : 90.990285 ms ( 2.5%) | |
Execution time upper quantile : 95.129590 ms (97.5%) | |
Overhead used : 137.074621 ns | |
Found 1 outliers in 6 samples (16.6667 %) |
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
direction : NORTHEAST | |
| NORTHWEST | |
| SOUTHEAST | |
| NORTH | |
| SOUTH | |
| EAST | |
| WEST | |
| N E | |
| N W | |
| S E |
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
(ns tv-scraper.wikipedia.parser) | |
(def tokens | |
{"{{" :template-start | |
"|" :pipe | |
"}}" :template-end | |
"[[" :something-start | |
"]]" :something-end | |
"=" :h1 | |
"==" :h2 |
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
user=> (def x (->> 0 (iterate inc) (take 1e8) vec)) | |
#'user/x | |
; Consumes 68% of 48 cores for 18 seconds | |
user=> (->> x (r/map inc) r/foldcat time) | |
"Elapsed time: 17980.476456 msecs" | |
#<Cat clojure.core.reducers.Cat@306a12cf> | |
; Brief jump to ~5% CPU | |
user=> (->> x (r/map inc) r/foldcat time) |
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
{:barrier #<CyclicBarrier java.util.concurrent.CyclicBarrier@3e600af8>, | |
:checker #<checker$reify__2553 jepsen.checker$reify__2553@6f5019f4>, | |
:nemesis #<client$reify__2629 jepsen.client$reify__2629@4c3c63f1>, | |
:nodes [:n1 :n2 :n3 :n4 :n5], | |
:generator | |
#<generator$nemesis$reify__1708 jepsen.generator$nemesis$reify__1708@671e1ecb>, | |
:os #<debian$reify__3361 jepsen.os.debian$reify__3361@6d19cdcf>, | |
:model {:pending #{}}, | |
:results | |
{:valid? true, |
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
[Tue Apr 01 00:34:38 2014] [error] [client 192.168.20.202] mod_wsgi (pid=20063): Target WSGI script '/opt/graphite/conf/graphite.wsgi' cannot be loaded as Python module. | |
[Tue Apr 01 00:34:38 2014] [error] [client 192.168.20.202] mod_wsgi (pid=20063): Exception occurred processing WSGI script '/opt/graphite/conf/graphite.wsgi'. | |
[Tue Apr 01 00:34:38 2014] [error] [client 192.168.20.202] Traceback (most recent call last): | |
[Tue Apr 01 00:34:38 2014] [error] [client 192.168.20.202] File "/opt/graphite/conf/graphite.wsgi", line 16, in <module> | |
[Tue Apr 01 00:34:38 2014] [error] [client 192.168.20.202] import graphite.metrics.search | |
[Tue Apr 01 00:34:38 2014] [error] [client 192.168.20.202] File "/opt/graphite/webapp/graphite/metrics/search.py", line 6, in <module> | |
[Tue Apr 01 00:34:38 2014] [error] [client 192.168.20.202] from graphite.storage import is_pattern, match_entries | |
[Tue Apr 01 00:34:38 2014] [error] [client 192.168.20.202] File "/opt/graphite/webapp/graphite/storage.py", line 7, in <module> |
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
{:valid? false, | |
:queue | |
{:valid? true, | |
:final-queue | |
{:pending | |
#{1581 1580 1579 1559 1590 1596 1617 1605 1594 916 1607 1622 1603 | |
1573 1455 1616 1608 1575 1619 1623 1601 1588 1611 1595 1586 1576 | |
1599 1614 1585}}}, | |
:total-queue | |
{:valid? false, |
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
(deftest sse-subscribe-events-test | |
(riemann.logging/suppress | |
["riemann.transport" "riemann.core" "riemann.pubsub"] | |
(let [s1 (tcp-server) | |
s2 (sse-server) | |
index (wrap-index (index/index)) | |
pubsub (pubsub/pubsub-registry) | |
core (transition! | |
(core) | |
{:index index |
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
user=> (doc when) | |
------------------------- | |
clojure.core/when | |
([test & body]) | |
Macro | |
Evaluates test. If logical true, evaluates body in an implicit do. | |
nil | |
user=> (doc if) | |
------------------------- | |
if |
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
^Croot@compute01:/disk/ssd# regorge -v -o 1m -b 512k 10g gorge.tmp | |
WTR: 100387.09 KiB/s Transfer time: 00:01:44 IOPS: 196.07 | |
RTR: 1197257.55 KiB/s Transfer time: 00:00:08 IOPS: 2338.39 | |
Total iterations: 1 | |
Total runtime: 00:01:53 | |
Total write transfer time (WTT): 00:01:44 | |
Total write transfer rate (WTR): 100387.09 KiB/s | |
Total write IOPS: 196.07 IOPS | |
Total read transfer time (RTT): 00:00:08 |
OlderNewer