Coder Social home page Coder Social logo

golang-expression-evaluation-comparison's Introduction

Go expression evaluation comparison

I've created an expression evaluation package and wanted to compare it performance against other similar project. So I created this this repository with benchmarks for various packages.

Here is results (lower is better):

Benchmark_expr-8               	10000000	       244 ns/op
Benchmark_celgo-8              	 5000000	       422 ns/op
Benchmark_govaluate-8          	 3000000	       423 ns/op
Benchmark_goja-8               	 3000000	       464 ns/op
Benchmark_bexpr-8              	 2000000	       802 ns/op
Benchmark_otto-8               	 1000000	      1336 ns/op
Benchmark_starlark-8           	  200000	      7885 ns/op
Benchmark_gval-8               	  200000	      9770 ns/op

Usage

You can clone repo and run benchmarks yourself.

go test -bench=. -benchtime=20s

golang-expression-evaluation-comparison's People

Contributors

antonmedv avatar mythay avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.