Created
March 13, 2013 20:03
-
-
Save pnkfelix/5155626 to your computer and use it in GitHub Desktop.
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
| % git diff | |
| diff --git a/js/src/parjs-benchmarks/nbody.js b/js/src/parjs-benchmarks/nbody.js | |
| index 1a0195e..9055381 100644 | |
| --- a/js/src/parjs-benchmarks/nbody.js | |
| +++ b/js/src/parjs-benchmarks/nbody.js | |
| @@ -474,6 +474,22 @@ function emulateNBody(mode, numBodies, ticks) { | |
| const NUMBODIES = 4000; | |
| const TICKS = 10; | |
| -benchmark("NBODY", 1, DEFAULT_MEASURE, | |
| +benchmark("NBODY_4K", 1, DEFAULT_MEASURE, | |
| function () { emulateNBody("seq", NUMBODIES, TICKS); }, | |
| function () { emulateNBody("par", NUMBODIES, TICKS); }); | |
| + | |
| +benchmark("NBODY_4.5K", 1, DEFAULT_MEASURE, | |
| + function () { emulateNBody("seq", NUMBODIES*9/8, TICKS); }, | |
| + function () { emulateNBody("par", NUMBODIES*9/8, TICKS); }); | |
| + | |
| +benchmark("NBODY_5K", 1, DEFAULT_MEASURE, | |
| + function () { emulateNBody("seq", NUMBODIES*5/4, TICKS); }, | |
| + function () { emulateNBody("par", NUMBODIES*5/4, TICKS); }); | |
| + | |
| +benchmark("NBODY_6K", 1, DEFAULT_MEASURE, | |
| + function () { emulateNBody("seq", NUMBODIES*3/2, TICKS); }, | |
| + function () { emulateNBody("par", NUMBODIES*3/2, TICKS); }); | |
| + | |
| +benchmark("NBODY_8K", 1, DEFAULT_MEASURE, | |
| + function () { emulateNBody("seq", NUMBODIES*2, TICKS); }, | |
| + function () { emulateNBody("par", NUMBODIES*2, TICKS); }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment