6c3aa85228
Make IO a static class instead of a singleton.
2013-12-21 19:25:09 -08:00
b937597ea7
Make benchmarks score based instead of time based.
2013-12-20 07:04:04 -08:00
4d67f2270a
Use more conventional syntax for constructors.
...
They are now invoked like "new Foo".
Also, superclass constructors are now much less semantically
and syntactically weird. Since the instance is created before
any constructor is called, there's no point in time where the
instance isn't there.
2013-12-19 07:02:27 -08:00
e7cf8ffe2e
Make method_call benchmark use inheritance.
...
This also fixes a bug where constructors weren't being bound
correctly, and eliminates some unneeded instructions when
compiling ifs.
I also tweaked the other method_call languages to match Wren's.
Since Wren needs to do a super call to get to the parent _count,
the other languages do now too.
This is nice too because it means we're benchmarking super
calls.
2013-12-18 07:37:41 -08:00
7fe60499db
Get rid of my name from TODOs. Anyone can do them.
2013-12-14 15:28:18 -08:00
5aaaa33552
Revise benchmarks:
...
- Ditch JS since it's in a different league.
- Make binary_trees and fib run faster.
- Compare using best time instead of mean.
2013-12-12 16:59:57 -08:00
71c26c6d89
Add support for just control which language benchmarks are run.
2013-12-10 23:02:24 -08:00
1e2449893e
Add baseline comparison to benchmark script.
...
This way, I can track performance improvements and regressions.
2013-12-07 22:15:25 -08:00
eb1e5b48d6
Fix up benchmarks and add method call one.
2013-12-07 18:43:39 -08:00
74c414937c
Add JS version of binary tree benchmark.
2013-11-29 20:25:00 -08:00
edb9032052
Get binary_trees benchmark working.
...
Wren is actually doing well in it:
wren mean: 1.9441 median: 1.9428 std_dev: 0.0260
lua mean: 3.5992 median: 3.6033 std_dev: 0.0156
python mean: 3.6667 median: 3.7097 std_dev: 0.1340
ruby mean: 1.3941 median: 1.3914 std_dev: 0.0091
2013-11-29 16:19:13 -08:00
af694053a5
Add JavaScript to benchmark runner.
2013-11-26 07:50:12 -08:00
e3e1f7f3d4
Start working on string escapes.
2013-11-23 21:00:47 -08:00
e4b5613780
ASCII art graph of benchmark results!
2013-11-22 09:17:45 -08:00
b30c30e1e3
Get a basic benchmark runner going.
2013-11-22 08:55:22 -08:00
64509a4f61
NaN tagging!
...
This plus moving some variables into locals in the interpreter loop
gets the fib benchmark within 25% of Lua!
2013-11-17 14:20:15 -08:00
1266578a4e
Add trivial fib benchmark.
2013-11-14 20:57:56 -08:00