Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
..
Failed to load latest commit information.
bin
build/web
lib
web
.gitignore
.packages
README.md
pubspec.yaml

README.md

Setup

  • Install Dart
  • Make sure Dart executables are on your path: dart and pub
  • Run pub upgrade.

Running the Dart benchmark

$ dart bin/bench2d_exe.dart

Running the benchmark compiled to Javascript

Using a browser

$ pub serve
  • See see the output in your browser: http://localhost:8080/bench2d_web.html
  • Run the benchmark in your browser without UI: http://localhost:8080/bench2d.html
    • Open the developer tools to see the benchmark results printed to the console.

Using node.

You can run the javascript directly using node.

$ node build/web/bench2d.dart.js

Building the benchmark code

$ pub build

This will update the contents of the build/web directory.