karlrupp / lua-opencl-latency-comparison

Benchmark for comparing Lua, OpenCL, and plain C/C++. Discussion: https://www.karlrupp.net/2016/03/lua-opencl-latency-comparison/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Benchmark Code for comparing Lua, OpenCL, and native C/C++ functions

This repository contains the benchmark code supplementing my blog post on a latency comparison of Lua, OpenCL, and plain C/C++.

Build

On *nix-like systems it is usually enough to call make:

$> make

If you run into issues, have a look at makefile and adjust compilers, etc.

Windows users should create a new project file in their favorite IDE and compile each of the three main applications funcptr, lua, or opencl.

Run

Run the executables via

$> ./funcptr
$> ./lua
$> ./opencl

Each of the three executables prints a table of execution times and bandwidths for different array sizes.

License

The code is provided under a permissive MIT/X11-style license. See file LICENSE.txt for details.

About

Benchmark for comparing Lua, OpenCL, and plain C/C++. Discussion: https://www.karlrupp.net/2016/03/lua-opencl-latency-comparison/

License:MIT License


Languages

Language:C++ 88.2%Language:Gnuplot 9.4%Language:Makefile 1.9%Language:Lua 0.6%