Skip to content

Instantly share code, notes, and snippets.

View bonifaido's full-sized avatar

Nándor István Krácser bonifaido

View GitHub Profile
@bonifaido
bonifaido / PolynomialFitter.java
Created June 2, 2011 13:20 — forked from sanity/PolynomialFitter.java
Horner's method is a much faster evaluation
/***************************************************************************
* Copyright (C) 2009 by Paul Lutus, Ian Clarke *
* [email protected], [email protected] *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
(ns json-bench.core
(:require [cheshire.core :as cheshire])
(:require [clojure.data.json :as json])
(:require [clj-json.core :as clj-json]))
(defn nano-time []
(System/nanoTime))
(defn timed [task]
(let [t-start (nano-time)