Browse Source

Leda has been removed

https://github.com/sergeyzavadski/leda

Seems to be emptied out, so I removed Leda from the frameworks.
msmith-techempower 10 years ago
parent
commit
17594cae68

+ 0 - 23
frameworks/Lua/leda/README.md

@@ -1,23 +0,0 @@
-# Leda  Benchmark Test
-
-
-### Deployment
-
-[Leda](https://github.com/sergeyzavadski/leda) framework has to set up. 
-        
-    
-### JSON Encoding Test
-
-* [Source](app.lua)    
-
-
-## Test URLs
-### JSON Encoding 
-
-http://localhost:8080/json
-
-
-
-### Plaintext 
-
-http://localhost:8080/plaintext

+ 0 - 0
frameworks/Lua/leda/__init__.py


+ 0 - 15
frameworks/Lua/leda/app.lua

@@ -1,15 +0,0 @@
-local http = require('leda.server.http')
-local json = require('cjson')
-
-local server = http(8080, 'localhost')
-
-server.request = function(server, request, response)
-    local url = request:url() 
-    if url:find('/json') then
-        response.body =  json.encode{message= 'Hello, World!'}
-        response.headers['Content-Type'] = 'application/json'
-    elseif url:find('/plaintext') then    
-        response.body =  'Hello, World!'
-    end
-    response:send()
-end

+ 0 - 24
frameworks/Lua/leda/benchmark_config

@@ -1,24 +0,0 @@
-{
-  "framework": "leda",
-  "tests": [{
-    "default": {
-      "setup_file": "setup",
-      "json_url": "/json",
-      "plaintext_url": "/plaintext",
-      "port": 8080,
-      "approach": "Realistic",
-      "classification": "Micro",
-      "database": "None",
-      "framework": "leda",
-      "language": "lua",
-      "orm": "Raw",
-      "platform": "libpropeller",
-      "webserver": "None",
-      "os": "Linux",
-      "database_os": "Linux",
-      "display_name": "leda",
-      "notes": "",
-      "versus": ""
-    }
-  }]
-}

+ 0 - 12
frameworks/Lua/leda/install.sh

@@ -1,12 +0,0 @@
-#!/bin/bash
-
-fw_depends lua
-
-sudo luarocks install lua-cjson
-
-git clone https://github.com/sergeyzavadski/leda.git
-cd leda
-git checkout d1d805877c506e34d23d5aac2b27608c192695d3
-./configure
-make 
-sudo make install

+ 0 - 24
frameworks/Lua/leda/setup.py

@@ -1,24 +0,0 @@
-import subprocess
-import sys
-import setup_util
-import os
-
-def start(args, logfile, errfile):
-  subprocess.Popen('leda app.lua', shell=True, cwd="leda", stderr=errfile, stdout=logfile)
-
-  return 0
-
-def stop(logfile, errfile):
-  
-  p = subprocess.Popen(['ps', 'aux'], stdout=subprocess.PIPE)
-  out, err = p.communicate()
-  for line in out.splitlines():
-    if 'app.lua' in line:
-      try:
-        pid = int(line.split(None, 2)[1])
-        os.kill(pid, 15)
-      except OSError:
-        pass
-
-
-  return 0

+ 0 - 1
frameworks/Lua/leda/source_code

@@ -1 +0,0 @@
-./leda/app.lua