Skip to content

Instantly share code, notes, and snippets.

@caumond
Created June 4, 2021 08:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caumond/a30660391c68255e65ff60970e706c22 to your computer and use it in GitHub Desktop.
Save caumond/a30660391c68255e65ff60970e706c22 to your computer and use it in GitHub Desktop.
(ns poc.defrecord.slack
(:require [criterium.core :as crit]))
(def ^java.util.Random seed (java.util.Random.))
(crit/with-progress-reporting (crit/bench (.nextInt seed 100) :verbose))
;; x86_64 Mac OS X 10.16 6 cpu(s)
;; OpenJDK 64-Bit Server VM 11.0.9.1+1
;; Runtime arguments: -Dfile.encoding=UTF-8 -XX:-OmitStackTraceInFastThrow -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Dclojure.compile.path=/Users/anthonycaumond/Dev/caumond-sc/or-poc/target/classes -Dpoc.version=0.1.0-SNAPSHOT -Dclojure.debug=false
;; Evaluation count : 1937899560 in 60 samples of 32298326 calls.
;; Execution time sample mean : 16,262286 ns
;; Execution time mean : 16,263695 ns
;; Execution time sample std-deviation : 0,348368 ns
;; Execution time std-deviation : 0,354634 ns
;; Execution time lower quantile : 15,966310 ns ( 2,5%)
;; Execution time upper quantile : 17,152505 ns (97,5%)
;; Overhead used : 14,943673 ns
;; Found 2 outliers in 60 samples (3,3333 %)
;; low-severe 2 (3,3333 %)
;; Variance from outliers : 9,4523 % Variance is slightly inflated by outliers
(crit/with-progress-reporting (crit/bench (rand-int 100) :verbose))
;; x86_64 Mac OS X 10.16 6 cpu(s)
;; OpenJDK 64-Bit Server VM 11.0.9.1+1
;; Runtime arguments: -Dfile.encoding=UTF-8 -XX:-OmitStackTraceInFastThrow -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Dclojure.compile.path=/Users/anthonycaumond/Dev/caumond-sc/or-poc/target/classes -Dpoc.version=0.1.0-SNAPSHOT -Dclojure.debug=false
;; Evaluation count : 769559760 in 60 samples of 12825996 calls.
;; Execution time sample mean : 64,214519 ns
;; Execution time mean : 64,227535 ns
;; Execution time sample std-deviation : 1,535827 ns
;; Execution time std-deviation : 1,585716 ns
;; Execution time lower quantile : 62,969257 ns ( 2,5%)
;; Execution time upper quantile : 68,266513 ns (97,5%)
;; Overhead used : 14,943673 ns
;; Found 3 outliers in 60 samples (5,0000 %)
;; low-severe 1 (1,6667 %)
;; low-mild 2 (3,3333 %)
;; Variance from outliers : 12,5738 % Variance is moderately inflated by outliers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment