Microbenchmark of array access and mutation
Go Java Common Lisp C# Assembly Python Other
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
cjmt
.gitignore
BenchmarkData.dat
BenchmarkData2.dat
BenchmarkData3.dat
Benchmarker.go
C.c
C2.c
C3.c
CS.cs
CS2.cs
CS3.cs
FS.fs
FS2.fs
FS3.fs
FS4.fs
FS5.fs
Go.go
Go2.go
Go3.go
Java.java
Java2.java
Java3.java
JavaUS.java
Julia.jl
JuliaBigNum.jl
L.lua
LICENSE
LJ.lua
Lisp.lisp
Lisp2.lisp
Lisp3.lisp
LispNoBignum.lisp
Py.py
Py2.py
Pypy.py
Pypy2.py
README.md
Rkt.rkt
Rkt2.rkt
Ruby.rb
Ruby1.rb
ST.st
Scala.scala
Self.s
asm.asm
bench.tcl
faster_py.py

README.md

ArrayAccessBench

Microbenchmark of array access and mutation.

Run with go run Benchmarker.go

In the Benchmarker.go source the output and input file can be changed. The numtrades values to test are stored near the top of the file in an array of strings, and the time to pause between runs can also be set via the WaitTime constant.

The input data is formatted as follows; a list of:

Language Name

Commands to compile it or '-' if interpreted

Commands to run it

The source file name

The resulting executable name or '-' if interpreted