0.1.4 • Published 3 years ago

red-simulation v0.1.4

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

rust-event-driven-simulation

A wasm-library to simulate 2D-particle collision systems.

Installation

npm i red-simulation

Build instructions

  • Install wasm pack.
  • Build project using following command.
wasm-pack build

Testing

cargo test

Benchmarking

cargo +nightly bench

One can use perf to analyze perfomance.

RUSTFLAGS=-g cargo +nightly bench simulation_ticks_crowded

# Example output:
# Running unittests (target/release/deps/bench-8460f07c689bfb64)

perf record -g target/release/deps/bench-8460f07c689bfb64 --bench
perf report

Results on my i7-4702M are:

test simulation_ticks         ... bench:       5,375 ns/iter (+/- 282)
test simulation_ticks_crowded ... bench:   1,186,021 ns/iter (+/- 84,353)
0.1.4

3 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago