Skip to content

Instantly share code, notes, and snippets.

View fingolfin's full-sized avatar

Max Horn fingolfin

  • University of Kaiserslautern-Landau
  • Kaiserslautern, Germany
  • 11:48 (UTC +02:00)
View GitHub Profile
### Keybase proof
I hereby claim:
* I am fingolfin on github.
* I am mhorn (https://keybase.io/mhorn) on keybase.
* I have a public key whose fingerprint is 031E 1B82 9D16 5EB8 DAD1 37F2 2292 55B2 5AE1 7B59
To claim this, I am signing this object:
@fingolfin
fingolfin / bench.g
Created July 12, 2019 09:26
GAP benchmark function
# Benchmark( func[, optrec] )
#
# func - a function taking no arguments
# optrec - an optional record with various options
#
# Measures how long executing the given function "func" takes.
# In order to improve accuracy, it invokes the function repeatedly.
# Before each repetition, the garbage collector is run, and
# (unless turned off by an option) the random number generators
# are reset.
#!/usr/bin/perl
package DiffHighlight;
use 5.008;
use warnings FATAL => 'all';
use strict;
# Use the correct value for both UNIX and Windows (/dev/null vs nul)
use File::Spec;