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
import timeit | |
import threading | |
def lf(lst): | |
for i in range(10000): | |
lst.append(i) | |
def f1(): | |
lst = [] | |
lf(lst) |
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
import timeit | |
import threading | |
def lf(lst): | |
for i in range(10000): | |
lst.append(i) | |
def f1(): | |
lst = [] | |
lf(lst) |
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
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; |
NewerOlder