Skip to content

Commit

Permalink
add three.js [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
hzoo committed Nov 14, 2016
1 parent e58e3d5 commit 7ad45c8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 42,270 deletions.
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ To run current benchmarks on a file:

```sh
$ ./scripts/benchmark.js package [file.js]
# do not remove package after installing to node_modules
$ ./scripts/benchmark.js package [file.js] --offline
```

To run current plugin timing on a file:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ uglify 479.43kB 99% 122.72kB 60% 39ms 3557ms
closure js 480.78kB 98% 123.34kB 59% 41ms 75621ms
```

Run with: `./scripts/benchmark.js ./scripts/fixtures/three.js`
Run with: `./scripts/benchmark.js three@0.82.1 three/build/three.js`

## Browser support

Expand Down
3 changes: 2 additions & 1 deletion scripts/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ function testFile() {

test("closure", function (/*code*/) {
return child.execSync(
"java -jar " + path.join(__dirname, "gcc.jar") + " --env=CUSTOM --jscomp_off=* --js " + filename
"java -jar " + path.join(__dirname, "gcc.jar") +
" --language_in=ECMASCRIPT5 --env=CUSTOM --jscomp_off=* --js " + filename
).toString();
});

Expand Down
Loading

0 comments on commit 7ad45c8

Please sign in to comment.