Skip to content

Instantly share code, notes, and snippets.

@ThorstenBr
ThorstenBr / cassette-scope.s
Last active Jun 12, 2019 — forked from xk/cassette-scope.s
Apple II cassette-scope
View cassette-scope.s
;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
First bench to compare raw callbacks and the 3 streamline modes: callbacks, fibers and generators
View fiboBench.js
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 Apr 12, 2012 — forked from xk/bench.js
When threads_a_gogo beats node 2 to 1.... or does it?
View bench.js
/*
$ 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
*/
You can’t perform that action at this time.