Hm, these numbers (richards and regexp in particular) suggest both JITs are
enabled or they'd be even worse... Can you try this silly micro-benchmark
and see what numbers you get, shell vs embedding?

(function() { var t = new Date; for (var i=0; i<2000000000; i++) {};
print(new Date - t); })();

Also check you're using the same CompileOptions, Evaluate/Compile JSAPI
functions (also for your load() function) and the same GC settings (max
bytes, nursery bytes, JS_SetGCParameter calls).

Jan

On Thu, Jun 4, 2015 at 1:28 PM, Jason Hill <jamesjasonh...@gmail.com> wrote:

> Hi,
>
> I'm trying to embed Spidermonkey into a basic C app. This sample app
> basically reads a JS file (octane.. test) and executes. Nothing really
> special. All the ion, baseline settings are enabled. compilation made with
> codegen 64 enabled.
>
> Below results are from embedded app:
>
> Richards: 9048
> DeltaBlue: 3219
> Crypto: 2547
> RayTrace: 1751
> EarleyBoyer: 4119
> RegExp: 4059
> Splay: 2339
> NavierStokes: 2906
>
>
> SM JS Shell :
>
> Richards: 24260
> DeltaBlue: 33489
> Crypto: 25669
> RayTrace: 75923
> EarleyBoyer: 29253
> RegExp: 4338
> Splay: 20259
> NavierStokes: 32615
>
>
> How ? Same SM engine, same build settings, same C routines to execute the
> code and create the runtime etc.
>
> The result is same on OSX and Ubuntu. Didn't test it on Windows.
>
> Interestingly RegExp result matches.
> _______________________________________________
> dev-tech-js-engine-internals mailing list
> dev-tech-js-engine-internals@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals
>
_______________________________________________
dev-tech-js-engine-internals mailing list
dev-tech-js-engine-internals@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals

Reply via email to