Skip to content

Instantly share code, notes, and snippets.

import timeit
import threading
def lf(lst):
for i in range(10000):
lst.append(i)
def f1():
lst = []
lf(lst)
import timeit
import threading
def lf(lst):
for i in range(10000):
lst.append(i)
def f1():
lst = []
lf(lst)
timeit = function(fn) {
var a = (new Date()).valueOf();
fn();
console.log((new Date()).valueOf() - a);
}
this.renderWithJS = function() {
timeit(function() {
var d = ['<ul class="list-group">'];
var i, user;