SES Benchmark

by Solistra

The SES Benchmark measuring Array methods.

Summary

This script provides a simple benchmarking tool similar to the Benchmark module present in the Ruby standard library. Essentially, this script allows you to run specified code and objectively determine its execution speed.

Detailed usage information is available from the source repository where the script is stored.

Features

  • Objectively determine execution speed of code.
  • Displays speed in real-time and user processing time.
  • Allows testing of multiple strategies in a single measurement.
  • Easily modify the number of iterations for each benchmark.

Script

This script is available from the SES source repository. The specific file to download is ‘lib/benchmark.rb’.

Installation

Place this script below the SES Core (v2.0) script (if you are using it) or the Materials header, but above all other custom scripts. This script does not require the SES Core (v2.0), but it is recommended.

License

This script is made available under the terms of the MIT Expat license.