v / examples / pendulum-simulation
0 issues 1 contributor 4 branches 0 releases
Clone with HTTPS:

About

README
LICENSE
  V 99.7% 272k loc
  JavaScript 0.1% 344 loc
  C 0% 63 loc
  C++ 0% 95 loc
  Go 0% 63 loc
52 years ago
..

<div align="center"> <p> <img style="width: 250px" width="250" src="https://user-images.githubusercontent.com/17727170/153699135-a63e9644-1a29-4c04-9de3-c9100b06001d.png" > </p>

<h1>Pendulum Simulation in V</h1>

You can see the origin implementation among with some benchmarks at ulises-jeremias/v-pendulum-simulation.

vlang.io | Docs | Contributing

</div> <div align="center">

Build Status Docs Validation License: MIT

</div>

Run the Simulations

Sequential Simulation

$ v -gc boehm -prod sequential.v
$ ./sequential # execute ./sequential -h for more info

Parallel Simulation

$ v -gc boehm -prod parallel.v
$ ./parallel # execute ./parallel -h for more info

image

Parallel Simulation with Image Worker

$ v -gc boehm -prod parallel_with_iw.v
$ ./parallel_with_iw # execute ./parallel_with_iw -h for more info

image

Parallel Simulation with Graphic User Interface

$ v -gc boehm -prod animation.v
$ ./animation # execute ./animation -h for more info

Full Parallel Simulation with Graphic User Interface and Image Output

$ v -gc boehm -prod full.v
$ ./full # execute ./full -h for more info

Testing

To test the module, just type the following command:

$ v test .

Benchmark

Check the original repository for tools to run benchmark tests. In there you can execute the following command to execute benchmark tests to get a full comparison between implementations:

$ ./bin/run-benchmark-test --help

image