Skip to content

Instantly share code, notes, and snippets.

@ThorstenBr
ThorstenBr / cassette-scope.s
Last active June 12, 2019 21:40 — forked from xk/cassette-scope.s
Apple II cassette-scope
;APPLE II CASSETTE-SCOPE
;2017-09 JORGE@JORGECHAMORRO.COM
;2019-06 BREHMT@GMAIL.COM
;SIMPLE 1-CHANNEL DIGITAL SCOPE
;USING THE APPLE II CASSETTE PORT
;KEYS:
;(T)RIGGER ON / OFF
;(SPACE) RUN / STOP
@bjouhier
bjouhier / fiboBench.js
Created May 10, 2013 12:46
First bench to compare raw callbacks and the 3 streamline modes: callbacks, fibers and generators
var fs = require('fs');
function fib(n) {
return n <= 1 ? 1 : fib(n - 1) + fib(n - 2);
}
function rawBench(n, loop, modulo, asyncFn, callback) {
var count = 0;
var l = loop;
@mscdex
mscdex / bench.js
Created April 12, 2012 17:23 — forked from xk/bench.js
When threads_a_gogo beats node 2 to 1.... or does it?
/*
$ node bench.js
Threads_a_gogo JS thread -> 3039 (ms) 298607040
Node's main JS thread -> 4677 (ms) 298607040
Ratio: 1.54 times faster than main JS thread
New, separate VM -> 3065 (ms) 298607040
Ratio: 1.01 times faster than new VM
*/