aboutsummaryrefslogtreecommitdiff
path: root/bench.tcl
AgeCommit message (Collapse)AuthorFilesLines
2023-02-13bench.tcl: Use the new timerate command if availableSteve Bennett1-53/+148
And make each test shorter but run for more iterations Better output for short durations Signed-off-by: Steve Bennett <steveb@workware.net.au>
2023-02-10bench.tcl: remove expr with multiple argumentsSteve Bennett1-1/+1
For compatibility when Jim is build without --compat Signed-off-by: Steve Bennett <steveb@workware.net.au>
2014-01-15bench.tcl: fix the pi benchmarkSteve Bennett1-42/+36
The previous version didn't actually get the correct result! Add ary_static. For expand, move the list creation outside the loop Make some minor changes for version compatibility Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-10Update TODO to reflect the current state of JimSteve Bennett1-0/+1
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-15Properly allow the id to be set in bench.tclSteve Bennett1-1/+3
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-15Allow an optional version id in bench.tclSteve Bennett1-6/+4
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2010-10-15Simplify and speed up exprSteve Bennett1-1/+4
*: Reuse the ParseTokenList/ScriptToken machinery for 'expr' *: This is simpler than managing separate opcode/obj arrays *: expr opcodes are now in the same namespace as token types *: expr identifies int and double during parsing *: Move the 'while' common expr optimisations into Jim_EvalExpression *: Add a special trueObj and falseObj to help with these boolean optimisations *: Add lazy versions as the byte code is created instead of at the end *: Avoid repeated conversion attempts to int *: Once an object fails conversion to int and succeeds conversion to double, invalidate the string rep so the int conversion attempt no longer happens *: Also, avoid converting non-ints to int in expression optimisation *: No need for a string token for SEP and EOL tokens *: Fix shimmering of int -> double *: When an int shimmers to a double during an expression, remember that the value was originally an int (via a new type, coerced double)
2010-10-15More expr tests and fixesSteve Bennett1-0/+11
*: Add tests/expr-new.test from Tcl *: Directly convert from int to double if possible *: Always treat '-' in front of a number as unary minus so that '-0x1234' works. *: Fix expr when the variable does not exist *: Add optional support for math functions *: Also double/0 == Inf or -Inf
2010-10-15Simplify expr evaluationSteve Bennett1-5/+5
2010-10-15Benchmarks in milliseconds for easier readingSteve Bennett1-2/+2
2005-03-25SetReturnCodeFromAny() modified to accept numerical codes.antirez1-0/+27
2005-03-10Some fix to bench.tcl to make it able to run in Tcl7.6.antirez1-3/+3
README update.
2005-03-09Improved formatting for normal outputpatthoyts1-2/+5
2005-03-09New test added to the benchmarkantirez1-0/+208
2005-03-09An initial [format] command.antirez1-1/+22
2005-03-08JIM_VERSION is to be an integer value which we present as MAJOR.MINOR topatthoyts1-1/+8
users. MAJOR is JIM_VERSION / 100
2005-03-08Added [info patchlevel] and setup argv0 and argv variables in jimsh.patthoyts1-5/+22
Changed Jim_InteractivePrompt to take a pre-initialized interpreter.
2005-03-07[lsort] command and list sorting low-level functions (Pat Thoyts).antirez1-3/+7
Speedup for floating point math (me).
2005-03-06A specializing version of [for] that appears able to match theantirez1-5/+18
performaces of Tcl8.4 for the specialized forms. The implementation is a bit complex so may contain bugs... to handle with care. Also a [for] bug about [continue] was fixed and the regression test added.
2005-03-04Small README change to reflect LIBS Makefile var.antirez1-22/+22
2005-03-04more benchmarks. Initial size of hashtables modified.antirez1-3/+56
Some documentation change.
2005-03-02one more benchmarkantirez1-0/+17
2005-03-02non local literal sharing disabled.antirez1-3/+4
bench.tcl modified to be more verbose.
2005-03-02Improved the [time] resolution on windows.patthoyts1-1/+2
2005-02-27Pat's patch for [load] on win32!antirez1-0/+11
Pat's match for nan/inf modified a bit.
2005-02-26Initial revisionantirez1-0/+188